(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
;; Very quick hack to use `grasp` for searching js tokens in emacs. | |
;; Uses (compile) so when you get search results you can quickly step through them with (next-error) and (previous-error) | |
;; to install: | |
;; $ npm install -g grasp strip-ansi | |
(defun grasp-current-buffer (arg) | |
(interactive "MGrasp: ") | |
(compile (concat "grasp -H '" arg "' " (buffer-file-name) " | strip-ansi"))) |
javascript:(function()%7B(function()%7Bvar%20a%2Cb%2Cc%2Cd%2Ce%2Cf%3Ba%3D%22table%5Bdata-sortable%5D%22%2Cc%3D%2F%5E-%3F%5B%C2%A3%24%C2%A4%5D%3F%5B%5Cd%2C.%5D%2B%25%3F%24%2F%2Cf%3D%2F%5E%5Cs%2B%7C%5Cs%2B%24%2Fg%2Ce%3D%22ontouchstart%22in%20document.documentElement%2Cb%3De%3F%22touchstart%22%3A%22click%22%2Cd%3D%7Binit%3Afunction(b)%7Bvar%20c%2Ce%2Cf%2Cg%2Ch%3Bfor(null%3D%3Db%26%26(b%3D%7B%7D)%2Cnull%3D%3Db.selector%26%26(b.selector%3Da)%2Ce%3Ddocument.querySelectorAll(b.selector)%2Ch%3D%5B%5D%2Cf%3D0%2Cg%3De.length%3Bg%3Ef%3Bf%2B%2B)c%3De%5Bf%5D%2Ch.push(d.initTable(c))%3Breturn%20h%7D%2CinitTable%3Afunction(a)%7Bvar%20b%2Cc%2Ce%2Cf%2Cg%3Bif(1%3D%3D%3Da.tHead.rows.length%26%26%22true%22!%3D%3Da.getAttribute(%22data-sortable-initialized%22))%7Bfor(a.setAttribute(%22data-sortable-initialized%22%2C%22true%22)%2Ce%3Da.querySelectorAll(%22th%22)%2Cb%3Df%3D0%2Cg%3De.length%3Bg%3Ef%3Bb%3D%2B%2Bf)c%3De%5Bb%5D%2C%22false%22!%3D%3Dc.getAttribute(%22data-sortable%22)%26%26d.setupClickableTH(a%2Cc%2Cb)%3Breturn%20a%7D%7D |
#!/usr/bin/env bash | |
########################################################### | |
# create bootable tails usb-stick https://tails.boum.org/ # | |
# !!! Read the comments !!! CHANGE <diskN> placeholder # | |
########################################################### | |
# get iso | |
wget http://dl.amnesia.boum.org/tails/stable/tails-i386-0.21/tails-i386-0.21.iso |
\documentclass[pdftex, 12pt, a4paper, british, final]{article} | |
\usepackage[l2tabu,orthodox]{nag} | |
\usepackage{fixltx2e} | |
\usepackage{babel} | |
\usepackage[strict=true]{csquotes} | |
\usepackage{isodate} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage[protrusion=true, expansion=true]{microtype} |
#!/usr/bin/env node | |
/** | |
* Transforms code from old-style requirejs modules into AMD sugared modules. | |
* | |
* define(['dep1','dep2'], function(arg1, arg2) {...}) | |
* | |
* becomes: | |
* | |
* define(function(require) { var arg1 = require('dep1'), arg2 = require('dep2'); ... }); | |
* |
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: