Skip to content

Instantly share code, notes, and snippets.

View shohey1226's full-sized avatar

Shohei Kameda shohey1226

View GitHub Profile
@shohey1226
shohey1226 / gist:5559969
Last active December 17, 2015 05:48
after backbone.js
(function(){
//=========================================================================
// To avoid the conflict with Mojolicious's template
//=========================================================================
// _.templateSettings = {
// evaluate: /\{\{([\s\S]+?)\}\}/g,
// interpolate: /\{\{=([\s\S]+?)\}\}/g
// };
@shohey1226
shohey1226 / gist:5559959
Created May 11, 2013 13:25
before backbone.js
jQuery(function($) {
$(document).ready(function() {
$('#search').click(function(){
mainSearch();
});
$('#submit').click(function(){
var knowledge = {};
knowledge.know = $('#know').val();
package Homenotes;
use Mojo::Base 'Mojolicious';
use Mojolicious::Plugin::Web::Auth;
use Plack::Session;
use Data::Dumper;
use FindBin qw($Bin);
sub startup {
my $self = shift;
#!/bin/env perl
use strict;
use warnings;
use AnyEvent::Twitter::Stream;
use EV;
use utf8;
use YAML;
use FindBin qw($Bin);
use Data::Dumper;