<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.pbcopy</string>
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 python | |
# Trying to achieve a command line option list like this | |
# argparsetest.py [--url <url> [[--string <string>] [--string-two <string>] | --boolean [--number <number>]]] | |
# This crashes if you pass it --help. Why? | |
from argparse import ArgumentParser | |
parser = ArgumentParser('demonstration of argparse issue') |
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
"use strict"; | |
/* Create a Constructor with an arbitrary name * | |
* This allows the resultant object to be of a * | |
* named "type", allowing inspection of types * | |
* without adding keys to the object itself */ | |
function constructorNamed(name) { | |
return (new Function(["return function ", name, "() {return this;}"].join('')))(); | |
} |
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
/** | |
* Windows 98 | |
*/ | |
* { | |
box-sizing: border-box; | |
cursor: default; | |
user-select:none; | |
} | |
.selectable, input[type=text], input[type=email], textarea { |
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
// ==UserScript== | |
// @name ID Linker | |
// @namespace http://geoffstokes.net/ | |
// @include * | |
// ==/UserScript== | |
(function () { | |
// TODO: Search up the DOM tree for the nearest ID. | |
Array.prototype.slice.call(document.querySelectorAll('[id]')).forEach(function (element) { | |
element.addEventListener('click', function (event) { | |
if (event.button === 1 && event.altKey) { |
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
require "formula" | |
class Kbbutil < Formula | |
homepage "https://github.com/MaffC/beautiful-lifestyle/tree/master/kbbutil" | |
url "https://github.com/MaffC/beautiful-lifestyle/archive/c806e228ec219cfbe53054f2b486f3f41f11a92f.zip" | |
sha1 "a0865d70d5adc3f72677b87d024934729401d8c6" | |
version "1.0.0" | |
def install | |
system "cd kbbutil && make" |
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
const n = true | |
? 'YAY' | |
: 'never'; | |
blam | |
.boom() | |
.echo(n); | |
const o = { | |
gist: true, |
I hereby claim:
- I am ticky on github.
- I am ticky (https://keybase.io/ticky) on keybase.
- I have a public key whose fingerprint is FC89 26EF 238B 59F3 F7B7 CAF1 E3DE 5BE0 38F7 0FE9
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
#!/bin/env python | |
# coding: utf-8 | |
items = [ | |
[1, 2, 3, 5, 6, 7, 7, 8, 9, 10,11,12], # false | |
[2, 3, 4, 5, 6, 7, 8, 9, 10,11,12], # false | |
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], # true | |
[1, 2, 2, 4, 5, 6, 7] , # false | |
[1, 2, 3, 4, 5, 7] , # false | |
[3, 5, 1, 2, 4] # true |
OlderNewer