A Pen by Alfredo Llanos on CodePen.
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
<div class="btn-group"> | |
<button class="btn spacer"> </button> | |
<button class="btn">Up ↑</button> | |
<button class="btn spacer"> </button> | |
</div> | |
<div class="btn-group"> | |
<button class="btn">← Left</button> | |
<button class="btn active">Down ↓</button> | |
<button class="btn active">Right →</button> | |
</div> |
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
/* As seen here: http://www.youtube.com/watch?v=PN8Eg1K9xjE */ | |
var context = new webkitAudioContext(); | |
var sineWave = context.createOscillator(); | |
sineWave.connect(context.destination); | |
sineWave.noteOn(0); |
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
e = document.getElementById("fullscreen") | |
pfx = ["webkit", "moz", "ms", "o", ""] | |
e.onClick => | |
if RunPrefixMethod document, "FullScreen" || RunPrefixMethod document, "IsFullScreen" | |
RunPrefixMethod e, "CancelFullScreen" | |
else | |
RunPrefixMethod e, "RequestFullScreen" | |
prefixMethod (obj, method)=> |
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
/* Librería javascript */ | |
/* Tal y como se encuentra aqui: http://www.unfocusedbrain.com/projects/2009/js-g-code/jstogcode.html */ | |
/* License GNU GPL V3*/ | |
// functions | |
// function gcodeHeader() | |
// function gcodeFooter() | |
// function drawCircle(x,y,z,radius) | |
// function drawBox(x1,y1,z1,x2,y2,z2) | |
// function drawLine(x1,y1,z1,x2,y2,z2) |
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
/* | |
* | |
* Embudo: SCAD | |
* Ver: 1.0 | |
* by Also Starring (@twitter) | |
* MIT Licensed 2012 | |
* | |
*/ | |
//Embudo Paramétrico |
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
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
#1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
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
/* https://www.openshift.com/get-started/codeigniter */ | |
/* Install */ | |
gem install rhc | |
/* Setup SSH */ | |
rhc setup | |
/* Setup App: MyAppName */ | |
cd ./openshift.com |
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
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
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
// Usar una carpeta dropbox y que salga por apache, | |
// Tenemos esta jerarquía en OSX | |
// En la raiz de user OSXUSERNAME, tenemos la carpeta dropbox, | |
// en ella creamos Sites y en ella nuestra aplicacion php. | |
~/OSXUSERNAME/dropbox/Sites/little-store.es/ | |
// Lo que queremos es que eso salga por: | |
http://localhost/dropbox/little-store.es/ |