Skip to content

Instantly share code, notes, and snippets.


Iain Watt iainwatt

  • United Kingdom
View GitHub Profile
iainwatt / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
iainwatt / Longest Word
Created Feb 24, 2015
CodeByte Longest Word (JavaScript)
View Longest Word
function LongestWord(sen) {
var lng = sen.split(" ")
var longest = lng.reduce(function (a, b) { return a.length > b.length ? a : b; });
return longest;
View AddTravel.js
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
You can’t perform that action at this time.