This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
## ZSH | |
######################### | |
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="ys" | |
######################### | |
## PLUGINS | |
######################### | |
plugins=(git npm node sublime) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createCORSRequest(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
// Check if the XMLHttpRequest object has a "withCredentials" property. | |
// "withCredentials" only exists on XMLHTTPRequest2 objects. | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add a remote repository at URL named NAME | |
git remote add NAME URL | |
# Show me my local branches | |
git branch -a | |
# Show me my remote repositories | |
git remote -v | |
# Create a new local branch with NAME and switch to it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The end-all module detection/exportation | |
*/ | |
(function(base, factory) { | |
// RequireJS | |
if (typeof define === "function" && define.amd) { | |
define(factory); | |
// CommonJS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Module Wrapper | |
*/ | |
(function (base, factory) { | |
'use strict'; | |
// RequireJS | |
if (typeof define === 'function' && define.amd) { | |
define(factory); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* test.mpsec.js | |
*/ | |
var sinon = require('sinon'); | |
var expect = require('chai').expect; | |
var rewire = require('rewire'); | |
var main = rewire('main'); | |
var CoolModuleMock = (function() { | |
function CoolModuleMock() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mount FS as read/write | |
mount -rw -o remount / | |
# Delete old passwd... | |
sudo passwd -d <USERNAME> | |
# Set passwd | |
passwd | |
# Set shell! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Preferences | |
set number | |
syntax on | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set tabstop=4 | |
set softtabstop=4 | |
" Set tabs to a > character | |
set list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// External dependencies | |
import React from 'react'; | |
import thunk from 'redux-thunk'; | |
import { render } from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import { routerReducer } from 'react-router-redux'; | |
import { BrowserRouter, Route, Switch } from 'react-router-dom'; | |
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; | |
import ApolloClient, { createNetworkInterface } from 'apollo-client'; |
OlderNewer