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 | |
import numpy as np | |
import jax.numpy as jnp | |
from cr.sparse.pursuit import omp | |
NUM_SAMPLES = 512 # reduce this if it's using too much memory! | |
def resample(signal, samples): | |
resampled = [] | |
for i in range(samples): | |
x = i/samples |
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
version = 1 | |
title = 'icicle fall (9/9)' | |
[[modules]] | |
plugin = 'source.svelte' | |
data.contents = ''' | |
use your mouse to dodge(?) the bullets! (click to play!) | |
<details class="clickthrough"> | |
<summary class="clickthroughsummary"> | |
<div class="container"> |
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
int frame = 0; | |
int depth_limit = 9; | |
int ti = -1; | |
String world = ""; | |
String world_ending = "..."; | |
int world_length = 3; | |
PVector main = new PVector(400, 400, 90); | |
PVector ba; | |
PVector bb; | |
PVector bc; |
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 | |
import cmath | |
import numpy as np | |
NUM_SAMPLES = 4096 | |
import matplotlib.pyplot as plt | |
def resample(signal, samples): | |
signal.append((1, signal[-1][1])) | |
resampled = [] |
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
from shapely.geometry import Polygon, MultiPoint, Point | |
from shapely.ops import voronoi_diagram | |
import matplotlib.pyplot as plt | |
import random | |
import math | |
NUM_EGGBUGS = 5 | |
cursors = [ | |
"nwse-resize", |
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 struct | |
def u32(b, endian='big'): | |
e = '>' if endian == 'big' else '<' | |
return struct.unpack(e+'I', b)[0] | |
with open('DMR-EZ485V firmware.bin','rb') as f: | |
firmware = f.read() | |
cons = firmware[0x40000:] # start of CONS |
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 sys | |
import struct | |
import binascii | |
from collections import Counter | |
def u16(b): | |
return struct.unpack('<H', b)[0] | |
def p16(x): | |
return struct.pack('<H', x) | |
def p32(x): |
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
int frame = 0; | |
int depth_limit = 6; | |
int ti = -1; | |
String world = ""; | |
String world_ending = "..."; | |
int world_length = 3; | |
PVector main = new PVector(400, 400, 90); | |
PVector ba; | |
PVector bb; | |
PVector bc; |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
#ifndef UNICODE | |
#define UNICODE | |
#endif | |
const wchar_t CLASS_NAME[] = L"class"; | |
#include <cstdio> | |
#include <windows.h> | |
#include <io.h> | |
#include <fcntl.h> |
NewerOlder