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
package main | |
import ( | |
"net/http" | |
"Regexp" | |
) | |
type route struct { | |
pattern *regexp.Regexp | |
handler http.Handler |
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 window width | |
**/ | |
var getWindowWidth = function() { | |
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; | |
}; | |
/** | |
* Get window height | |
**/ |
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
public static string CreateSnippet(string s, int length) | |
{ | |
if (String.IsNullOrEmpty(s)) | |
{ | |
return ""; | |
} | |
const string Ellipsis = "..."; | |
if (s.Length > length) | |
{ |
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
- (void)presentModalViewController:(UIViewController *)modalViewController fromView:(UIView *)view | |
{ | |
if(SYSTEM_VERSION_LESS_THAN(@"6.0")) { | |
[modalViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; | |
[self presentViewController:modalViewController animated:YES completion:nil]; | |
} else { | |
modalViewController.modalPresentationStyle = UIModalPresentationFormSheet; | |
UIGraphicsBeginImageContext(self.view.window.frame.size); | |
[self.view.window.layer renderInContext:UIGraphicsGetCurrentContext()]; |
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
background:#ffffff; | |
background: -webkit-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: -moz-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: -o-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ecebeb'); |
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
<style> | |
trello-board { | |
display: block; | |
height: 100%; | |
} | |
</style> | |
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars.min-latest.js"></script> | |
<script id="trello-board" type="text/x-handlebars-template"> | |
<style> | |
trello-list { |
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
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
<title><?php echo $this->getTitle(); ?></title> | |
<meta name="description" content="<?php echo htmlspecialchars( $this->getDescription() ); ?>"> | |
<meta name="keywords" content="<?php echo $this->getKeywords(); ?>"> | |
<?php $_currentProduct = Mage::registry('current_product'); ?> |
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
[push] | |
default = simple | |
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" | |
s = status |
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
#test { | |
font-family: Helvetica, Arial, sans-serif; | |
font-size: 2em; | |
margin-left: 20px; | |
margin-top: 20px; | |
padding-right: 50px; | |
padding-left: 50px; } |
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
$prefix: space; | |
// All available sizs | |
$sizes: ( | |
"n": 0, | |
"xs": 5px, | |
"s": 10px, | |
"m": 15px, | |
"l": 20px, | |
"xl": 25px |
NewerOlder