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
[PRTween tween:self property:@"alpha" from:1.0 to:0.0 duration:.250 timingFunction:&PRTweenTimingFunctionCubicInOut updateBlock:nil completeBlock:^{ | |
[self setHidden:YES]; | |
}]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Base64 Demo</title> | |
<meta charset="utf-8"> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' type='text/javascript'></script> | |
<script src='https://javascriptbase64.googlecode.com/files/base64.js' type='text/javascript'></script> |
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
Sinatra: | |
get '/messages' do | |
content_type :json | |
messages = [] | |
all = $redis.lrange("messages", 0, $redis.llen("messages")) | |
all.each do |message| | |
messages.push( message ) | |
end | |
{ :result => "success", :messages => messages }.to_json |
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
// | |
// SettingsView.m | |
// lastapp | |
// | |
// Created by Christopher Allick on 3/5/13. | |
// Copyright (c) 2013 Goon & Goblin. All rights reserved. | |
// | |
#import "SettingsView.h" |
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
error: PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27)) |
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
set fish_git_dirty_color red | |
function parse_git_dirty | |
git diff —quiet HEAD ^&- | |
if test $status = 1 | |
echo (set_color $fish_git_dirty_color)"Δ"(set_color normal) |
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
buildNumber = function() { | |
var text = $("#phonenumber").val(); | |
var new_text = ""; | |
if( text.length < 3 || (text.length > 3 && text.length < 7) || text.length > 7 ) { | |
new_text = text; | |
} else if( text.length == 3 || text.length == 7 ) { | |
new_text = text + "-"; | |
} |
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
@@events = {} | |
def addEvent( event, type, function ) | |
@@events[event] = {} | |
@@events[event]["type"] = type | |
@@events[event]["function"] = function | |
end | |
addEvent("compass", String, lambda{|msg| | |
puts "#{msg} world" |
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
// | |
// ViewController.m | |
// BlockTest | |
// | |
// Created by chrisallick on 5/20/13. | |
// Copyright (c) 2013 chrisallick. All rights reserved. | |
// | |
#import "ViewController.h" |
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
from __future__ import print_function | |
events = {} | |
def fireEvent(event,msg): | |
events[event](msg) | |
def addEvent(event,type,func): | |
events[event] = func |