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
-- usage: osascript nomusic.scpt | |
-- prevent Music.app from launching (semi-randomly). | |
-- stupid solution to fix this stupid behaviour: | |
-- loop forever and if we detect that Music.app | |
-- is running we "quit" it, the ideal solution would | |
-- be to able to remove all those defaults .apps ... | |
on is_running(appName) | |
tell application "System Events" to (name of processes) contains appName |
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
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform vec2 u_resolution; | |
uniform float u_time; | |
float draw_circle(vec2 position, float radius) { | |
return step(radius, length(position - vec2(.5))); | |
} |
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
precision highp float; | |
uniform float time; | |
uniform vec2 mouse; | |
uniform vec2 resolution; | |
float ball(vec2 p, float fx, float fy, float ax, float ay) { | |
vec2 r = vec2(p.x + sin(time * fx) * ax, p.y + cos(time * fy) * ay); | |
return 0.09 / length(r); | |
} |
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
(function() { | |
var root = this; | |
var BackboneMock = (function() { | |
if(typeof Backbone === 'undefined') { | |
throw '"Backbone" is undefined, make sure you have loaded ' + | |
'backbone.js before using this mock utility'; | |
} | |
// Override Backbone.sync | |
// because we want to mock the requests |