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
find . -name '.DS_Store' -type f -ls -delete |
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
import UIKit | |
func + (l: CGFloat, r: Int) -> CGFloat { | |
return l + CGFloat(r) | |
} | |
func + (l: Int, r: CGFloat) -> CGFloat { | |
return CGFloat(l) + r | |
} |
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
extension UIColor { | |
class func colorWithHex(hexString: String?) -> UIColor? { | |
return colorWithHex(hexString, alpha: 1.0) | |
} | |
class func colorWithHex(hexString: String?, alpha: CGFloat) -> UIColor? { | |
if let hexString = hexString { | |
var error : NSError? = nil | |
let regexp = NSRegularExpression(pattern: "\\A#[0-9a-f]{6}\\z", |
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
package controllers | |
import play.api.Play.current | |
import play.api.libs.oauth.{RequestToken, ServiceInfo, ConsumerKey, OAuth} | |
import play.api.mvc.{RequestHeader, Action, Controller} | |
import play.api.Play | |
object Twitter extends Controller { | |
val cfg = Play.application.configuration |
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
<input type="checkbox" id="hoge" class="togglebox"> | |
<label for="hoge"><span></span></label> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body, html, .page { | |
margin: 0; | |
height: 100%; | |
} | |
.column { | |
height: 100%; |
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
def index2 = Action { | |
val client = RiakClient("http://hoge.com:1234/") | |
val bucket = client.bucket("testriak") | |
val fetch = bucket.fetch("name") | |
try { | |
Await.result(fetch,1000 millis) | |
} catch { | |
case e: TimeoutException => "timeout " + e |
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
NSURL* url = [NSURL URLWithString:@"http://localhost:9000/get"]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:url]; | |
[NSURLConnection | |
sendAsynchronousRequest:request | |
queue:[NSOperationQueue mainQueue] | |
completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) { | |
if (error) { | |
NSLog(@"error: %@", [error localizedDescription]); | |
return; | |
} |
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
.wrap_button{ | |
margin:10px; | |
padding:5px; | |
padding-bottom: 7px; | |
border-radius: 5px; | |
box-shadow: inset 0px 3px 5px rgba(0,0,0,0.2); | |
} | |
.wrap_button .btn{ | |
height:50px; |
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
.font_small { | |
font-size: 100% ; | |
} | |
.font_normal { | |
font-size: 105% ; | |
} |
NewerOlder