Skip to content

Instantly share code, notes, and snippets.

View daeken's full-sized avatar

Serafina Brocious daeken

View GitHub Profile
import math, random, wave
import numpy as np
import scipy.io.wavfile
def noteToFreq(halfSteps):
return 440 * (2 ** ((halfSteps - 49) / 12.))
sr = 44100
def sineOf(freq):
x = np.arange(sr * 5)
def vmul(a, b):
return (a[0] * b, a[1] * b, a[2] * b)
def vmin(*x):
cur = x[0]
for v in x[1:]:
cur = min(v[0], cur[0]), min(v[1], cur[1]), min(v[2], cur[2])
return cur
def vmax(*x):
This file has been truncated, but you can view the full file.
------------------------------------------------------------------------
r190374 | dbates@webkit.org | 2015-09-30 23:56:51 +0000 (Wed, 30 Sep 2015) | 10 lines
Changed paths:
M /trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json
M /trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py
M /trunk/Tools/ChangeLog
Rename iOS builders/testers to include version
https://bugs.webkit.org/show_bug.cgi?id=149685
------------------------------------------------------------------------
r212097 | carlosgc@webkit.org | 2017-02-10 08:26:45 +0000 (Fri, 10 Feb 2017) | 5 lines
Changed paths:
M /trunk/Source/WebKit2/ChangeLog
M /trunk/Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp
Unreviewed. Fix GTK+ build with threaded compositor disabled.
* WebProcess/WebPage/AcceleratedDrawingArea.cpp:
(WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode):
------------------------------------------------------------------------
r209424 | mark.lam@apple.com | 2016-12-06 22:43:16 +0000 (Tue, 06 Dec 2016) | 107 lines
Changed paths:
M /trunk/JSTests/ChangeLog
M /trunk/JSTests/stress/get-from-scope-dynamic-onto-proxy.js
D /trunk/JSTests/stress/proxy-dont-infinite-loop.js
D /trunk/JSTests/stress/proxy-json-path.js
D /trunk/JSTests/stress/rest-parameter-allocation-elimination-watchpoints-6.js
M /trunk/LayoutTests/ChangeLog
M /trunk/LayoutTests/TestExpectations
------------------------------------------------------------------------
r210821 | fpizlo@apple.com | 2017-01-17 18:55:55 +0000 (Tue, 17 Jan 2017) | 121 lines
Changed paths:
M /trunk/Source/JavaScriptCore/API/JSAPIWrapperObject.mm
M /trunk/Source/JavaScriptCore/API/JSCallbackObject.h
M /trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
M /trunk/Source/JavaScriptCore/API/JSObjectRef.cpp
M /trunk/Source/JavaScriptCore/ChangeLog
M /trunk/Source/JavaScriptCore/bytecode/EvalCodeBlock.cpp
M /trunk/Source/JavaScriptCore/bytecode/FunctionCodeBlock.cpp
import re
def regex(pattern, flags=0):
def sub(text):
match = pattern.match(text)
if match == None:
return False
return match.groups()
pattern = re.compile(pattern, flags)
return sub
My heartfelt prayers and thoughts go out to the brave folks in Paris #hashplatitudes
My heartfelt prayers and thoughts go out to the brave folks of Savannah #hashplatitudes
My heartfelt prayers and thoughts go out to the brave people in Paris #hashplatitudes
My heartfelt prayers and thoughts go out to the brave people of Paris #hashplatitudes
My heartfelt prayers and thoughts go out to the brave people of Savannah #hashplatitudes
My heartfelt prayers and thoughts go out to the strong folks of Paris #hashplatitudes
My heartfelt prayers go out to the brave people in Savannah #hashplatitudes
My heartfelt prayers go out to the brave people of Savannah #hashplatitudes
My heartfelt prayers go out to the strong folks in Paris #hashplatitudes
My heartfelt prayers go out to the strong folks in Savannah #hashplatitudes
EPS = .03125
clamp = (x) -> Math.min Math.max(x, 0), 1
class Collider
constructor: (@tree) ->
checkCollision: (a, b, bbox) ->
outputStartsOut = true
outputAllSolid = false
@daeken
daeken / md3.py
Last active October 25, 2015 07:55
import sys
from Struct import *
import struct
@Struct
def Frame():
mins, maxs = vec3, vec3
local_origin = vec3
radius = float
name = string(16)