Skip to content

Instantly share code, notes, and snippets.

Avatar

Paolo Priotto depoulo

View GitHub Profile
@depoulo
depoulo / dabblet.css
Created Feb 26, 2014
Attempt for Essen & Trinken small stage teasers
View dabblet.css
/**
* Attempt for Essen & Trinken small stage teasers
*/
* { padding: 0; margin: 0; }
body { padding: 2%; max-width: 25em; font-family: Verdana; } a { color: black; text-decoration: none; }
.left { float: left; }
.right { float: right; }
.left, .right {
View gist:a03395c351ddbe277f9f
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
cinst 7zip.install
cinst classic-shell
cinst Console2
cinst curl
cinst dropbox
cinst fiddler4
cinst Firefox
cinst flashplayerplugin
@depoulo
depoulo / JSunconf15notes.md
Last active Aug 29, 2015
JS Unconf 2015 notes
View JSunconf15notes.md
View delayedFonts.diff
diff --git a/source/brix/brix.core.editor/editor.less b/source/brix/brix.core.editor/editor.less
index a8b569d..73bc245 100644
--- a/source/brix/brix.core.editor/editor.less
+++ b/source/brix/brix.core.editor/editor.less
@@ -1,6 +1,6 @@
//
// Fonts & Icons
-@import url("http://fonts.googleapis.com/css?family=Open+Sans:400italic,300,400,600,700");
+@import url("http://deelay.me/29000/http://fonts.googleapis.com/css?family=Open+Sans:400italic,300,400,600,700");
@import url("http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css");
View _.whereDeep.js
/**
* Pimped version of `_.where` (https://lodash.com/docs#where) that can recurse deep.
*
* @param {Array|Object|string} collection The collection to search.
* @param {Object} source The object of property values to match.
* @param {String} prop The property of the collection to recurse into.
* @returns {Array} the new filtered array.
*/
var whereDeep = function (collection, source, prop) {
'use strict';
@depoulo
depoulo / dabblet.css
Created Jul 15, 2013 — forked from LeaVerou/dabblet.css
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
View dabblet.css
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
*/
li {
list-style: none;
display: inline-block;
padding: 1em 2em 1em 1em;
border: 1px solid rgba(0,0,0,.3);
border-radius: 0 999px 999px 0;
@depoulo
depoulo / dabblet.css
Created Jul 15, 2013
What exactly do you mean by "dotted"?
View dabblet.css
/**
* What exactly do you mean by "dotted"?
*/
i {
border-width: 10px;
border-color: peachpuff;
border-style: dotted;
border-radius: 150px;
@depoulo
depoulo / dabblet.css
Created Dec 1, 2013
What exactly do you mean by "dotted"?
View dabblet.css
/**
* What exactly do you mean by "dotted"?
*/
i {
border-width: 10px;
border-color: peachpuff;
border-style: dotted;
border-radius: 150px;
@depoulo
depoulo / requireParams.js
Last active Mar 4, 2016
express middleware that throws if the specified request parameters are missing
View requireParams.js
import {difference} from 'lodash';
export function BadRequestError(message) {
this.name = 'BadRequestError';
this.statusCode = 400;
this.message = 'Bad request. ' + message;
}
BadRequestError.prototype = Object.create(Error.prototype);
BadRequestError.prototype.constructor = BadRequestError;
@depoulo
depoulo / gist:d8c79e180b269b237803303122feee07
Last active Jun 20, 2016
Chrome Windows bug - sadly no issue number
View gist:d8c79e180b269b237803303122feee07
Browser unresponsive when large amount of text is inside text input field.
1. Visit this page: data:text/html,<!doctype html><html style="min-height: 300vh"><input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" type="text"></input>
2. Paste a large amount of text (between 10k and 100k characters, depending on your machine) into the text input.
3. Try repositioning the cursor, or scrolling
=> You'll experience serious lag, whereas Chrome on Mac OS, as well as other browsers, are just fine.