Skip to content

Instantly share code, notes, and snippets.

View reggi's full-sized avatar
🌺
Learning

Thomas Reggi reggi

🌺
Learning
View GitHub Profile

The Gowanus Canal Color Project

In the summer of 2013, Holstee moved it's offices to from the busy and bustling sights of Midtown Manhattan to the industrial neighborhood in Brooklyn called Gowanus. Gowanus the neighborhood takes is name from the Canal it surrounds. The sight and smell of the Gowanus Canal were something few could ignore, especially if your passing by it on your way to work everyday. It wasn't soon after that Pouplar Science published What Would Happen If You Drank Water From The Gowanus Canal?.

Amidst all of this I was intriqued by the actual color of the canal, which seamed to change from day to day, I even took a picture of it and

{
"x": {
"$exists": false,
"$in": [false],
}
}
@reggi
reggi / collect.js
Last active August 29, 2015 14:00
var async = require('async');
var _ = require("underscore");
var range = _.range(0, 23);
var collect = function(callback){
return function(){
var args = Array.prototype.slice.call(arguments);
args.unshift(null);
return callback(null, args);
}

Whats the best way to have certain JavaScript run on certain pages?

The two methods i've used are kind of similar. I've set up identifiers on the page that describe what page type it is. For instance if you have pages and articles as a template type. and you have about (a page) and How great JavaScript is (an article). Then I would have something like the following.

<script>
var template = "page";
var handle = "about";
</script>
var _ = require("underscore");
var arr = [];
arr.push("x");
_.each(arr, function(item) {
arr.push("z");
});
console.log(arr);
mongoConnect(mongoUrl)
.then(function(db) {
var flow = {};
flow.db = db;
return flow;
})
.then(function(flow) {
console.log("hello world");
return flow;
})

t: for manifesto and art subscription here (http://monosnap.com/image/WduSqpSwvnekFoveyLE2Xt2zLkuYfl) can you change the layout to reflect mindful matter. specifically: increase font size to 20 and 16 for title and text, remove border line. do the same for the the three things at bottom (wallpaper, instagram and mylife) #homepage

t: change image of deroy to: http://monosnap.com/image/RKzionciJim4FhmAltvrzO9x432fmi

and change text to: The Perfect Frame for your Holstee Art

Our Reclaim Frames are handcrafted, glass-free and designed to display your most loved artwork. Now available in 5x7”, 12x16” and 18x24”

SHOP THE RECLAIM FRAME COLLECTION #homepage