- og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
- og:type - The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.
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
Show hidden characters
{ | |
// If plugin has trouble finding Node.js, replace this string with path | |
// to your `node` bin | |
"node-path" : ":/usr/local/bin", | |
// Full list of supported options and acceptable values can be found here: | |
// https://github.com/csscomb/csscomb.js/blob/master/doc/options.md | |
"config": { | |
// Whether to add a semicolon after the last value/mixin. |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
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
#7 Principles of Rich Web Applications | |
Server rendered pages are not optional | |
Act immediately on user input | |
React to data changes | |
Control the data exchange with the server | |
Don’t break history, enhance it | |
Push code updates | |
Predict behavior |
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
post: http://colintoh.com/blog/display-table-anti-hero | |
Dynamic Vertical Aligning ==> http://codepen.io/colintoh/pen/nvcak | |
Responsive Layout ==> http://codepen.io/colintoh/pen/kbrzL | |
Dynamic Sticky Footer ==> http://codepen.io/colintoh/pen/fFsAI | |
Holy Grail Layout ==> http://codepen.io/colintoh/pen/tGmDp |
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
/* The best way */ | |
%button { | |
min-width: 100px; | |
padding: 1em; | |
border-radius: 1em; | |
} | |
%twitter-background { | |
color: #fff; | |
background: #55acee; | |
} |
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
<!-- Microdata markup added by Google Structured Data Markup Helper. --> | |
<html><head></head><body> | |
<div itemscope="" itemtype="http://schema.org/Article"> | |
<div itemprop="headline"> | |
Allies Are Split on Goal and | |
Exit Strategy in Libya | |
</div> | |
<div itemprop="description"> | |
NATO Takes Command | |
</div> |
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
<article vocab="http://schema.org/" typeof="Product"> | |
<figure><img src="images/pro2.jpg" alt="" title="" width="139" height="179" itemprop="image"></figure> | |
<h2 class="title" property="name"></h2> | |
<p class="desc" property="description"></p> | |
<div class="cost" property="offers"> | |
<span typeof="Offer"> | |
<span class="number" property="price"></span> | |
<span class="unit" property="currency" content="IRT"></span> | |
</span> | |
</div> |
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
- Keep the things that change together as close as possible and try to decouple them as much as possible from other functionalities. | |
- Do not let your objects know too much about the insides of other objects. |
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
function interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if(typeof t === "undefined" || t-- > 0){ | |
setTimeout(interv, w); | |
try{ | |
func.call(null); | |
} | |
catch(e){ | |
t = 0; |