This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^.*$ index.php [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .pagination-previous,.pagination-next,.pagination-link,.pagination-ellipsis,.file-cta,.file-name,.select select,.textarea,.input,.button{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:4px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.5em;justify-content:flex-start;line-height:1.5;padding-bottom:calc(0.5em - 1px);padding-left:calc(0.75em - 1px);padding-right:calc(0.75em - 1px);padding-top:calc(0.5em - 1px);position:relative;vertical-align:top}.pagination-previous:focus,.pagination-next:focus,.pagination-link:focus,.pagination-ellipsis:focus,.file-cta:focus,.file-name:focus,.select select:focus,.textarea:focus,.input:focus,.button:focus,.is-focused.pagination-previous,.is-focused.pagination-next,.is-focused.pagination-link,.is-focused.pagination-ellipsis,.is-focused.file-cta,.is-focused.file-name,.select select.is-focused,.is-focused.textarea,.is-focused.input,.is-focused.button,.pagination-previous:active,.pagination-next:active,.paginat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env deno run --allow-net | |
| import { parse } from "https://deno.land/std/flags/mod.ts"; | |
| const httpGetJson = async (url) => await (await fetch(url)).json(); | |
| const args = parse(Deno.args); | |
| if (args._.length == 0) { | |
| console.log('Give an album name!'); | |
| Deno.exit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math, os, re, subprocess, sys, tempfile, threading | |
| size = os.get_terminal_size() | |
| cursorY = 0 | |
| def printLine(y, line): | |
| global cursorY | |
| if (y <= cursorY): | |
| sys.stdout.write('\033[F' * (cursorY - y)) | |
| if (y > cursorY): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (!isset($_SERVER['PHP_AUTH_USER'])) { | |
| header('WWW-Authenticate: Basic realm="plaatlight"'); | |
| } | |
| if ($_SERVER['PHP_AUTH_USER'] != 'plaatlight' || $_SERVER['PHP_AUTH_PW'] != 'plaatlight') { | |
| header('HTTP/1.1 401 Unauthorized'); | |
| echo 'Not authorized'; | |
| exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -rf .vscode | |
| if gcc -s -Os kora.c -o kora -lelf; then | |
| ./kora $(find riscv-tests/isa -name "rv32ui-p-*") | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Simple heap implemtation in C99 inspired by dlmalloc point structure | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| // The heap structure | |
| #define DEBUG | |
| typedef struct Heap { | |
| uint8_t* data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> | |
| #define UPDATE_TIMER 1 | |
| int barHeight = 32; | |
| COLORREF backgroundColor = RGB(142, 68, 173); | |
| COLORREF fontColor = RGB(255, 255, 255); | |
| char *fontName = "Segoe UI"; | |
| int fontSize = 19; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // g++ -s -Os sdl-test.cpp -lSDL2 -o sdl-test && ./sdl-test | |
| #include <SDL2/SDL.h> | |
| #include <memory> | |
| #include <functional> | |
| #include <iostream> | |
| int main(void) { | |
| if (SDL_Init(SDL_INIT_VIDEO) != 0) { | |
| std::cerr << "[ERROR] Can't init SDL: " << SDL_GetError() << std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DEMO 3 - De afstand sensor | |
| // Laad servo bibliotheek | |
| #include <Servo.h> | |
| // De pins | |
| #define ECHO_PIN 2 | |
| #define TRIGGER_PIN 3 | |
| #define SERVO_PIN 9 |