Skip to content

Instantly share code, notes, and snippets.

Mike Bannister possibilities

Block or report user

Report or block possibilities

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View provision.sh
#!/bin/sh
set -e
cd /provision
/provision/provision.system.sh
/bin/su -c '/provision/provision.user.sh' mike
View provision.sh
#!/bin/bash
set -e
date >> ./doooof.txt
View provision.sh
#!/bin/bash
set -e
date >> ./doooof.txt
@possibilities
possibilities / scrollTo.js
Created Apr 28, 2017 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
View scrollTo.js
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};
View nav.diff
diff --git a/package.json b/package.json
index d66584f..8b008b6 100644
--- a/package.json
+++ b/package.json
@@ -69,6 +69,7 @@
"karma-sinon": "1.0.4",
"karma-spec-reporter": "0.0.23",
"karma-webpack": "1.7.0",
+ "lodash.pick": "4.0.0",
"mocha": "2.3.4",
View -
diff --git a/package.json b/package.json
index d66584f..8b008b6 100644
--- a/package.json
+++ b/package.json
@@ -69,6 +69,7 @@
"karma-sinon": "1.0.4",
"karma-spec-reporter": "0.0.23",
"karma-webpack": "1.7.0",
+ "lodash.pick": "4.0.0",
"mocha": "2.3.4",
View configureStore.js
import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import reducer from '../reducers'
const helloWorldEnhancer = () => {
return nextCreateStore => (reducer, initialState) => {
const store = nextCreateStore(reducer, initialState)
const originalDispatch = store.dispatch
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="hello react">
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/react-with-addons.js"></script>
</head>
<body>
<div class="app"></div>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="hello react">
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/react-with-addons.js"></script>
</head>
<body>
<div class="app"></div>
You can’t perform that action at this time.