Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am irvinebroque on github.
  • I am irvinebroque (https://keybase.io/irvinebroque) on keybase.
  • I have a public key whose fingerprint is 0134 EE06 D8CD ED37 8154 7E83 F05E AE32 E1C6 AC4C

To claim this, I am signing this object:

function shortenUrl() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var longUrls = sheet.getRange("J3:J10").getValues();
var writeValues = []
for (var i =1 ; i <= numRows; i++) {
var row = []
var numRows = longUrls.getNumRows();
var numCols = longUrls.getNumColumns();
var React = require('react');
var myComponent = React.createClass({
getInitialState: function() {
return {
hover: false
};
},
@irvinebroque
irvinebroque / component.js
Created February 4, 2015 02:47
React.js Inline Styles
var React = require('react');
var myComponent = React.createClass({
getInitialState: function() {
return {
hover: false
};
},
@irvinebroque
irvinebroque / hotLoadServer.js
Created November 26, 2014 19:17
Simple webpackDevServer
// This little dev server is basically a wrapped express server that 'hot loads' our javascript for super fancy and fast live reload in development
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var port = process.env.HOT_LOAD_PORT || 3001;
new WebpackDevServer(webpack(config), {
publicPath: 'http://localhost:3001/build/',
hot: true
@irvinebroque
irvinebroque / hotLoadServer.js
Last active August 29, 2015 14:10
Server-side React-Router v0.11 + React-Hot-Loader
// This little dev server is basically a wrapped express server that 'hot loads' our javascript for super fancy and fast live reload in development
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var port = process.env.HOT_LOAD_PORT || 3001;
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true
@irvinebroque
irvinebroque / mailchimp.08.11.12
Created August 11, 2012 01:03
New Mailchimp Template 08/11/12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Facebook sharing information tags -->
<meta property="og:title" content="*|MC:SUBJECT|*">
<title>*|MC:SUBJECT|*</title>