Skip to content

Instantly share code, notes, and snippets.

View davoclavo's full-sized avatar
🎯
Focusing

Davo davoclavo

🎯
Focusing
View GitHub Profile
https://docs.google.com/presentation/d/1Cxgs9sklnKU3KEBSVCLlDswFbYUjYYZciaMNF9ipVZU
@davoclavo
davoclavo / ConfigurableFirmata.ino
Created September 15, 2014 19:46
adding DHT11Feature
/*
* Firmata is a generic protocol for communicating with microcontrollers
* from software on a host computer. It is intended to work with
* any host computer software package.
*
* To download a host software package, please click on the following link
* to open the download page in your default browser.
*
* http://firmata.org/wiki/Download
*/
#! /bin/sh
# /etc/init.d/doorbot
### BEGIN INIT INFO
# Provides: doorbot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script to start doorbot
@davoclavo
davoclavo / pipipopo.md
Created November 13, 2012 18:58
bandtastic moving_container fix

El #moving_container tiene un pequeño offset cuando scrolleas, cambien la línea 726 del cover_bundle_js.js

De:

var starting_point = $timer.height() + $timer.offset().top - 20;

A:

var starting_point = $timer.height() + $timer.offset().top - 10;

@davoclavo
davoclavo / cssfix.md
Created November 15, 2012 20:38
The New Lastpass small fix

First of all: beautiful. Great job.

There is just this little thing (border radius of inner elements of the list):

the little thing

To fix:

Remove these lines from the #actions ul li a block

@davoclavo
davoclavo / typos.md
Created December 6, 2012 03:49
NimbusBase

Found another typo in here

NimbusBase can be deployed on top of Backbone so that you can take any Backbone app and changed it's storage to be on top of NimbusBase.

Should be:

NimbusBase can be deployed on top of Backbone so that you can take any Backbone app and change it's storage to be on top of NimbusBase.

Awesome product. I saw your email regarding helping us get our apps done, as soon as I get my idea clearer I'll probably need help :).

@davoclavo
davoclavo / Soda Dark.sublime-theme
Created December 12, 2012 15:39
highlight_modified_tabs orange
{
"class": "tab_label",
"settings": ["highlight_modified_tabs"],
"parents": [{"class": "tab_control", "attributes": ["dirty"]}],
"fg": [255, 161, 52]
}
@davoclavo
davoclavo / pizza-time.md
Created December 13, 2012 02:00
A nice pizza recipe!

Pizza Time!

6 1/2 cups bread flour 2 teaspoons yeast 3 1/4 cup cold water 6 Tablespoons olive oil 2 teaspoons salt 3 teaspoons sugar Mix yeast, sugar and salt together with a cup of water. Put 5 cups of flour in mixer (or bowl if your doing it old school). Add yeast mixture, olive oil and water. Start mixing. Slowly add remaining flour until you get a moist ball of dough. Don't put to much flour in because the dough will get too dry.

Kneed dough for around 10 minutes. I just leave it in the mixer and let the dough hook do the trick. Then cut the dough ball into 8 individual balls. I then coat each ball with more olive oil, put them in a bowl and let them rise over night in the fridge.

Take them out of the fridge an hour prior to cooking. Preheat your oven with pizza stone for an hour, and set the temp as high as it will go. Pizzas take 3 or 4 minutes to cook depending on toppings.

@davoclavo
davoclavo / getJpath.js
Created December 18, 2012 22:41
Get a property from an object using jpath notation (I don't even know if that notation exists, but it is like 'object.property1.property2'). I use it to get properties of unknown objects that may or may not have a property, and they raise an exception.
getJpath = function(object, path){
var segments = path.split('.');
var first = segments.shift(); // and it removes it from the array
if( object[first] ) {
if( segments.length > 0 ) {
return getJpath(object[first], segments.join('.'));
} else {
return object[first];
}
} else {
@davoclavo
davoclavo / print.css
Created December 24, 2012 16:43
letter paper printing css
@media print {
.pagina {
border: 1px solid black;
width: 763px;
height: 988px;
background-color: lightgray;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;