Skip to content

Instantly share code, notes, and snippets.

{
"promo": "NTDAW",
"restriction": {
"type": "DATE",
"start": "...",
"end": "...",
"tz": "America/Los_Angeles"
}
}
call plug#begin('~/.vim/plugged')
"
" Editor
"
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-commentary'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
const goodPuzzle = [
[1, 4, 5, 3, 2, 7, 6, 9, 8],
[8, 3, 9, 6, 5, 4, 1, 2, 7],
[6, 7, 2, 9, 1, 8, 5, 4, 3],
[4, 9, 6, 1, 8, 5, 3, 7, 2],
[2, 1, 8, 4, 7, 3, 9, 5, 6],
[7, 5, 3, 2, 9, 6, 4, 8, 1],
[3, 6, 7, 5, 4, 2, 8, 1, 9],
[9, 8, 4, 7, 6, 1, 2, 3, 5],
[5, 2, 1, 8, 3, 9, 7, 6, 4],
{
"type": "TransformError",
"message": "SyntaxError /Users/jas/Desktop/emptybrc/index.ios.js: Unexpected token (17:6)",
"snippet": " 15 | render() {
16 | return (
> 17 | <View style={styles.container}>
| ^
18 | <Text style={styles.welcome}>
19 | Welcome to React Native!
20 | </Text>",
desiredAccuracy: 0,
stationaryRadius: 1,
distanceFilter: 0,
disableElasticity: false,
stopDetectionDelay: 1,
stopTimeout: 2,
activityType: 'Other',
activityRecognitionInterval: 0,
debug: true
Last login: Fri Sep 18 15:22:13 on console
/Users/jas/AwesomeProject/node_modules/react-native/packager/launchPackager.command ; exit;
➜ ~ /Users/jas/AwesomeProject/node_modules/react-native/packager/launchPackager.command ; exit;
import React from 'react/addons';
import { Input } from 'react-bootstrap';
class StateProxy {
constructor(rootComponent, pathPrefix) {
this._rootComponent = rootComponent;
this._pathPrefix = pathPrefix;
}
get(path) {
return _.get(this._rootComponent.state, this._pathPrefix.concat(path));
// (This is psuedo code)
class fooAction extends store {
addFoo(foo, bar, baz) {
return new Promise(function(reject, resolve) {
ajax(function(response, error) {
if (error) {
// I want to pass two arguments here but it will noly pass the first one.
reject({foo, error});
} else {
@JAStanton
JAStanton / _readme.md
Last active August 21, 2022 01:11
MITM Chrome Extension

How to MITM with a chrome extension

  • Download these files and update them
  • goto chrome://extensions and drag the parent folder holding these files into the window (you may need to turn chrome extension developer mode on)
  • goto website and watch the magic.

For some extra awesomeness replace a javascript file with a js file from dropbox with ?dl=1 at the end of the js url. Now you can modify the file locally, it will update itself, and you just have to refresh the browser. Pretty cool!

➜ browser.html-master python --version
Python 2.7.6
➜ browser.html-master npm install
npm WARN package.json browser.html@0.0.2 scripts['server'] should probably be scripts['start'].
node-uuid@1.4.3 node_modules/node-uuid
requirejs@2.1.16 node_modules/requirejs
immutable@3.6.2 node_modules/immutable