Skip to content

Instantly share code, notes, and snippets.

@devan-sisson
devan-sisson / .gitignore
Created January 21, 2017 22:37 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
class AltArray extends Array {
constructor(...args) {
super(...args);
}
altMap(fn) {
var newArr = []
for (let i = 0; i < this.length; i++) {
newArr.push(fn(this[i], i, this));
}
@devan-sisson
devan-sisson / zsh.md
Created June 24, 2017 01:59 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@devan-sisson
devan-sisson / README.md
Created August 15, 2017 19:51 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@devan-sisson
devan-sisson / vpn.md
Created February 19, 2018 03:08 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

/*
Open up the browser console and enter in the following snippet
*/
document.getElementsByTagName("video")[0].playbackRate = 3
@devan-sisson
devan-sisson / install.md
Created May 30, 2018 23:58 — forked from defektive/install.md
Install bspwm, sxhkd on ubuntu 16.04

Dependecies

sudo apt-get install git \
                      xcb \
                      libxcb-util0-dev \
                      libxcb-ewmh-dev \
                      libxcb-randr0-dev \
                      libxcb-icccm4-dev \
                      libxcb-keysyms1-dev \
### Keybase proof
I hereby claim:
* I am devan-sisson on github.
* I am bardleware (https://keybase.io/bardleware) on keybase.
* I have a public key ASAndJ93yKBrysEJ2uF4IWaGkEc6y5qxTnmBwibMaBV2cQo
To claim this, I am signing this object:
@devan-sisson
devan-sisson / mobx-recompose.jsx
Created December 11, 2018 22:20 — forked from geoffmiller/mobx-recompose.jsx
Mobx with Recompose structure
const { compose, mapProps, withHandlers, lifecycle } = Recompose;
const { observable, action } = mobx;
const { inject, observer, Provider } = mobxReact;
const { PropTypes } = React;
// store
// ============================
const counterStore = observable({
// for primitive values, wrap the value inside a observable,
// or wrap it in an plain js object

Python Development in WSL!

# make sure that your system is up to date
sudo apt update && sudo apt upgrade

# install Python 3 and pip
sudo apt install python3 python3-pip

# install virtualenv