Skip to content

Instantly share code, notes, and snippets.

View organisciak's full-sized avatar

Peter Organisciak organisciak

View GitHub Profile
// Note, parts of this code are based on the default ubiquity commands
function getJSONArray(url, callback) {
jQuery.getJSON(url,
function (data) {
callback(data);
});
}
function getCSVArray(url, callback) {
Utils.ajaxGet(url, function(data) {
@organisciak
organisciak / 00-day-of-dh-2012-combined.xml
Created November 3, 2012 18:24
Process Wordpress Export for Mallet
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!--July 18, 2012-->
<ddh date="March 27th, 2012">
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
@organisciak
organisciak / rankedngrams.json
Last active December 19, 2015 03:49
Top 10000 words in the English language, merged (case-insensitive)
{"the":569,"of":544,"in":536,"and":529,"to":516,"for":482,"on":481,"by":478,"it":468,"at":465,"with":458,"as":452,"is":452,"an":451,"from":450,"new":442,"no":437,"not":433,"a":411,"this":411,"or":410,"all":410,"they":407,"when":407,"there":406,"one":406,"if":404,"these":400,"some":399,"you":399,"but":399,"that":398,"we":398,"what":397,"after":396,"so":393,"he":393,"how":391,"while":388,"then":387,"first":385,"even":384,"two":384,"their":383,"now":382,"our":380,"his":379,"many":379,"here":377,"because":377,"before":377,"another":376,"where":374,"do":373,"most":373,"only":370,"each":369,"every":367,"more":367,"those":367,"may":366,"such":365,"both":365,"since":361,"just":361,"like":360,"other":359,"see":359,"my":358,"who":358,"three":357,"why":357,"once":357,"are":356,"without":355,"can":354,"its":352,"let":352,"during":351,"great":349,"good":348,"about":346,"she":346,"however":346,"did":345,"any":345,"well":344,"under":342,"yet":342,"again":342,"be":341,"time":340,"will":340,"still":338,"have":338,"through":33
@organisciak
organisciak / .vimrc
Last active December 23, 2015 11:39
My .vim settings.
" Set leader to ,
let mapleader=","
" Run Vim Pathogen https://github.com/tpope/vim-pathogen
execute pathogen#infect()
" Coffee Script Indentation
au BufNewFile,BufReadPost *.coffee setl shiftwidth=2 expandtab softtabstop=2
" Coffeescript fold by indent (use 'zi' to fold)
au BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable
# Setup Git global preferences
## Aliases
### Git up: a ff-only version of merge
### See: http://stackoverflow.com/questions/15316601/in-what-cases-could-git-pull-be-harmful
git config --global alias.up '!git remote update -p; git merge^ --ff-only @{u}'
### Git wiff
### "git diff --word-diff" >always used when writing
git config --global alias.wiff 'diff --word-diff'
@organisciak
organisciak / names.txt
Created April 16, 2014 17:21
Simple way to add pseudonyms to data
Jacob
Sophia
Mason
Emma
Ethan
Isabella
Noah
Olivia
William
Ava