alias gh='git config --get remote.origin.url | ruby -ne "puts %{https://github.com/#{\$_.split(/.com[\:\/]/)[-1].gsub(%{.git},%{})}}"| xargs open'
Things that make everything better: | |
• 🟪 Purple | |
• 🍫 Chocolate | |
• 🧱 LEGO | |
• ✨ Glitter | |
• () LISP | |
• 👗 Velvet | |
• ❌ Cancelled meetings | |
• 🌶 Spicy food |
The UK Houses of Parliament netblocks are publicly listed:
https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=194.60.0.0%20-%20194.60.63.255 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.122.128%20-%2082.111.122.135 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.119.192%20-%2082.111.119.199 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.126.144%20-%2082.111.126.159 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=212.161.99.0%20-%20212.161.99.7
They were unwilling to reveal the UK parliament web proxies in an FOI request, so here's the list of every IP address that has made a Wikipedia edit from the UK parliament netblocks. Guess the proxies.
This post also appears on lisper.in.
Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.
Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):
The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.
#!/bin/sh | |
# | |
# gpgedit: edit an encrypted file with an associated list of recipients | |
# | |
# $ gpgedit secrets.gpg [gpg args] | |
# | |
# gpgedit needs the companion file "secrets.rcp" to exist, and contains a list | |
# of intended recipients, one per line. The recipient file can contain end-of- | |
# line comments, starting with the "#" character. |
This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.
We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| FUCKIN PUSSIES | |
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
13:16 <luite> | hello | |
13:16 <ChongLi> | somebody has a mental illness! | |
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| compelled to write Node.js! | |
13:16 <genisage> | hi | |
13:16 <luite> | you might be pleased to learn that you can compile | |
| haskell to javascript now |
# MAC manipulators | |
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
var exchange = require('./exchange'); | |
module.exports = BinaryHeap; | |
function BinaryHeap(scoreFunction, options){ | |
this.content = []; | |
if (options) | |
this.options = options; | |
else | |
this.options = {}; |