Public Gists by dirs

Gravatar
Sat Nov 07 17:14:13 -0800 2009
1
2
3
    @dataset = WillPaginate::Collection.create(1, per_page) do |pager|
      links = DB[sql_pop].limit(per_page, (@page.to_i-1)*pager.per_page).all
      pager.replace(links)
Gravatar
Thu Nov 05 13:12:30 -0800 2009
1
2
3
    @dataset = WillPaginate::Collection.create(1, per_page) do |pager|
      links = DB[sql_pop].limit(per_page, (@page.to_i-1)*pager.per_page).all
      pager.replace(links)
Gravatar
Thu Oct 29 14:42:43 -0700 2009
1
2
3
location ^~ /retweet/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Gravatar
Thu Oct 15 13:55:36 -0700 2009
1
2
3
#user nobody;
worker_processes 4;
 
Gravatar
Wed Oct 07 14:58:51 -0700 2009
1
RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
Gravatar
Fri Oct 02 10:45:27 -0700 2009
1
2
3
  HTTPResponse
      HTTPUnknownResponse
      HTTPInformation # 1xx
Gravatar
Wed Aug 19 19:10:46 -0700 2009
1
2
3
require 'rubygems'
require 'simple-daemon'
require 'open-uri'
Gravatar
Sun Aug 09 17:51:34 -0700 2009
1
2
3
# botões de RTs em imagem são pre-processados
require 'rubygems'
require 'RMagick'
Gravatar
Tue Aug 04 10:56:43 -0700 2009
1
2
3
// i've to test somethings in my widget that are hard to replicate or write tests for it
 
// we didn't want any error anoing our client and the cool guys that visits our client site
Gravatar
Thu Jul 23 10:04:28 -0700 2009
1
2
3
require 'rubygems'
require 'typhoeus'
require 'json'
Gravatar
Wed Jul 15 11:26:40 -0700 2009
1
2
3
#import "Date.h"
 
@implementation Date
Gravatar
Wed Jul 15 11:26:05 -0700 2009
1
2
3
#import <Foundation/Foundation.h>
 
@interface Date : UIViewController
Gravatar
Mon Jul 13 16:44:49 -0700 2009
1
2
3
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
Gravatar
Mon Jul 13 16:44:27 -0700 2009
1
2
3
# nerd_procurando_casa.rb
 
require 'rubygems'
Gravatar
Sun Jul 05 14:34:08 -0700 2009
1
2
3
#import "Twitter.h"
#import "StringUtil.h"
 
Gravatar
Wed Jun 03 21:45:19 -0700 2009
1
2
select * from html where url="http://www.submarino.com.br/busca?q=ipod" and xpath="/html/body/div/div[2]/div/div/div/div/div/div/div[2]/div/div/div/ul/li/div/a[3]"
 
Gravatar
Wed Jun 03 21:44:35 -0700 2009
1
2
3
var Submarino = function() {
function start() {
// busca no documento http://www.submarino.com.br/ os elementos dentro do xpath
Gravatar
Mon May 25 11:22:36 -0700 2009
1
2
3
/* ========================================================================
Flip
======================================================================== */
Gravatar
Wed May 20 13:14:38 -0700 2009
1
2
3
// tá ficando chato isso
console.log($('.btn-adicionar-busca').click());
 
Gravatar
Mon May 18 19:59:43 -0700 2009
1
2
3
$(function() {
$('.vcard').each(function() {
$this = $(this);