Public Gists by karmi

Gravatar
Tue Nov 17 04:11:37 -0800 2009
1
2
3
"views" : {
  "recent" : {
     "map" : function() {...},
Gravatar
Tue Nov 17 03:38:13 -0800 2009
1
2
3
module Timesheet
 
  class Project < RelaxDB::Document
Gravatar
Fri Nov 13 05:09:28 -0800 2009
1
2
3
commit ffbe9f6c24ab13b999096e977aacd10ae34f3a55
Author: Karel Minarik <karmi@karmi.cz>
Date: Fri Nov 13 14:02:28 2009 +0100
Gravatar
Wed Nov 11 10:24:55 -0800 2009
1
2
3
commit 0139d2b1c26e62568f20282b38f061483ba3ef4c
Author: Karel Minarik <karmi@karmi.cz>
Date: Wed Nov 11 19:23:37 2009 +0100
Gravatar
Wed Nov 11 07:10:27 -0800 2009
1
2
3
require 'rubygems'
require 'httparty'
require 'ostruct'
Gravatar
Thu Nov 05 00:48:21 -0800 2009
1
2
3
# WebPage uses cache??? What the heck is cache in context of a webpage crawling process? It should only crawl pages. You need to inject some dummy cache to prevent caching.
 
Yeah, that's the assignment as I see it? The crawler crawls and caches stuff it has found and parsed. Your comments are crypt
Gravatar
Tue Nov 03 07:20:48 -0800 2009
1
2
3
require 'benchmark'
require 'net/http'
require 'uri'
Gravatar
Fri Oct 30 05:58:39 -0700 2009
1
2
3
commit 625de25450b6dba8da508c076f69774163a3d90e
Author: Karel Minarik <karmi@karmi.cz>
Date: Fri Oct 30 13:57:37 2009 +0100
Gravatar
Fri Oct 30 03:53:51 -0700 2009
1
2
3
# Simple exercise based on call to action at
# http://phpfashion.com/cisty-programatorsky-experiment
 
Gravatar
Wed Oct 28 11:22:07 -0700 2009
1
2
3
void setup()
{
  size(500, 500);
Gravatar
Fri Oct 16 15:23:25 -0700 2009
1
2
3
#!/bin/sh
(unset GIT_DIR && \
 cd /where/is/my/stuff && \
gist: 209521 Cache 200 OK responses in H...
Gravatar
Tue Oct 13 13:20:51 -0700 2009
1
2
3
# = Icebox : Caching for HTTParty
#
# Cache responses in HTTParty models [http://github.com/jnunemaker/httparty]
Gravatar
Tue Oct 06 03:57:14 -0700 2009
1
2
3
# =====================
# = Hello Git Objects =
# =====================
gist: 200739 Replay a sequence of comman...
Gravatar
Sat Oct 03 09:36:15 -0700 2009
1
2
3
# A demo
ls -la
# ---
Gravatar
Fri Sep 18 03:47:34 -0700 2009
1
2
3
// * Add initialize() handler
document.observe("dom:loaded", function() { try {Application.initialize()} catch(e) { alert('Error when initializing application! \n' + e); } });
 
Gravatar
Fri Sep 11 03:00:01 -0700 2009
1
2
3
class GoogleAnalyticsCheckerTest < Test::Unit::TestCase
 
  # With Shoulda...
gist: 180955 Kissing MSIE6 Good Bye
Gravatar
Fri Sep 04 08:52:20 -0700 2009
1
2
3
var Application = {
 
  MSIE6Warning : {
Gravatar
Fri Sep 04 07:00:31 -0700 2009
1
2
3
...
<title><%= page_title %></title>
...
Gravatar
Fri Aug 28 04:10:09 -0700 2009
1
2
3
class Document < ActiveRecord::Base
    # ...
    after_save :create_new_revision, :invalidate_cache
gist: 175510 Minimal Rails app template ...
Gravatar
Wed Aug 26 06:35:37 -0700 2009
1
2
3
# Delete/Move Rails default files
log 'moving', 'Rails default files'
run "mv README doc/README_FOR_RAILS"