Skip to content

Instantly share code, notes, and snippets.

View quicksnap's full-sized avatar
🎮
GitHub has statuses?!

Dan Schuman quicksnap

🎮
GitHub has statuses?!
View GitHub Profile
/**
* Create reducer
* @flow
*/
// SOURCE: https://github.com/quangbuule/redux-example/blob/redux%40v1.0.0-rc/src/js/lib/createReducer.js
import Immutable, { Map, List } from 'immutable'
export default function createReducer (initialState, handlers) {
const StateConstructor = initialState.constructor
/**
* Sets up globals necessary for React to render without a real browser.
*/
var jsdom = require('jsdom').jsdom;
global.document = jsdom('<html><body></body></html>');
global.window = global.document.defaultView;
/**
* AppContainer wraps our application with a Provider and Connector(s). Testing
* this 'smart' component is pretty cumbersome, so we most likely will avoid
* putting any complex behavior in here. The only logic going on here is wiring
* state and dispatcher to the children components.
*
* Multiple Connectors will be used to reduce unnecessary re-rendering of
* children components. Each Connector will subscribe to a specific slice of the
* global state, i.e. `select={ state => ({ mySlice: state.some.nested }) }`
*/
(function() {
var repoLinks = jQuery('.entry-title.public').find('a');
var template = '<div class="container"><a href="' + repoLinks[repoLinks.length - 1] + '/wiki' + '" id="ourWiki" class="btn btn-sm sidebar-button" style="margin-top: 15px;">Wiki</a></div>';
jQuery('.pagehead .container:first').after(template);
})();
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(![]+[])[!+[]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]
#!/bin/bash
# Installation:
# 1. Save this script to /some/bin/ssh-background
# 2. chmod 755 /some/bin/ssh-background
# 3. alias ssh=/some/bin/ssh-background
# 4. Configure your host colors below.
set_color() {
local HEX_FG=$1
local HEX_BG=$2
tell application "System Events"
tell process "iTerm"
click menu item "New Window" of menu "Shell" of menu bar 1
end tell
end tell
tell application "/Applications/Google Chrome.app"
make new window
activate
end tell
// Injecting mock data after 'index' task has run
gulp.src('./.tmp/index.html')
.pipe(g.inject( gulp.src('./src/mock/*.{js,css}'),
{ read: false,
addRootSlash:false,
ignorePath: 'src/mock',
starttag: '<!-- inject:mock:{{ext}} -->'
}))
.pipe(gulp.dest('./.tmp/'));
Error: Unexpected request: GET /api/v1/asset
Expected GET function (url) {
return true;
}