This file contains 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
TODO | |
android_device_htc_bravoc | |
------------------------- | |
[ ] New APNS settings for Cellular South | |
android_frameworks_base | |
----------------------- | |
[ ] Lockscreen layout |
This file contains 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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains 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 | |
# ------------------------------------------------------------------------------------ | |
# In the 2020 grid below, we take four numbers along a diagonal line starting at 8,6 | |
# | |
# The product of these numbers is 26 63 78 14 = 1788696. | |
# | |
# What is the greatest product of four adjacent numbers in any direction | |
# (up, down, left, right, or diagonally) in the 20x20 grid? | |
# ------------------------------------------------------------------------------------ |
This file contains 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 | |
# --------------------------------------------------------------------- | |
# kewsh dawg | |
# --------------------------------------------------------------------- | |
require "mechanize" | |
abort('Must supply site as argument') if ARGV[0].nil? | |
url = ARGV[0] |
This file contains 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
// -------------------------------------------------------------------- | |
// Radix Sort for Ruby | |
// josh@bcg.io | |
// | |
// EXAMPLE: | |
// -------------------------------------------------------------------- | |
// require 'ruby_radix' | |
// [10,2,24,38,1,9,42].radix_sort | |
// => [1, 2, 9, 10, 24, 38, 42] | |
// |
This file contains 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
# --------------------------------------------------------------------- | |
# User Demographics | |
# --------------------------------------------------------------------- | |
get :user, :map => '/user', :with => :id, :provides => :json do | |
_user = Auth[:userid => params[:id]] | |
user = Hash.new | |
user[:userid] = _user.userid | |
user[:firstname] = _user.firstname | |
user[:lastname] = _user.lastname |
This file contains 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
// -------------------------------------------------------------------- | |
// BCG Highchart | |
// -------------------------------------------------------------------- | |
// Creating a new Highchart object for each chart gets very repetitive. | |
// Using jQuery extend, we can create charts with a predefined set of | |
// defaults. | |
// | |
// EXAMPLE: | |
// | |
// var fooChart = { |
This file contains 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
get :school, :map => '/school', :with => :id, :provides => [:json] do | |
school = Schools[:schoolid => params[:id]] | |
school.to_json | |
end |
This file contains 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
# --------------------------------------------------------------------- | |
# Make pry your default shell for padrino console | |
# --------------------------------------------------------------------- | |
Padrino.before_load do | |
begin | |
$VERBOSE = nil | |
IRB = Pry | |
$VERBOSE = false | |
rescue LoadError | |
end |
This file contains 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
Can you zip these and throw on DropBox? | |
/System/Library/Frameworks/WebKit.framework | |
/System/Library/Frameworks/JavaScriptCore.framework | |
/System/Library/PrivateFrameworks/WebKit2.framework |
OlderNewer