Skip to content

Instantly share code, notes, and snippets.

View JakeAustwick's full-sized avatar

Jake Austwick JakeAustwick

  • Software Development
  • United Kingdom
View GitHub Profile
@JakeAustwick
JakeAustwick / 3
Created December 29, 2011 22:29
1
{"generator"=>"WordPress 3.2.1", "description"=>"Mumbo Design will dramatically increase your ebay sales by providing you with ebay templates that will blow your competition away! We have a selection of free ebay listing templates as well as premium ebay templates. We design our templates to be eye catching and tempting. If you want a custom designed ebay template, it is not a problem. We can customise your ebay template to your exact needs. Don\u2019t forget to check out our testimonials to see our customer\u2019s comments about the quality of our work. We guarantee that all of our templates are unique and are coded to the required standard. All our work is done in-house by experienced designers.", "keywords"=>"ebay template, auction template, ebay listing, free ebay templates, ebay template design, ebay designer, ebay auction template, ebay html template, ebay designs, free ebay design, free ebay listing, free ebay, free listing, premium ebay template, ebay templates, free ebay template maker"}
"Mumbo Desi
#!/usr/bin/python
""""
Copyright 2008 Ritesh Nadhani. All Rights Reserved.
For license information please check the LICENSE page of the package.
"""
#!/usr/bin/python
#By Steve Hanov, 2011. Released to the public domain
import time
import sys
DICTIONARY = "/usr/share/dict/words";
TARGET = sys.argv[1]
MAX_COST = int(sys.argv[2])
# Keep some interesting statistics
def multi_grab(urls,threads=10)
@hydra = Typhoeus::Hydra.new(:max_concurrency => threads)
urls.each do |url|
request = Typhoeus::Request.new(url, :timeout => 10000, :follow_location => true)
request.on_complete do |response|
yield response
end
def multi_grab(urls,threads=10)
@hydra = Typhoeus::Hydra.new(:max_concurrency => threads)
urls.each do |url|
request = Typhoeus::Request.new(url, :timeout => 10000, :follow_location => true)
request.on_complete do |response|
yield response
end
def multi_grab(urls,threads=10)
@hydra = Typhoeus::Hydra.new(:max_concurrency => threads)
urls.each do |url|
request = Typhoeus::Request.new(url, :timeout => 10000, :follow_location => true)
request.on_complete do |response|
yield response
end
@JakeAustwick
JakeAustwick / file1.rb
Created December 15, 2011 22:35
Ruby Dups
def duplicates(list)
list.group_by { |e| e }.select { |k,v| v.size > 1 }.map(&:first)
end
@JakeAustwick
JakeAustwick / file1.rb
Created December 15, 2011 22:35
Ruby Dups
def duplicates(list)
list.group_by { |e| e }.select { |k,v| v.size > 1 }.map(&:first)
end
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editing Page</title>
<link href="http://127.0.0.1:8888/final/assets/admin/css/main.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css' />
require 'inline'
class Levenshtein
inline do |builder|
builder.c "
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
static int distance(char *s,char*t)