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
| #!/bin/bash | |
| # vim: syntax=sh | |
| . /etc/rc.conf | |
| . /etc/rc.d/functions | |
| daemon_name=php-cgi | |
| BIND=/tmp/php-cgi.socket | |
| USER=gimi |
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
| float find_closest(int x, int y, float c0) { | |
| /* | |
| Original looping code, from http://devlog-martinsh.blogspot.com.es/2011/03/glsl-dithering.html | |
| vec4 dither[4]; | |
| dither[0] = vec4( 1.0, 33.0, 9.0, 41.0); | |
| dither[1] = vec4(49.0, 17.0, 57.0, 25.0); | |
| dither[2] = vec4(13.0, 45.0, 5.0, 37.0); | |
| dither[3] = vec4(61.0, 29.0, 53.0, 21.0); |
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
| /** | |
| * @author mrdoob / http://mrdoob.com/ | |
| * @author alteredq / http://alteredqualia.com/ | |
| * @author paulirish / http://paulirish.com/ | |
| */ | |
| THREE.FirstPersonControls2 = function ( object, domElement ) { | |
| var latitude = 0, | |
| longitude = 0, | |
| phi = 0, |
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
| var array; | |
| var arrayTest = new MUNIT.Test([ | |
| function lengthZeroWhenEmpty() { | |
| this.assertEquals(0, array.length); | |
| }, | |
| function lengthNotZeroIfNotEmpty() { | |
| array.push(1); | |
| this.assertTrue(array.length != 0); | |
| }, |
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
| var Car = function() { | |
| this.beep = function() { | |
| return 'beep'; | |
| } | |
| this.honk = function() { | |
| return 'honk'; | |
| } | |
| return this; |
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
| # http://broutilles.com/2011/04/22/imagemagick-how-to-slice-an-image-in-parts/ | |
| convert svg-cards.png -crop 179x260 +repage +adjoin cards_%02d.png |
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
| # http://stackoverflow.com/questions/788277/iphone-strange-error-when-testing-on-simulator | |
| ps ax | grep Simulator | |
| # list zombie processes | |
| ps -el | grep "Z" |
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 python | |
| # | |
| """ | |
| cvt.py -- script to downsample images for book creation | |
| Comments, patches welcome: | |
| Eric Jeschke (eric@redskiesatnight.com) | |
| (c) 2009 Eric R. Jeschke (eric@redskieatnight.com). | |
| This work is licensed under a Creative Commons Attribution-Share Alike |
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
| /*! | |
| * Tiny Carousel 1.9 | |
| * http://www.baijs.nl/tinycarousel | |
| * | |
| * Copyright 2010, Maarten Baijs | |
| * Dual licensed under the MIT or GPL Version 2 licenses. | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.opensource.org/licenses/gpl-2.0.php | |
| * | |
| * Date: 01 / 06 / 2011 |
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
| #!/bin/bash | |
| # Thanks to Martin Los for his guide: http://www.martinlos.com/?p=41 | |
| URLS=("http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.3.tar.gz" "http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz" "http://downloads.sourceforge.net/project/faac/faad2-src/faad2-2.7/faad2-2.7.tar.gz") | |
| for i in "${URLS[@]}" | |
| do | |
| echo $i | |
| curl -O -L $i |