Skip to content

Instantly share code, notes, and snippets.

View george-norris-salesforce's full-sized avatar
🌴
On vacation

George Norris george-norris-salesforce

🌴
On vacation
View GitHub Profile
@george-norris-salesforce
george-norris-salesforce / Update Fork.md
Created January 17, 2018 20:29 — forked from seankross/Update Fork.md
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote

@george-norris-salesforce
george-norris-salesforce / conditional_Redux_action_type.js
Last active November 21, 2016 22:23
conditional Redux action type
export const updateFilter = filterOptions => {
let {contentType} = filterOptions;
let actionType;
switch(contentType) {
case 'module':
actionType = 'UPDATE_MODULE_FILTER';
break;
case 'trail':
@george-norris-salesforce
george-norris-salesforce / app.js
Created November 21, 2016 20:02 — forked from davidkpiano/app.js
Simple way to namespace React components
import React from 'react';
import * as My from './components/my-components.js';
export default class App extends React.Component {
render() {
return (
<div>
<My.Foo />
<My.Bar />
@george-norris-salesforce
george-norris-salesforce / config.ru
Created July 7, 2016 00:45 — forked from PetrKaleta/config.ru
The Rack::TryStatic middleware delegates requests to Rack::Static middleware trying to match a static file
# config.ru
# The Rack::TryStatic middleware delegates requests to Rack::Static middleware
# trying to match a static file
#
# Inspired by original code from rack-contrib
# http://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/try_static.rb
#
module Rack
@george-norris-salesforce
george-norris-salesforce / destructuring.js
Created July 5, 2016 18:24 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => {
return [1, 2, 3];