Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
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
UIActivityIndicatorView *ai = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; | |
ai.center = self.view.center; | |
[ai startAnimating]; | |
[self.view addSubview:ai]; |
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 Mosaic = ( function () { | |
return { | |
init: function( $id ) { | |
this.cacheElements($id); | |
this.bindEvents(); | |
}, | |
cacheElements: function($id) { | |
this.$mosaicTileLink = $($id); | |
}, | |
bindEvents: function() { |
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
//jQuery Insert From Google | |
if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); | |
function my_jquery_enqueue() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js", false, null); | |
wp_enqueue_script('jquery'); | |
} |
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
/* spacing helpers | |
p,m = padding,margin | |
a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical | |
s,m,l,n = small(5px),medium(10px),large(20px),none(0px) | |
*/ | |
$spacing-none: 0; | |
$spacing-small: 5px; | |
$spacing-medium: 10px; | |
$spacing-large: 20px; |
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
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) { | |
content: ""; | |
display: block; | |
width: 0; | |
height: 0; | |
border: solid $triangle-size; | |
@if ($triangle-direction == top) { | |
border-color: $triangle-color transparent transparent transparent; | |
} | |
@if ($triangle-direction == bottom) { |
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
@charset "UTF-8"; | |
@font-face { | |
font-family: 'entypo'; | |
src: url("../font/entypo/entypo.eot"); | |
src: url("../font/entypo/entypo.eot#iefix") format('embedded-opentype'), | |
url("../font/entypo/entypo.woff") format('woff'), | |
url("../font/entypo/entypo.ttf") format('truetype'), | |
url("../font/entypo/entypo.svg#entypo") format('svg'); | |
font-weight: 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
<html> | |
<head> | |
<style> | |
.main { ... } | |
.leftnav { ... } | |
/* ... any other styles needed for the initial render here ... */ | |
</style> | |
<script> | |
// Any script needed for initial render here. | |
// Ideally, there should be no JS needed for the initial render |