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
/** | |
* do it a little shadowy. experimental stuffz. | |
*/ | |
div.with-shadow { | |
box-shadow: 0 -2px 4px #999; | |
moz-box-shadow: 0px -2px 4px #999; | |
o-box-shadow: 0px -2px 4px #999; | |
webkit-box-shadow: 0px -2px 4px #999; | |
} |
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
/** | |
* table experiment | |
*/ | |
body { | |
background: #ECECEC; | |
min-height:100%; | |
color: black; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
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
/** | |
* have to test something with the white-space css prop. | |
*/ | |
.normal { | |
white-space: normal; | |
} | |
.nowrap { | |
white-space: nowrap; | |
} |
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
var socketUrl = "ws://localhost/socket"; | |
socket = null; | |
try { | |
// chrome + safari | |
socket = new WebSocket(socketUrl); | |
} catch(e) { | |
// firefox | |
socket = new MozWebSocket(socketUrl); | |
} | |
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
NSString *extendedURL = [NSString stringWithFormat:@"oauth/authorize?oauth_token=%@", [requestToken key]]; | |
return getAPIURLWithPath(extendedURL); |
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
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Jenkins Rake plugin 1.7.8-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ rake --- | |
[INFO] org.jenkins-ci.plugins:rake:hpi:1.7.8-SNAPSHOT | |
[INFO] +- org.jenkins-ci.main:jenkins-war:war:1.398:test | |
[INFO] +- org.jenkins-ci.main:jenkins-core:jar:1.398:provided | |
[INFO] | +- org.jenkins-ci.main:remoting:jar:1.398:provided |
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
/** | |
* That's why i hate PHP... | |
*/ | |
private static function method_exists($array){ | |
if(count($array) == 2) return method_exists($array[0], $array[1]); | |
else throw new Exception("method_exists needs an array with exactly 2 arguments"); | |
} | |
/* | |
* Turns out, PHP has this method already. It is called 'is_callable' |
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
<?php | |
class View { | |
/** | |
* render the view | |
*/ | |
public function render() { | |
if($this->vars) | |
@extract($this->vars); |
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
private function _resolve_controller_action_array(){ | |
$uri = current( explode('?', server::get('request_uri'), 2) ); | |
$pos = stripos ( $uri, '/' ); | |
$len = strlen ( $uri ); | |
return explode( '/', trim( substr( $uri, $pos + 1, $len ) ) ); | |
} |
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
$uri = server::get('request_uri'); | |
$pos = stripos ( $uri, '/' ); | |
$len = strlen ( $uri ); | |
$arr = explode( '/', trim( substr( $uri, $pos + 1, $len ) ) ); | |
a::show($arr); |