;; Customise deft to remove file-vars from the title line. ;; ;; I use ‘markdown-mode with deft usually, but for some longform files, ;; I prefer using ‘org-mode. ;; ;; The easiest way to do this is to use a file variable like so: ;; ;; -*- mode: org; -*- ;; ;; in the first line of the file. This makes the file open in ‘org-mode
I hereby claim:
- I am anks on github.
- I am anks (https://keybase.io/anks) on keybase.
- I have a public key whose fingerprint is 19FF 2958 B7FA CC10 CE4D 79D4 A144 4AC9 C3AC C9F7
To claim this, I am signing this object:
This file contains 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
# Block these IPs at a firewall level | |
# MTNL Delhi uses this IP to inject their popup "ads" on some non HTTPS requests | |
203.94.243.40 |
This file contains 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
#!/usr/bin/env bash | |
# Gives you file-by-file change stats between two archives. | |
# Assuming your two archives are original.tar.gz and modified.tar.gz in | |
# the curent directory. | |
# I know that there is a tool called diffstat for this very purpose, | |
# and git probably uses it internally as well. I wanted to demo the | |
# git-diff --stat command. | |
This file contains 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
/** | |
* CSS to add section numbers to top-level headings in | |
* a Google Docs (or any HTML) document. | |
* | |
* See <http://www.w3.org/TR/CSS2/generate.html> for | |
* more details. | |
*/ | |
body { | |
counter-reset: section; | |
} |
Some exercises from the Falsy Values workshops.
The good parts:
- HTTP server and client in same script
- Express cookies example
- Express routing example
- Express error handling
- Express middlewares example
- Simple HTTP proxy
This file contains 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
We deeply regret to inform you that we will not be able to deliver your | |
subscription copy of the February 11th issue of The Economist. | |
This issue includes a special report on Pakistan and features a map | |
showing the disputed territories. India does not allow us to show the | |
current effective border, requiring us instead to show only its | |
territorial claims. As a result, the issue has been seized by the Indian | |
customs authorities. | |
We apologise sincerely for any inconvenience this may cause. We will be |
This file contains 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
$('select.bit-rate').each(function() { $(this).find('option:first').attr('selected', 'selected'); }); |
This file contains 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
color[] colors = { color(85, 98, 112), color(78, 205, 196), | |
color(199, 244, 100), color(255, 107, 107), | |
color(196, 77, 88) | |
}; | |
float rot = 0; | |
int colorIndex = 0; | |
void setup() { | |
frameRate(26); | |
size(325, 200, P3D); |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style></style> | |
<body> | |
<h2>Transitioning numbers</h2> | |
<h3 data-value="0" id="the-number">0</h3> | |
<input type="number" value="0" id="new-number" step="100" /> |
OlderNewer