View charsnowb2d.cpp
This file contains 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
#include <deque> | |
#include <random> | |
#include <cstdint> | |
#include <ctime> | |
#include <cstdlib> | |
#include <raylib.h> | |
#include <box2d/box2d.h> | |
constexpr int TILE_WIDTH = 9; | |
constexpr int TILE_HEIGHT = 16; |
View things_recipe_logger.py
This file contains 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 flask | |
from flask_cors import CORS | |
flask_app = flask.Flask(__name__) | |
CORS(flask_app) | |
with open('recipes.txt', 'a') as f: | |
@flask_app.route('/recipe', methods=['POST']) | |
def flask_recipe(): | |
text = flask.request.data.decode('utf-8') |
View unrand_count.c
This file contains 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
// Created by flarn2006. WTFPL | |
// Compile with gcc, -fPIC -shared | |
#include <stdlib.h> | |
static int n = 0; | |
static int m = 0; | |
static int count() | |
{ |
View srb2_wireshark.lua
This file contains 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
local srb2_proto = Proto('SRB2', 'Sonic Robo Blast 2') | |
srb2_proto.prefs.validate_checksum = Pref.bool('Validate checksums', false, 'Whether to validate the packet checksum') | |
local function add_fields(...) | |
for i,v in ipairs({...}) do | |
table.insert(srb2_proto.fields, v) | |
end | |
end |
View glmatrix.cpp
This file contains 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
/* Compile with -lGL -lfltk -lfltk_gl */ | |
#include <Fl/Fl.h> | |
#include <Fl/Fl_Window.h> | |
#include <Fl/Fl_Box.h> | |
#include <Fl/Fl_Value_Input.h> | |
#include <Fl/Fl_Value_Output.h> | |
#include <Fl/Fl_Dial.h> | |
#include <Fl/Fl_Button.h> | |
#include <Fl/Fl_Gl_Window.h> |
View zigzag.c
This file contains 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
/* Requires raylib (compile with -lraylib) */ | |
#include <raylib.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define WIDTH 400 | |
#define HEIGHT 240 | |
#define SAFE_AREA 50 | |
#define BASE_COUNT 500 | |
#define PER_LEVEL 100 |
View mandelbrot.c
This file contains 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 _GNU_SOURCE | |
#include <stdio.h> | |
#include <errno.h> | |
#include <pthread.h> | |
#include <getopt.h> | |
#include <SDL2/SDL.h> | |
#define DEFAULT_ITER_COUNT 768 | |
#define OPT_CLEAR 1 |
View allGauGANLabels.user.js
This file contains 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
// ==UserScript== | |
// @name All GauGAN Labels | |
// @version 1 | |
// @grant none | |
// @include http://34.216.122.111/gaugan/ | |
// ==/UserScript== | |
function selectCategoryAll() | |
{ | |
var palette = document.getElementById('palette'); |
View rainbow.v
This file contains 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
module rainbow ( | |
input clk, | |
output red, | |
output grn, | |
output blu, | |
); | |
reg [26:0] counter; | |
wire [11:0] t; | |
wire [11:0] cmp; |
View gt-reverse.js
This file contains 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
// ==UserScript== | |
// @name Google U.G.E. | |
// @version 1.1 | |
// @grant none | |
// @include https://translate.google.com/* | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
var btn = document.createElement('div'); | |
btn.setAttribute('class', 'jfk-button-standard jfk-button-narrow jfk-button'); |
NewerOlder