Skip to content

Instantly share code, notes, and snippets.

View astannard's full-sized avatar

Andy Stannard astannard

View GitHub Profile
@astannard
astannard / gist:067fe748081846a1656b
Created February 23, 2016 08:36
Javascript function constructors
//Function constructors use the New keyward that create a new object in memory that then becomes the this scope inside of the contructor functoim
//Using the prototype syntax to add methods to the constructed object means that multiple objects take up less memoryspace since a new copy of
//each function is not added into memory space for each object.
function Person(firstname, lastname){
this.firstname = firstname;
this.lastname = lastname;
}
var varl = new Persion('carl','brown');
@astannard
astannard / gist:b975d757fe9c0b05b102edb192abb4f3
Created June 7, 2016 12:16
Lightning Seed - React Conference lightning talk proposal
With all the plugins, boilerplate projects, SAAS and PAAS offerings plus great community support, what can created in a weekend?
I will take you through the ups downs and highlights of using react at a Startup Weekend event, showing what can be achieved amd how.
This will be a story of a wild weekend full of tips, framework and plugin summaries plus pictures from the weekend as the startup team attempt to validate an idea.
The talk will be a great insight into how react can help you rapidly prototype a business idea, with what went well and what went badly.
https://reactiveconf.com/
@astannard
astannard / lightning talk proposal.md
Last active June 13, 2016 11:59
React Conference lightning talk proposal

With all the plugins, boilerplate projects, SAAS and PAAS offerings plus great community support, what can be created in a weekend?

I will take you through the ups downs and highlights of using react at a Startup Weekend event, showing what can be achieved and how.

This will be a story of a wild weekend full of tips, framework and plugin summaries plus pictures from the weekend as the startup team attempt to validate an idea.

The talk will be a great insight into how react can help you rapidly prototype a business idea, with what went well and what went badly.

https://reactiveconf.com/

@astannard
astannard / NPMPermissionIssues.txt
Last active July 13, 2016 07:20
NPM permission issue resolution
As per photusenigma at: https://github.com/npm/npm/issues/4815
Run these commands in a terminal window (note - DON'T replace the $USER part...thats a linux command to get your user!):
sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/local/lib/node_modules
...and...if you're on a mac (like I am), and still see errors after running these commands, then run this last one and you should be good. (Recommend you try testing before you do this one. I don't like changing the permissions on the ENTIRE /usr/local directory unless it really seems necessary!)
sudo chown -R $USER /usr/local
@astannard
astannard / Git workflow
Created July 13, 2016 07:40
Git workflow for setting up initial project
#Initial Project Setup such as run a yeoman to setup a project
#initialize local git directory
git init
#add everything to git
git add .
#Now we actually commit the files to git with the message initial
git commit -m initial