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 / Makefile.config
Last active October 14, 2015 16:56 — forked from robertsdionne/deepdream-install.md
Deepdream installation
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1 ########### Keep it like this to disable cuDNN
USE_CUDNN := 1 ########### Make it like this to enable cuDNN
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
@biojazzard
biojazzard / GIF-Screencast-OSX.md
Created October 18, 2015 16:38 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@biojazzard
biojazzard / jade-php-if-include
Created November 18, 2015 12:51
Jade PHP if include syntax
- $fs = _fs('galdetu');
- if ($input->urlSegment1 == 'colaboraciones-lankidetzat') :
- include('./inc/form-contact-simple.php')
- else :
- include('./inc/form-contact-big.php')
- endif
@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