Public Gists by karmi

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"
Gravatar
Fri Aug 21 04:45:56 -0700 2009
1
2
3
#!/usr/bin/env bash
 
if [ ! -e aspell-cs-0.51-0.tar.bz2 ]
Gravatar
Thu Aug 20 04:34:21 -0700 2009
1
2
3
require 'rubygems'
require 'sinatra'
 
Gravatar
Wed Aug 19 10:39:52 -0700 2009
1
2
3
/*
PLUGIN RELOADING IMPLEMENTATION
 
Gravatar
Mon Aug 17 03:33:16 -0700 2009
1
2
# Include hook code here
ActionView::Base.send( :include, FriendlyMessage )
Gravatar
Sat Aug 01 01:27:21 -0700 2009
1
2
3
# Overload Clearance's `deny_access` methods to allow authentication with HTTP-Auth for eg. API access
# Modeled after technoweenie's restful_authentication
# http://github.com/technoweenie/restful-authentication/blob/7235d9150e8beb80a819923a4c871ef4069c6759/generators/authenticated/templates/authenticated_system.rb#L74-76