Skip to content

Instantly share code, notes, and snippets.

@jamezpolley
jamezpolley / .vimrc
Created May 4, 2011 01:56
my .vimrc
" Things that need no explanation
set nocompatible
syntax on
set background=dark
" Tweaks to help mousiness work in normal vim inside an xterm.
set mouse=a
set ttymouse=xterm2
" Attempt to get sane indenting:
@jamezpolley
jamezpolley / giteditor
Created May 26, 2011 05:03
Port of hgeditor to work with git
#!/bin/sh -x
#
# based on http://selenic.com/git/raw-file/tip/hgeditor
# and http://stackoverflow.com/questions/4750148/git-show-index-diff-in-commit-message-as-comment
#
# This is an example of using GITEDITOR to create of diff to review the
# changes while commiting.
#
# If you want to pass your favourite editor some other parameters
# only for Git, modify this:
@jamezpolley
jamezpolley / chrome
Created July 26, 2011 01:28
my chrome profile launcher script
#!/bin/bash
dochrome-mac () {
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-udd-profiles --user-data-dir=/Users/$USER/Library/Application\ Support/Google/Chrome$1 2>&1 &
}
dochrome-linux () {
/opt/google/chrome/google-chrome --enable-udd-profiles --user-data-dir=~/.config/google-chrome$1 %U 2>%1 &
}
james@bodacious-wired:~$cat test.py
#!/usr/bin/env python
class MyClass:
element1 = "Hello"
def __init__(self):
self.element2 = "World"
obj1 = MyClass()
#!/usr/bin/env python
directory = [
{'department': 123, 'location': 'NYC', 'username': 'bob', 'roles':
['developer', 'sysadmin']},
{'department': 123, 'location': 'SYD', 'username': 'fred', 'roles':
'developer'},
{'department': 234, 'location': 'NYC', 'username': 'harry', 'roles':
'sysadmin'},
]
@jamezpolley
jamezpolley / test.rb
Created October 8, 2012 17:53
Reason #17 ruby made me cry this morning
jpolley@jpl:waldo$cat test.rb
#!/usr/bin/env ruby
def myfunc(a=1, b=3)
puts a
puts b
end
myfunc(b=2)
puts b

Keybase proof

I hereby claim:

  • I am jamezpolley on github.
  • I am tchaypo (https://keybase.io/tchaypo) on keybase.
  • I have a public key ASAz4jhP70F4ENrJ0t8PmTDLU71sKhrnGVHxgvvep9Vkzgo

To claim this, I am signing this object:

@jamezpolley
jamezpolley / symposium-review-extra.js
Last active August 2, 2018 11:10 — forked from mithro/symposium-review-extra.js
GreaseMonkey / TamperMonkey script to make Linux.conf.au (Symposium) reviews a bit nicer
// ==UserScript==
// @name symposium-review-extra
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Show all the tabs in the review pane at once.
// @author You
// @match https://lca2019.linux.org.au/reviews/review/.*
// @match https://lca2019.linux.org.au/reviews/review/*
// @downloadURL https://gist.githubusercontent.com/jamezpolley/a086bcba602e93d7d70ad042f04c19e4/raw/a2f92ce041275185d972ab272900a5b2d74efd87/symposium-review-extra.js
// @updateURL https://gist.githubusercontent.com/jamezpolley/a086bcba602e93d7d70ad042f04c19e4/raw/a2f92ce041275185d972ab272900a5b2d74efd87/symposium-review-extra.js
@jamezpolley
jamezpolley / emojitable.html
Last active June 3, 2023 22:41
Tana emoji table
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>W4n Table</title>
</head>
<body>
<h1>Tana Emoji Table</h1>
@jamezpolley
jamezpolley / search-node.txt
Created June 4, 2023 05:32
Tana search nodes
‎‎​