This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generates a series of substitution cipher puzzles. The messages to | |
# "encrypt" are take from a text file passed on the command-line, | |
# where each message is on one line. | |
# | |
# The output is a PDF, "codes.pdf". | |
# | |
# Forked from Jamis Buck's http://gist.github.com/58141 | |
# changed to show code as numbers instead of letters and a hint of solution instead of the key. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var noun_type_destination = new CmdUtils.NounType( "destination", ['clipboard', 'selected text', 'displayed message'] ); | |
CmdUtils.CreateCommand({ | |
name: "get-pinyin", | |
takes: {"Hanzi to read as PinYin": noun_arb_text}, | |
preview: function(pblock, hanzi) { | |
searchHanzi = jQuery.trim(hanzi.text); | |
if (searchHanzi.length < 1) { | |
pblock.innerHTML = "Gets the <b>Pinyin reading</b> of selected Chinese characters."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Point *.example.com in your DNS setup to your server. | |
# | |
# 2) Setup an Apache vhost to catch the star pointer: | |
# | |
# <VirtualHost *:80> | |
# ServerName example.com | |
# ServerAlias *.example.com | |
# </VirtualHost> | |
# | |
# 3) Set the current account from the subdomain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Pong Challenge, copycat version | |
# | |
# Created by Emanuel Carnevale on 2008-11-18. | |
# Shamelessly adapted by http://billmill.org/pong.html | |
Shoes.app :width => 400, :height => 400, :resizable => false do | |
paddle_size = 75 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Image(webapp.RequestHandler): | |
def get(self): | |
url = "http://api.thumbalizr.com/?url=http://www.ford.de&width=250" | |
response = urlfetch.fetch(url) | |
if response.status_code == 200: | |
self.response.headers['Content-Type'] = "image/jpg" | |
self.response.out.write(response.content) | |
else: | |
self.error(404) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just a lil app to test out the new fonts in Shoes. | |
Shoes.app do | |
stack do | |
Shoes::FONTS.each { |font| | |
inscription font, :stroke => red | |
para font, :font => font | |
} | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Domokun.rb | |
# | |
# Created by Emanuel Carnevale on 2008-08-30. | |
# Copyright (c) 2008 emanuelcarnevale.com. All rights reserved. | |
# | |
require "hpricot" | |
require 'open-uri' | |
Shoes.app(:title => "Domo nom nom", :width => 550, :height => 600, :resizeable => false) do |
NewerOlder