a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| require.extensions[".json"] = function (module, filename) { | |
| module.exports = JSON.parse(require("fs").readFileSync(filename, "utf8")) | |
| } |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| var express = require('express'); | |
| var sys = require('sys'); | |
| var oauth = require('oauth'); | |
| var app = express.createServer(); | |
| var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
| var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
| function consumer() { |
| # =================================================================================================================== | |
| # Template for generating a no-frills Rails application with support for ElasticSearch full-text search via Tire | |
| # =================================================================================================================== | |
| # | |
| # This file creates a basic, fully working Rails application with support for ElasticSearch full-text search | |
| # via the Tire gem [http://github.com/karmi/tire]. | |
| # | |
| # You DON'T NEED ELASTICSEARCH INSTALLED, it is installed and launched automatically by this script. | |
| # | |
| # Requirements |
| 1 | |
| 00:00:09,502 --> 00:00:11,578 | |
| Muito obrigado. | |
| 2 | |
| 00:00:13,485 --> 00:00:19,276 | |
| Sinto muito por não ter aprendido português no caminho | |
| 3 | |
| 00:00:20,630 --> 00:00:26,054 |
| /*! | |
| * jQuery Tiny Pub/Sub - v0.6 - 1/10/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2010 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| */ | |
| (function($){ |
| //Rota no Sammy | |
| this.get('#/evento/criar', Views.Evento.Criacao.Inicializa); | |
| // Arquivo da View | |
| ;(function() { | |
| if(!Views.Evento) | |
| Views.Evento = { }; | |
| Views.Evento.Criacao = function (ctx) { | |
| var self = this; |
| table { | |
| display: block; | |
| width: 100%; | |
| } | |
| table thead tr { | |
| display: block; | |
| } | |
| table th, | |
| table td { width: 100px; min-width: 100px; } | |
| table tbody { |
| # encoding: utf-8 | |
| # Be sure to restart your server when you modify this file. | |
| # Add new inflection rules using the following format | |
| # (all these examples are active by default): | |
| # ActiveSupport::Inflector.inflections do |inflect| | |
| # inflect.plural /^(ox)$/i, '\1en' | |
| # inflect.singular /^(ox)en/i, '\1' | |
| # inflect.irregular 'person', 'people' | |
| # inflect.uncountable %w( fish sheep ) |
| #!/usr/bin/env ruby1.8 | |
| require 'rubygems' | |
| require 'nokogiri' | |
| # Copyright @2011 Pascal Rettig - Released under the MIT License, | |
| # No Warranty whatsoever. This will probably destroy your project | |
| # | |
| # Find out who the goat is on your Rails the project - i.e the person responsible for | |
| # writing or modifying the most untested code. Drop goat.rb into your script/ | |
| # directory, make it executable then run: |