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
@cpuguy83
cpuguy83 / logforwarder.go
Last active August 7, 2020 06:37
libswarm logger demo
package backends
import (
"fmt"
"io"
"strings"
"sync"
"time"
"github.com/docker/libswarm"
@jbarratt
jbarratt / nbgrep
Last active July 31, 2025 23:11
'nbgrep', search the code of all your ipython notebooks
#!/bin/bash
# usage: nbgrep 'pattern'
SEARCHPATH=~/work/
# 'jq' technique lifted with gratitude
# from https://gist.github.com/mlgill/5c55253a3bc84a96addf
# Break on newlines instead of any whitespace
@abkfenris
abkfenris / Dockerfile
Created July 25, 2014 23:45
ipython with matplotlib dockerfile
FROM ipython/notebook
MAINTAINER Alex Kerney <abk@mac.com>
RUN apt-get install -y -q python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose
@jbarratt
jbarratt / nblist
Last active August 29, 2015 14:04
nblist
#!/usr/bin/env python
""" A cross-platform (POSIX, at least) tool to list running IPython Notebooks
and their working directories.
This code will be incredibly simpler to write as of IPython 3.0, so
contains numerous workarounds to make it work on 2.x.
Thanks to @takluyver for the suggestions for improvement.
@arfon
arfon / mozfest-2014.md
Created August 19, 2014 16:01
Mozfest 2014

###Title

Academic publishing using Git and GitHub

###Additional faciliators

Jessica Lord
Chrissie Brodigan
Andrew Nesbitt
Karthik Ram

@kachayev
kachayev / concurrency-in-go.md
Last active September 23, 2025 16:12
Channels Are Not Enough or Why Pipelining Is Not That Easy
@ogrisel
ogrisel / load_and_run.py
Last active August 29, 2015 14:14
pickle main: working on a modern replacement for cloudpickle based on dill
#!/usr/bin/env python
import dill
import sys
payload_filename = sys.argv[1]
if len(sys.argv) > 2:
print('Restoring __main__ context')
main_filename = sys.argv[2]
@etoews
etoews / secure-ubuntu-server.sh
Created February 2, 2015 18:25
Disclaimer: This is not the most secure configuration possible. This script is only intended to be more secure than the default configuration. No promises are made about this script preventing your server from getting hacked or your bike getting stolen. The bad guys are still out to get you. And running this script does not excuse you from writi…
#!/bin/bash
set -o errexit
# This script assumes you're running it initially as root and you've created it with a key pair. If you
# haven't, you'll be locked out of your server.
if [ -z "$1" ]; then
echo "Usage: $0 NON_ROOT_USER"
echo "Example: $0 foo"
@kenperkins
kenperkins / job.md
Last active August 29, 2015 14:15
Senior Full Stack Dev

We’re looking for a full-stack developer ready to help us build the next platform for Developer Experience at Rackspace. We need a leader to drive engineering decisions for the front and back-end, as well as implement significant portions of our Developer Portal. Working effectively as a remote employee in a collaborative environment, especially on open-source software, is an absolute must-have skill.

The Developer Experience team is focused on making the end-to-end experience for developers on the Rackspace Cloud awesome. From community & outreach to docs, tools & SDKs, our team is on the front lines for engaging with developers who are building modern cloud applications.

Ideal candidates should have experience with contemporary front-end frameworks, including but not limited to Ember, React, Angular and Backbone. Additionally, candidates should have experience with back-end frameworks for building modern web applications. Representative examples might include Python a

@justinwoo
justinwoo / using-rxjs-instead-of-flux-with-react.md
Last active October 21, 2023 10:16
Using RxJS instead of Flux with React to organize data flow

Reposted from Qiita

For almost a year now, I've been using this "flux" architecture to organize my React applications and to work on other people's projects, and its popularity has grown quite a lot, to the point where it shows up on job listings for React and a lot of people get confused about what it is.

Why I'm tired of using and teaching flux

There are a billion explainations on the internet, so I'll skip explaining the parts. Instead, let's cut to the chase -- the main parts I hate about flux are the Dispatcher and the Store's own updating mechanism.

If you use a setup similar to the examples in facebook/flux, and you use flux.Dispatcher, you probably have this kind of flow: