Skip to content

Instantly share code, notes, and snippets.

View rgbkrk's full-sized avatar
🌎
Think globally, act locally

Kyle Kelley rgbkrk

🌎
Think globally, act locally
View GitHub Profile
$ docker run --rm --net=host -it ipython/ipython ipython
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
@rgbkrk
rgbkrk / demomode.json
Created December 10, 2015 18:31
Fallout 4 Demo Mode Database
{
"Inventory": {
"29": [
{
"FavIconType": 46,
"HandleID": 4207600574,
"PaperdollSection": [
true,
false,
false,
@rgbkrk
rgbkrk / index.html
Last active September 2, 2015 20:05
tmpnb metrics
<div id="container">
<div id="panel"></div>
</div>
@rgbkrk
rgbkrk / api.yaml
Created August 27, 2015 03:28
notebook api
swagger: '2.0'
info:
title: Jupyter Notebook API
description: Notebook API
version: "4"
contact:
name: Jupyter Project
url: jupyter.org
# will be prefixed to all paths
basePath: /api
@rgbkrk
rgbkrk / jupyter-in-the-javascript-universe.md
Last active December 7, 2015 13:08
Jupyter in the JavaScript Universe

The Jupyter and IPython projects have been around more than 10 years and a lot has changed over the years in terms of frontend development: V8, Node, npm, transpilers, JS Compilers, competing module loading systems, auto-updating browsers, new frameworks, and many other bits. They've all come and made front end development much better. At the same time, they've bred complexity in choice and decisions. Some of the biggest warts have been the document API for the DOM, how we work on it, the tendency to get addicted to the ease of jQuery, and the resulting jQuery soup that gets created. Large projects have to make a choice on how they're going to package and ship components of their overall application.

There was a time at which I was comfortable in CoffeeScript. Now that I've read JavaScript the Good Parts, Node.js the Right Way, read and written [more](https://github.com/nteract/jupyter-sideca

@rgbkrk
rgbkrk / get-cdn-url.js
Last active August 29, 2015 14:26
Get CDN URL
var pkgcloud = require('pkgcloud');
var client = pkgcloud.storage.createClient({
provider: 'rackspace',
username: process.env.RS_USERNAME,
apiKey: process.env.RS_API_KEY,
region: process.env.RS_REGION_NAME
});
> require("./src/transformime.js")
/Users/kyle6475/code/transformime/src/transformime.js:3
import {TextTransformer} from './text.transformer';
^^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:448:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
~/code/transformime$ cat .git/config [core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = [email protected]:rgbkrk/transformime.git
fetch = +refs/heads/*:refs/remotes/origin/*
@rgbkrk
rgbkrk / component-example.html
Created July 7, 2015 15:36
Example of a web component for interactive code blocks
<link rel="import" href="interactive-code-blocks.html">
<interactive-code-block runtime="https://tmpnb.org" language="python">
import pandas as pd
df = pd.read_csv("data.csv")
df.plot()
</interactive-code-block>
@rgbkrk
rgbkrk / thebutton.ipynb
Last active August 29, 2015 14:22
the button
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.