Skip to content

Instantly share code, notes, and snippets.

@devan-sisson
devan-sisson / install virtualenv ubuntu 16.04.md
Last active July 17, 2019 22:47 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@devan-sisson
devan-sisson / attachProxy.js
Created July 3, 2019 17:48 — forked from jelkand/attachProxy.js
Using Proxy to track changes to JS objects
// usage:
const obj = { foo: 'bar' };
const proxiedObj = attachProxy(obj);
proxiedObj.foo = 'baz';
/* output:
VM192:4 setting value of prop: foo to value: baz obj {foo: "bar"}
VM192:5 console.trace
set @ VM192:5

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
@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
### 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 / 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 \
/*
Open up the browser console and enter in the following snippet
*/
document.getElementsByTagName("video")[0].playbackRate = 3
@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?

@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