Skip to content

Instantly share code, notes, and snippets.

View davoclavo's full-sized avatar
🎯
Focusing

Davo davoclavo

🎯
Focusing
View GitHub Profile
@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;
@davoclavo
davoclavo / dataURItoBlob.js
Last active May 26, 2023 14:45
Convert dataURI to Blob so large images do not crash the browser. Based on: http://stackoverflow.com/questions/10412299 and http://stackoverflow.com/questions/6850276
/*
The MIT License (MIT)
Copyright (c) 2016 David Gomez-Urquiza
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION

Bug #1:

If the filename is too big, it gets on top of the "N file" link icon, which looks nasty. bug1

And maybe you will say:

no one will ever write a name that long, GOSH!

well, it doesn't only looks weird, but it is the source of another bug...

@davoclavo
davoclavo / chartio.md
Last active December 14, 2015 22:59
Chart.io link bug

When you are navigating a specific job page, the job links on the sidebar are broken, because the protocol part is url encoded, the browser (in my case, Chrome) interprets them as relative links. The links are hrefed as this: https%3A//chartio.com/jobs/ui-developer

So, don't escape html characters in the protocol part of the link.

Cheers and beers!