Skip to content

Instantly share code, notes, and snippets.

View umeboshi2's full-sized avatar
💭
Ztd

Joseph Rawson umeboshi2

💭
Ztd
View GitHub Profile
@umeboshi2
umeboshi2 / 0_reuse_code.js
Created November 23, 2013 18:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@umeboshi2
umeboshi2 / python_resources.md
Created November 23, 2013 18:39 — forked from jookyboi/python_resources.md
Python-related modules and guides.

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

###*
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 / bind.sls
Last active August 29, 2015 14:12 — forked from abraithwaite/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:
@umeboshi2
umeboshi2 / git-annex-output.text
Created December 28, 2015 21:12
The Elegant Universe
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...)
@umeboshi2
umeboshi2 / server.js
Created July 30, 2016 01:44
Node.js Sample Server with Restify
/*
* 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
*
@umeboshi2
umeboshi2 / build-bible-kjv.sh
Created January 3, 2018 08:32
Porting bible-kjv to emscripten
#!/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 / backbone.localStorage.async.js
Created April 21, 2018 21:52 — forked from anonymous/backbone.localStorage.async.js
Async version of the backbone.localStorage module
/**
* 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 / D3 date-time series chart
Created July 18, 2019 00:55 — forked from d3netxer/D3 date-time series chart
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