Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / index.html
Created October 28, 2012 11:46
A CodePen by Alfredo Llanos. Shiny Button
<div class="btn-group">
<button class="btn spacer">&nbsp;</button>
<button class="btn">Up &uarr;</button>
<button class="btn spacer">&nbsp;</button>
</div>
<div class="btn-group">
<button class="btn">&larr; Left</button>
<button class="btn active">Down &darr;</button>
<button class="btn active">Right &rarr;</button>
</div>
@biojazzard
biojazzard / sine
Created October 29, 2012 15:31
SineWave
/* 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);
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)=>
@biojazzard
biojazzard / gcode-js-lib
Created October 31, 2012 07:52
Librería JS para gcode
/* 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)
@biojazzard
biojazzard / embudo-scad
Created December 20, 2012 09:02
Embudo by alsostarring.
/*
*
* Embudo: SCAD
* Ver: 1.0
* by Also Starring (@twitter)
* MIT Licensed 2012
*
*/
//Embudo Paramétrico
# 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
@biojazzard
biojazzard / openshift
Created May 9, 2013 19:25
Open Shift | CodeIgniter
/* https://www.openshift.com/get-started/codeigniter */
/* Install */
gem install rhc
/* Setup SSH */
rhc setup
/* Setup App: MyAppName */
cd ./openshift.com
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
@biojazzard
biojazzard / OSX + dropbox + webserver
Last active December 24, 2015 01:49
OSX + dropbox + webserver
// 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/
@biojazzard
biojazzard / Masonry---columnWidth.markdown
Created October 21, 2013 20:00
A Pen by Alfredo Llanos.