Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#import <QuartzCore/QuartzCore.h> | |
UIImageView *splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)]; | |
splashView.image = [UIImage imageNamed:@"Default.png"]; | |
[self.window addSubview:splashView]; | |
[self.window bringSubviewToFront:splashView]; | |
splashView.layer.anchorPoint=CGPointMake(0, .5); | |
splashView.center = CGPointMake(splashView.center.x - splashView.bounds.size.width/2.0f, splashView.center.y); | |
[UIView beginAnimations:nil context:nil]; |
{ | |
"node" : true, | |
"browser" : true, | |
"es5" : true, | |
"esnext" : true, | |
"bitwise" : true, | |
"camelcase": true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"immed" : true, |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
#JAVA_HOME | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
#MAVEN | |
export M2_HOME=/usr/local/maven-3.0.5 | |
export MAVEN_OPTS=-Xmx1024m |
// Detecting data URLs | |
// data URI - MDN https://developer.mozilla.org/en-US/docs/data_URIs | |
// The "data" URL scheme: http://tools.ietf.org/html/rfc2397 | |
// Valid URL Characters: http://tools.ietf.org/html/rfc2396#section2 | |
function isDataURL(s) { | |
return !!s.match(isDataURL.regex); | |
} | |
isDataURL.regex = /^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i; |
require 'rubygems' | |
require 'mechanize' | |
if ARGV.size < 3 | |
puts %q{Usage: ruby xcode.rb USERNAME PASSWORD "DOWNLOAD_URL" [WGET_PARAMS]} | |
puts %q{Example: ruby xcode.rb [email protected] 123456 "https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg" } | |
exit | |
end | |
a = Mechanize.new { |agent| |
<div> | |
<a href="{{protocol}}//{{host}}{{pathname}}">{{protocol}}//{{host}}{{pathname}}</a> | |
</div> | |
<script> | |
function Template(node) { | |
var prototype = document.createDocumentFragment(); | |
prototype.appendChild(node); |
app.directive('asyncAnchor', [ | |
'$location', | |
'$anchorScroll', | |
'$timeout', | |
function($location, $anchorScroll, $timeout){ | |
return { | |
link: function(scope, element, attributes){ | |
var id = attributes.asyncAnchor || attributes.id || attributes.name; | |
var delay = attributes.asyncAnchorDelay; |