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
{ | |
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
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 calculateAspectRatioFit(srcWidth, srcHeight, maxWidth, maxHeight) { | |
var ratio = Math.min(maxWidth / srcWidth, maxHeight / srcHeight); | |
return { width: srcWidth*ratio, height: srcHeight*ratio }; | |
} |
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
{"foo": 1, "bar": 2} |
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
window.addEventListener('load', function(e) { | |
log("Window <em>load</em> event"); | |
var appCache = window.applicationCache; | |
// Fired after the first cache of the manifest. | |
appCache.addEventListener('cached', handleCacheEvent, false); | |
// Checking for an update. Always the first event fired in the sequence. |
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
[ | |
{ | |
"name":"Emerald Water", | |
"colour1":"#348F50", | |
"colour2":"#56B4D3" | |
}, | |
{ | |
"name":"Lemon Twist", | |
"colour1":"#3CA55C", | |
"colour2":"#B5AC49" |
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
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) |
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
2 | 6 | 10 | |
---|---|---|---|
5 | 5 | 3 | |
8 | 10 | 5 | |
18 | 5 | 9 | |
22 | 5 | 3 | |
26 | 1 | 9 | |
32 | 6 | 10 | |
35 | 7 | 1 | |
45 | 6 | 4 | |
48 | 9 | 5 |
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
/** | |
* senpai.js v1.0.1 | |
* @description A document ready state event handler and dispatcher. | |
* @author Rayraegah Ownsu | |
* @usage bodyIsReady(fn); || bodyIsReady(function () {...}); || bodyIsReady(fn, args); || bodyIsReady(function (args) {...}, ctx); | |
* | |
* =========== | |
* Change log: | |
* =========== | |
* v1.0.1 |
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
<div class="loadcenter"> | |
<div class="loadcenter_wrap"> | |
<svg class="l1" width="320px" height="320px"> | |
<path d="M160,0.5C212.9,53.4,319.5,160,319.5,160 L160,319.5L0.5,160L160,0.5z"></path> | |
</svg> | |
<svg class="l2" width="320px" height="320px"> | |
<path d="M160,40.5C184,64.5,279.5,160,279.5,160 L160,279.5L40.5,160L160,40.5z"></path> | |
</svg> | |
<svg class="l3" width="320px" height="320px"> | |
<path d="M160,80.5c21.7,21.7,79.5,79.5,79.5,79.5 L160,239.5L80.5,160L160,80.5z"></path> |
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
<!-- | |
A sample html document that describes how to implement Facebook Open Graph tags and Structuring data for SEO and other social networks. This document was created for Heathrow Airport as a sample for use in http://www.heathrowairport.com | |
2015, Severan Rye (https://rayraegah.github.io) | |
USEFUL LINKS | |
============ | |
* Facebook for Domains - https://developers.facebook.com/docs/platforminsights/domains | |
* OG Meta types - http://ogp.me/ | |
* Structured data - https://developers.google.com/structured-data/ |
OlderNewer