Remove content-blocking pop-ups to encourage content providers use non-blocking UX.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** General Skeletons controller */ | |
var Skeletons = Backbone.View.extend({ | |
model: SkeletonsModel, | |
el: ".b_skeletons", | |
events: { | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTpl(tpl, options) { | |
if (!tpl) return; | |
if (!options) options = null; | |
var prepare = false; | |
if (options == 1) { | |
options = {}; | |
prepare = true; | |
console.log('prepare'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.b_imageload { | |
&__thumbnail { | |
color: green; | |
&--profile & { | |
color: red; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace GM\FSDFM; | |
/** | |
* Plugin Name: Fullscreen Distraction-Free Mode (pre v4.1) | |
* Description: Allows to use the distraction-free mode that was active pre 4.1 WP version. | |
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/c081ce03a68b00d983d5 | |
* Author: Giuseppe Mazzapica | |
* Author URI: https://gm.zoomlab.it | |
* License: MIT | |
* Version: 1.0.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "wp-jouele I don't wanna SVN deploy" | |
cd ~/work/htdocs/wp-test/wp-content/plugins | |
cp -R wp-jouele/* ~/work/wp-jouele/trunk | |
cd ~/work/wp-jouele | |
rm -rf .git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{"group":1, "neighbours":[3,7,8,9,10,11],"node_id":1}, | |
{"group":1, "neighbours":[1],"node_id":3}, | |
{"group":1, "neighbours":[1,8,9,10],"node_id":7}, | |
{"group":2, "neighbours":[1,7,10,11],"node_id":8}, | |
{"group":3, "neighbours":[1,7,10],"node_id":9}, | |
{"group":1, "neighbours":[1,7,9,11],"node_id":10}, | |
{"group":1, "neighbours":[1,7,9],"node_id":11} | |
] |
This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.
Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Debounce creates a FUNCTION that when invoked, delays invoking func for wait milliseconds since | |
* the last time it is called. | |
* | |
* Examples of where this may be useful: | |
* | |
* // Avoiding repeated costly operations while a window size is in flux | |
* jQuery(window).on('resize', debounce(calculateLayout, 150)); | |
* | |
* // Avoiding triggering an event on a double button press |