Skip to content

Instantly share code, notes, and snippets.

View nesquena's full-sized avatar

Nathan Esquenazi nesquena

View GitHub Profile

Hey Team,

In preparation for Demo Day as finalists, there are a few things that you should do before latest August 3rd at 10pm:

  • README: If you haven't yet, send a github readme with a) paragraph about non-profit, b) paragraph about app, c) gif walkthrough ASAP
  • Presentation: Upload your slide presentation in your desired format to this Google Drive. We will make the presentation available to you on a shared laptop with support for powerpoint, keynote and PDFs.
  • App Demo
    • (iOS) Make sure to have your app ready to go on an iPhone device which will be projected onto the screen
    • (Android) Make sure to have a Nexus 4 or 5 with your app installed OR send us the APK for your app which we will install on a Nexus 5
  • There is no easy way to present more than one device at a time at the New Relic setup
Api::App.controllers :posts, map: "api/v1/posts" do
get :index, map: "" do
end
post :create, map: "" do
end
// public/javascripts/example.js
ExampleBehavior = Behavior.create({
initialize : function() {
this.something = 5;
},
onclick : function() {
this.element.hide();
// ... more stuff
},
# example of my desired syntax for behaviors in red
# /public/javascripts/red/example.red
class ExampleBehavior < Behavior
def initialize(options={})
self.something = 5
end
def on_click(event)
self.element.hide
@nesquena
nesquena / reset.css
Created November 20, 2008 10:45
CSS Reset
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
@nesquena
nesquena / using rg
Created December 3, 2008 13:07
How to use rg
http://github.com/jeremymcanally/rg/tree/master/lib/builtin/thoughtbot.rb
# installing
$ sudo gem install jeremymcanally-rg
# or download the .zip from github and then
$ rake gem
$ gem install pkg/rg-*
# builtin thoughtbot, bort, entp
$ rg -i http://gist.github.com/31533
@nesquena
nesquena / nesquena-rg.rb
Created December 3, 2008 23:25
My rails template for rg
template(:nesquena) do
gem 'json'
gem 'mislav-will_paginate'
gem 'mocha'
gem 'thoughtbot-shoulda'
gem 'quietbacktrace'
gem 'haml'
gem 'authlogic'
plugin 'squirrel', :git => 'git://github.com/thoughtbot/squirrel.git'
# /app/views/families/show.html.haml
= link_to 'Send Message', new_family_message_path(:family_id => @family.id, :category => 'Family')
# /app/controllers/messages_controller.rb
def new
@category = params[:category]
render :action => "messages/#{@category}_form", :layout => true
end
##
# Calendar helper with proper events
# http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/
#
# (C) 2009 James S Urquhart (jamesu at gmail dot com)
# Derived from calendar_helper
# (C) Jeremy Voorhis, Geoffrey Grosenbach, Jarkko Laine, Tom Armitage, Bryan Larsen
# Licensed under MIT. http://www.opensource.org/licenses/mit-license.php
##
# controller when you post an update
Ping.notify