Public Gists by igorgue

Gravatar
Mon Nov 02 19:54:09 -0800 2009
1
2
3
# controllers/entries.rb
 
get '/' do
Gravatar
Mon Nov 02 19:53:51 -0800 2009
1
2
3
# app.rb
require 'rubygems'
require 'sinatra'
Gravatar
Mon Nov 02 16:57:24 -0800 2009
1
2
3
#!/usr/bin/env python
 
print "Hola"
Gravatar
Mon Nov 02 16:53:24 -0800 2009
1
2
3
[user]
name = Igor Guerrero Fonseca
email = igfgt1@gmail.com
Gravatar
Thu Oct 29 15:27:54 -0700 2009
1
2
3
# post_hello.rb
require 'rubygems'
require 'sinatra'
Gravatar
Thu Oct 29 07:53:17 -0700 2009
1
2
3
@ezrabutler/people-with-souls 2 0
@JesycaL/miami 44 0
@walelia/techies 59 0
Gravatar
Wed Oct 28 14:18:05 -0700 2009
1
2
3
# post_hello.rb
require 'rubygems'
require 'sinatra'
Gravatar
Wed Oct 28 14:11:13 -0700 2009
1
2
3
:⌉
=⌉
¦-) as opposed to |
Gravatar
Fri Sep 25 07:37:27 -0700 2009
1
curl -d 'track=one line' http://stream.twitter.com/track.json -uonelinebot:one.onelinebot > tweets.json 2> /dev/null & tail -f tweets.json | while read tweet; do echo $tweet | grep -E -o '"screen_name":"[[:alnum:]]+"' | cut -d '"' -f 4 | while read screen_name; do echo "following: $screen_name"; curl -d '' http://twitter.com/friendships/create/$screen_name.json?follow=true -uonelinebot:one.onelinebot; done ; done
Gravatar
Fri Sep 25 07:36:46 -0700 2009

      
gist: 182669 Example from Learnyouahaske...
Gravatar
Mon Sep 07 19:07:27 -0700 2009
1
2
3
bmiTell :: (RealFloat a) => a -> String
bmiTell bmi
    | bmi <= 18.5 = "You're underweight, you emo, you!"
Gravatar
Mon Aug 17 23:47:41 -0700 2009
1
2
3
# -*- coding: utf-8 -*-
#!/usr/bin/env python
 
gist: 169533 Generate ctags and cscope dbs
Gravatar
Mon Aug 17 21:22:45 -0700 2009
1
2
3
#!/bin/bash
 
files=`find -iname '*.py'`
Gravatar
Tue Aug 11 09:35:34 -0700 2009
1
2
3
$ cat .htaccess
<IfModule mod_rewrite.c>
    RewriteEngine on
Gravatar
Tue Aug 11 09:35:09 -0700 2009
1
2
3
$ cat .htaccess
<IfModule mod_rewrite.c>
    RewriteEngine on
Gravatar
Tue Aug 04 08:59:35 -0700 2009
1
2
3
>>> class Foo(object):
... s = "string"
...
Gravatar
Tue Aug 04 08:06:32 -0700 2009
1
2
3
>>> class Foo(object):
... schema = {}
...
Gravatar
Mon Aug 03 13:05:28 -0700 2009
1
2
3
elem' :: (Eq a) => a -> [a] -> Bool
elem' x xs = if head xs == x
                then
Gravatar
Tue Jul 28 14:01:21 -0700 2009
1
2
3
#include <iostream>
 
using namespace std;
Gravatar
Fri Jul 24 11:12:31 -0700 2009
1
2
3
#!/usr/bin/env python
 
from sys import argv