Skip to content

Instantly share code, notes, and snippets.

View depoulo's full-sized avatar

Paolo Priotto depoulo

  • ePages GmbH
  • Hamburg, Germany
  • 02:20 (UTC +02:00)
  • X @depoulo
View GitHub Profile
@depoulo
depoulo / dabblet.css
Created February 26, 2014 09:27
Attempt for Essen & Trinken small stage teasers
/**
* 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 {
@depoulo
depoulo / gist:a03395c351ddbe277f9f
Created March 20, 2015 12:49
My boxstarter script
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 August 29, 2015 14:19
JS Unconf 2015 notes
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");
@depoulo
depoulo / _.whereDeep.js
Last active August 29, 2015 14:27
_.whereDeep
/**
* 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 July 15, 2013 07:31 — 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
/**
* 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 July 15, 2013 09:47
What exactly do you mean by "dotted"?
/**
* 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 December 1, 2013 12:41
What exactly do you mean by "dotted"?
/**
* 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 March 4, 2016 14:49
express middleware that throws if the specified request parameters are missing
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 June 20, 2016 08:51
Chrome Windows bug - sadly no issue number
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.