Skip to content

Instantly share code, notes, and snippets.

View gist:4676702
var allJs = document.getElementsByTagName('script'),
lastJs = allJs[allJs.length-1],
logoJs = document.createElement('script');
logoJs.src = 'http://qa2.obaoba.com.br/sites/obaoba.com.br/themes/obaoba2010/js/troca-logo.js';
lastJs.parentNode.appendChild(logoJs);
View gist:1227577
{u'noite': [[u'MACRO_CITY:1', u'sao_paulo'], [u'MACRO_CITY:39', u'belo_horizonte'], [u'MACRO_CITY:41', u'porto_alegre'], [u'MACRO_CITY:36', u'rio_de_janeiro']], u'shows': [[u'MACRO_CITY:36', u'rio_de_janeiro'], [u'MACRO_CITY:1', u'sao_paulo'], [u'MACRO_CITY:41', u'porto_alegre'], [u'MACRO_CITY:39', u'belo_horizonte']], u'turismo': [[u'MACRO_CITY:1', u'sao_paulo'], [u'MACRO_CITY:39', u'belo_horizonte'], [u'MACRO_CITY:41', u'porto_alegre'], [u'MACRO_CITY:36', u'rio_de_janeiro']], u'cinema': [[u'MACRO_CITY:39', u'belo_horizonte'], [u'MACRO_CITY:41', u'porto_alegre'], [u'MACRO_CITY:36', u'rio_de_janeiro'], [u'MACRO_CITY:1', u'sao_paulo']]}
View gist:1186859
from bottle import route, run, view
@route('/')
@route('/index.html')
def index():
return "<a href='/hello'>Go to Hello World page</a>"
@route('/hello')
@route('/hello/:name')
@view('index')
View dinner.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
namespace NerdDinner.Models
{
public partial class Dinner
{