Skip to content

Instantly share code, notes, and snippets.

@Albert-IV
Created November 23, 2016 18:49
Show Gist options
  • Save Albert-IV/eee7e4d93686ca2292385cfdbe9cbe04 to your computer and use it in GitHub Desktop.
Save Albert-IV/eee7e4d93686ca2292385cfdbe9cbe04 to your computer and use it in GitHub Desktop.
<body>
<div id="wrapper">
<h1>Evan You</h1>
<h2>Design, Code &amp; Things in Between&nbsp;</h2>
<p><a href="http://blog.evanyou.me" target="_blank">Blog</a></p>
<p><a href="https://twitter.com/youyuxi" target="_blank">Twitter</a></p>
<p><a href="https://github.com/yyx990803" target="_blank">Github</a></p>
<p><a href="https://plus.google.com/u/1/112810528656728788190" target="_blank">G+</a></p>
<p><a href="http://weibo.com/arttechdesign" target="_blank">微博</a></p>
</div>
<canvas></canvas>
<script>
document.addEventListener('touchmove', function (e) {
e.preventDefault()
})
var c = document.getElementsByTagName('canvas')[0],
x = c.getContext('2d'),
pr = window.devicePixelRatio || 1,
w = window.innerWidth,
h = window.innerHeight,
f = 90,
q,
m = Math,
r = 0,
u = m.PI*2,
v = m.cos,
z = m.random
c.width = w*pr
c.height = h*pr
x.scale(pr, pr)
x.globalAlpha = 0.6
function i(){
x.clearRect(0,0,w,h)
q=[{x:0,y:h*.7+f},{x:0,y:h*.7-f}]
while(q[1].x<w+f) d(q[0], q[1])
}
function d(i,j){
x.beginPath()
x.moveTo(i.x, i.y)
x.lineTo(j.x, j.y)
var k = j.x + (z()*2-0.25)*f,
n = y(j.y)
x.lineTo(k, n)
x.closePath()
r-=u/-50
x.fillStyle = '#'+(v(r)*127+128<<16 | v(r+u/3)*127+128<<8 | v(r+u/3*2)*127+128).toString(16)
x.fill()
q[0] = q[1]
q[1] = {x:k,y:n}
}
function y(p){
var t = p + (z()*2-1.1)*f
return (t>h||t<0) ? y(p) : t
}
document.onclick = i
document.ontouchstart = i
i()
</script>
</body>
@DUSENGE478
Copy link

<POST https:THE EVAN FOUNDATION RWANDA

<elevation: 0deg
></elevation:><title><Fruit<script>
function openPage()
// Fungura website yawe muri tab imwe html>

<title>Fungura Urubuga</title>

Murakaza Neza!

</script>
<title></title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f9; } header { background-color: #4CAF50; color: white; text-align: center; padding: 15px 10px; } nav { display: flex; justify-content: center; background-color: #333; padding: 10px 0; } nav a { color: white; padding: 10px 20px; text-decoration: none; } nav a:hover { background-color: #575757; } .hero { text-align: center; padding: 50px; background-color: #e0f7fa; } .hero h1 { margin: 0; color: #00796b; } .portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 20px; } .portfolio-item { background-color: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; } .portfolio-item img { width: 100%; height: 200px; object-fit: cover; } .portfolio-item .content { padding: 15px; text-align: center; } .portfolio-item h3 { margin: 0; color: #333; } .portfolio-item p { color: #555; } footer { background-color: #333; color: white; text-align: center; padding: 10px; margin-top: 20px; } </style>

THE EVAN FOUNDATION RWANDA

HOME Projects
  • Gallery
  • Get Involved
  • About Support Our Projects

    WELCOME

    .

    Umushinga 1

    Umushinga 1

    Ibisobanuro ku mushinga wa mbere.

    Umushinga 2

    Sura hano 2.

    Ibisobanuro ku mushinga wa kabiri.

    Umushinga 3

    Umushinga 3

    Ibisobanuro ku mushinga wa gatatu.

    © 2025 THE EVAN FOUNDATION RWANDA
        . Uburenganzira bwose burabitswe.
    </footer>
    
    <title>Urubuga rw'Icyitegererezo</title> <style> body {

    Shaka uburyo bwo kutwandikira hano.

    navigation.html

    Serivisi

    Dufite serivisi zinyuranye zagufasha kugera ku ntego zawe. Reba zimwe muri serivisi dutanga:

    Kwigisha

    Turatanga amasomo yihariye ajyanye no gucunga imishinga, gukoresha mudasobwa,

    Ubujyanama

    Dusobanura uko wabasha kugera ku mishinga yawe neza binyuze mu bitekerezo byubaka.

    Ubushakashatsi

    Dukora ubushakashatsi bwimbitse ku bikorwa bitandukanye harimo n'

    Ibisobanuro ku ifoto

    Kwinjira muri Fayiro

    Hitamo Fayiro:

    Kwinjira muri Fayiro

    Hitamo Fayiro:

    from flask import Flask, request, render_template

    app = Flask(name)

    @app.route('/upload', methods=['POST'])
    def upload_file():
    if 'file' not in request.files:
    return "Nta fayiro yoherejwe."
    file = request.files['file']
    if file.filename == '':
    return "Nta fayiro yatanzwe."
    file.save(f".>uploads/{file.filename}")
    return f"Fayiro yoherejwe neza: {file.filename}"

    if name == "main":
    app.run(debug=True)


    Kwinjira muri Fayiro


    Hitamo Fayiro:

    const express = require('express'); const multer = require('multer'); const app = express();

    const upload = multer({ dest: 'uploads/' });

    app.post('/upload', upload.single('file'), (req, res) => {
    if (!req.file) {
    return res.status(400).send('Nta fayiro yatanzwe.');
    }
    res.send(Fayiro yoherejwe neza: ${req.file.originalname});
    });

    app.listen(3000, () => console.log('Server iri gukora kuri http://localhost:3000'));

    Hitamo Fayiro: Ohereza Fayiro // Kureba niba uploads directory ibaho, niba itabaho iyireme if (!is_dir($upload_dir)) { mkdir($upload_dir, 0777, true); } // Kwimura inyandiko mu mwanya wayo if (move_uploaded_file($file_tmp, $upload_dir . $file_name)) { echo "Fayiro yashyizweho neza: " } else { echo "Kohereza fayiro byanze."; } } else { echo "Habaye ikibazo muri fayiro yoherejwe."; }

    }
    ?>

    Hitamo Fayiro: Ohereza Fayiro from flask import Flask, request

    app = Flask(name)

    @app.route('/upload', methods=['POST'])
    def upload_file():
    if 'file' not in request.files:
    return "Nta fayiro yoherejwe."
    file = request.files['file']
    if file.filename == '':
    return "Nta fayiro yatanzwe."
    file.save(f"uploads/{file.filename}")
    return f"Fayiro yashyizweho neza: {file.filename}"
    link text
    if name == 'main':
    app.run(debug=True)


    Hitamo Fayiro:

    Ohereza Fayiro

    const express = require('express'); const multer = require('multer');

    const app = express();
    const upload = multer({ dest: 'uploads/' });

    app.post('/upload', upload.single('file'), (req, res) => {
    if (!req.file) {
    return res.status(400).send('Nta fayiro yoherejwe.');
    }
    res.send(Fayiro yashyizweho neza: ${req.file.originalname});
    });

    app.listen(3000, () => {
    console.log'Server iri gukora kuri http://localhost:3000'
    });

    Visit W3Schools.com!

    Your browser does not support the video tag. open const x = document.getElementById("demo");

    function getLocation() {
    if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(showPosition);
    } else {
    x.innerHTML = "Geolocation is not supported by this browser.";
    }
    }

    function showPosition(position) {
    x.innerHTML = "Latitude: "
    "
    Longitude: " + position.coords.longitude;
    }
    </script>
    function showError(error) {
    switch(error.code) {
    case error.PERMISSION_DENIED:
    x.innerHTML = "User denied the request for Geolocation."
    break;
    case error.POSITION_UNAVAILABLE:
    x.innerHTML = "Location information is unavailable."
    break;
    case error.TIMEOUT:
    x.innerHTML = "The request to get user location timed out."
    break;
    case error.UNKNOWN_ERROR:
    x.innerHTML = "An unknown error occurred."
    break;
    }
    }

    <title>Open Page Example</title>

    Welcome!

    Fungura Urundi Rupapuro
    <script>
        function openPage() {
            // Fungura urupapuro rushya muri tab nshya
            window.open"https://example.com", "_blank"
        }
    </script>
    
    <title>Open Page in Same Tab</title>

    Fungura Page

    Fungura Urundi Rupapuro Muri Tab
    <script>
        function openPage() {
            // Fungura urundi rupapuro muri tab imwe
            window.location.href = "https://example.com";
        }
    </script>
    
    <title>Open Local Page</title>

    Murakaza Neza!

    Fungura Urupapuro Rw’imbere
    <script>
        function openPage() {
            // Fungura urupapuro rw’imbere muri tab nshya
            window.open("my_page.html", "_blank");
        }
    </script>
    
    <title>Open Local Page in Same Tab</title>

    Murakaza Neza!

    Fungura Urupapuro Rw’imbere
    <script>
        function openPage() {
            // Fungura urupapuro rw’imbere muri tab imwe
            window.location.href = "my_page.html";
        }
    </script>
    
    <script> function openPage() { // Fungura Google muri tab nshya window.open("https://www.google.com", "_blank"); } First name:

    Last name:

    Flowers

    Hello World

    /* styles.css */ body { margin: 0; font-family: Arial, sans-serif; }

    .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    }

    .logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    }

    .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    }

    .nav-links li {
    margin: 0 15px;
    }

    .nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s;
    }

    .nav-links a:hover {
    color: #00bcd4;
    }
    // script.js
    console.log("Uburyobwa bwarangiye neza!");

    // script.js
    // ><Guhisha no Kwerekana uburyobwa kuri mobile
    <document.addEventListener("DOMContentLoaded", () => {
    const menuToggle = document.querySelector(".menu-toggle");
    const navLinks = document.querySelector(".nav-links");

    // Igihe menu toggle ikinze/ifunguwe
    menuToggle.addEventListener("click", () => {
        navLinks.classList.toggle("active");
    

    /* styles.css */

    /* Styles za menu-toggle /
    .menu-toggle {
    display: none; /
    Izahita igaragara gusa kuri mobile */
    font-size: 24px;
    color: white;
    cursor: pointer;
    }

    .nav-links.active {
    display: flex; /* Igaragaza menu iyo ihamagawe */
    flex-direction: column;
    align-items: center;
    }

    @media (max-width: 768px) {
    .menu-toggle {
    display: block;
    }

    .nav-links {
        display: none; /* Menu izaba yihishe ubusanzwe */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        right: 10px;
        width: 200px;
        border-radius: 5px;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    

    }

    }

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment