Skip to content

Instantly share code, notes, and snippets.

Joseph Rawson umeboshi2

View GitHub Profile
View D3 date-time series chart
title
file with a leading space = GIST title
http://stackoverflow.com/questions/19896900/how-to-change-the-name-of-a-gist-in-github
@umeboshi2
umeboshi2 / backbone.localStorage.async.js
Created Apr 21, 2018 — forked from anonymous/backbone.localStorage.async.js
Async version of the backbone.localStorage module
View backbone.localStorage.async.js
/**
* Backbone localStorage Adapter
* https://github.com/jeromegn/Backbone.localStorage
*/
_ = require('underscore');
$ = require('jquery');
(function(_, Backbone) {
// A simple module to replace `Backbone.sync` with *localStorage*-based
// persistence. Models are given GUIDS, and saved into a JSON object. Simple
// as that.
@umeboshi2
umeboshi2 / build-bible-kjv.sh
Created Jan 3, 2018
Porting bible-kjv to emscripten
View build-bible-kjv.sh
#!/bin/bash
set -e
# run this script with bash ./build-bible-kjv.sh
if ! [ -d editline ]; then
git clone https://github.com/umeboshi2/editline.git
fi
if ! [ -d bible-kjv ]; then
git clone https://github.com/umeboshi2/bible-kjv.git
@umeboshi2
umeboshi2 / server.js
Created Jul 30, 2016
Node.js Sample Server with Restify
View server.js
/*
* Node.js Sample Server with Restify
* Copyright (C) 2014 - Thiago Uriel M. Garcia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View git-annex-output.text
umeboshi@bard:/freespace/annexation/youtube/Documentaries/the-elegant-universe$ git-annex get --from web
get The_Elegant_Universe_1_of_3_Einstein_s_Dream.m (from web...)
error: /usr/share/libquvi-scripts/lua/website/youtube.lua:112: "The Elegant Universe 1..."
This video is no longer available due to a copyright claim by PBS Distribution. (code=150)
failed
get The_Elegant_Universe_2_of_3_Strings_The_Thing.m (from web...)
error: /usr/share/libquvi-scripts/lua/website/youtube.lua:112: "The Elegant Universe 2..."
This video is no longer available due to a copyright claim by PBS Distribution. (code=150)
failed
get The_Elegant_Universe_3_of_3_Welcome_To_The_11th_Dimension.m (from web...)
View bind.sls
/etc/bind/db.salt.example.com:
file.managed:
- source: salt://templates/db.salt.example.com.pyt
- template: jinja
- user: root
- group: bind
- mode: 644
bind_reload:
service.running:
View backbone.sessionStorage.coffee
###*
Backbone sessionStorage Adapter
Based on https://github.com/jeromegn/Backbone.localStorage
###
(->
# A simple module to replace `Backbone.sync` with *sessionStorage*-based
# persistence. Models are given GUIDS, and saved into a JSON object. Simple
# as that.
@umeboshi2
umeboshi2 / python_resources.md
Created Nov 23, 2013 — forked from jookyboi/python_resources.md
Python-related modules and guides.
View python_resources.md

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@umeboshi2
umeboshi2 / 0_reuse_code.js
Created Nov 23, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.