start new:
tmux
start new with session name:
tmux new -s myname
/** | |
* PHP-like print_r() equivalent for JavaScript Object | |
* | |
* @author Faisalman <fyzlman@gmail.com> | |
* @license http://www.opensource.org/licenses/mit-license.php | |
* @link http://gist.github.com/879208 | |
*/ | |
var print_r = function (obj, t) { | |
// define tab spacing |
#include <IRremote.h> | |
/* | |
Send infrared commands from the Arduino to the iRobot Roomba | |
by probono | |
2013-03-17 Initial release | |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
Useful for when a blocking user experience is needed (in my case, didn't want people unwittingly loosing their place by scrolling while a modal required their attention): $.scrollLock()
locks the body in place, preventing scroll until it is unlocked.
// Locks the page if it's currently unlocked
$.scrollLock();
// ...or vice versa
<?php | |
$query1 = new WP_Query($arg1); | |
$query2 = new WP_Query($arg2); | |
$query = new WP_Query(); | |
$query->posts = array_merge( $query1->posts, $query2->posts ); | |
// we also need to set post count correctly so as to enable the looping |
(function () { | |
var _window = window; | |
(function () { | |
var window = {}; | |
Object.defineProperty(window, 'location', { | |
get: function () { return _window.location; }, |
#! /bin/bash | |
# A bash script for an advanced setup of a Wacom on Linux : | |
# with a grep, automatic parsing of the Wacom identifier, of the screen, of dpi and with a precision mode | |
# ( drawing at 1:1 scale , the tablet / the screen ) . | |
# Only the button layout remain custom to the model ( Intuos 3 in this example ) | |
# and can be easily adapted with other buttons ID. | |
# | |
# Dependencies: libwacom (xsetwacom), Bash and bc for the math, xrandr | |
# optional: Gnome icon, notify-send | |
# ( tested/created on Mint 17.2 Cinnamon, 11/2015 ) |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
Translations: (No guarantee that the translations are up-to-date)