This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
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
export function ircUrlParts (ircUrl) { | |
// http://tools.ietf.org/html/draft-butcher-irc-url-04 | |
if (!ircUrl) { | |
return; | |
} | |
var urlParts = ircUrl.split('://'); | |
if (!urlParts[1]) { | |
return; | |
} | |
var protocol = urlParts[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
<html> | |
<head> | |
<style> | |
body { | |
background: black; | |
color: white; | |
} | |
pre { | |
font: 14px/1.7 normal "FixedsysTTF"; | |
} |
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
Generating push certificates: | |
Go to iOS developer portal, go to "App IDs", open the production app ID and open | |
settings. Click "create certificate" and follow instructions to get | |
aps_production.cer and aps_development.cer. Make sure you use distinctive names | |
with date in the CSR so you can find the things later. | |
Import generated .cer files into keychain. | |
In keychain, select "my certificates" on the left, and expand the "apple |
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
var request = require('request') | |
var COOKIE = 'session=2.blahblahblah' // copy your site cookie in here | |
var CID = 1234; // copy the connection id here | |
var BID = 1234; // copy the buffer id here | |
var SINCE = +process.env.since // optional: set an environment variable "since" to offset the log | |
get_lines(SINCE); | |
function get_lines(beforeid) { | |
var headers = { 'Cookie': COOKIE } |
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
#!/usr/bin/env python | |
import subprocess | |
import sys | |
import re | |
import urllib | |
# Mapping of local MAC addresses to last.fm usernames | |
MAC_ADDRESSES = { | |
'00:00:00:00:00:00': 'lastfm_username', |
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 dataAttr( elem, key, data ) { | |
// If nothing was found internally, try to fetch any | |
// data from the HTML5 data-* attribute | |
if ( data === undefined && elem.nodeType === 1 ) { | |
var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); | |
data = elem.getAttribute( name ); | |
if ( typeof data === "string" ) { |
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
Show hidden characters
{ | |
"sublimelinter": "load-save", | |
"sublimelinter_popup_errors_on_save": true, | |
"sublimelinter_mark_style": "none", | |
"sublimelinter_gutter_marks": true, | |
"pep8_ignore": [ | |
"E501", // line too long | |
"E302", // two blank lines before class | |
"E303", // too many blank lines between funcs | |
"E401", // multiple imports |
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
gpu() { | |
stashlist="$(git stash list)" | |
if [ "$stashlist" ]; then | |
echo "Already stashed changes" | |
echo $stashlist | |
return 1; | |
fi | |
git stash && git pull && git stash pop; | |
} |
NewerOlder