#Mac OS X
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
| /** | |
| * From: http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value |
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
| puts "Called from: #{File.expand_path(File.dirname("."))}" | |
| puts __FILE__ | |
| puts "last: " + File.dirname(__FILE__).split("/").last | |
| puts pwd = File.expand_path(File.dirname(__FILE__)) | |
| puts "parent dir:" | |
| ar = pwd.split("/") | |
| puts "/#{ar[ar.length-2]}" |
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
| @media only screen and (min-device-width: 320px) and (max-device-width: 1024px) | |
| html | |
| -webkit-text-size-adjust: none |
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
| require 'rubygems' | |
| require 'sinatra' | |
| require 'sinatra/json' | |
| require 'data_mapper' | |
| require 'dm-serializer' | |
| require 'haml' | |
| DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/george.db") | |
| class Painting |
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
| from xml.dom import minidom | |
| import json | |
| config = { | |
| 'svg_file' : 'map.svg', | |
| 'js_file' : 'map.js', | |
| 'js_var' : 'svgMap' | |
| } | |
| svg = minidom.parse(config['svg_file']) |
#Mac OS X
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
| /** | |
| * Custom.css | |
| * WebKit Inspector styles for Google Chrome | |
| * | |
| * by Scott Buchanan <[email protected]> | |
| * http://wafflesnatcha.github.com | |
| * | |
| * Fugue Icons by Yusuke Kamiyamane | |
| * http://p.yusukekamiyamane.com | |
| */ |
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
| #include <Blur.h> | |
| #define ASSERT_BLUR_SETUP() { \ | |
| if(!is_setup) { \ | |
| printf("ERROR: not setup.\n"); \ | |
| return; \ | |
| } \ | |
| } | |
| Blur::Blur() |
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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require 'rack' | |
| require "awesome_print" | |
| uri = ARGV[0] | |
| env = Rack::MockRequest.env_for(uri) | |
| req = Rack::Request.new(env) | |
| puts "---\n" |
OlderNewer