A Pen by Max Dolgov on CodePen.
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
/* | |
Migrated to: https://github.com/jdarling/Object.observe | |
Tested against Chromium build with Object.observe and acts EXACTLY the same, | |
though Chromium build is MUCH faster | |
Trying to stay as close to the spec as possible, | |
this is a work in progress, feel free to comment/update | |
http://wiki.ecmascript.org/doku.php?id=harmony:observe |
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
# Download & install marports http://www.macports.org/install.php | |
$ sudo port selfupdate | |
$ sudo port install nginx | |
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
$ sudo port install php5 +fastcgi fcgi | |
$ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
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
<nav id="main-nav"> | |
<ul class="main-navigation"> | |
<li><a href="/about/">about</a></li> | |
<li><a href="/archive">archives</a></li> | |
<li><a href="https://github.com/Haacked/feedback/issues/new">contact</a></li> | |
<li><a href="/contributors">contributors</a></li> | |
</ul> | |
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
/* | |
tries to get deep nested property of passed object, | |
if found returns it, else returns `def` argument | |
getNested('p.a.t.h', '*', {p:{a:{t:{h:[1],i:[2]}}}} ) | |
[1] | |
getNested.call({p:{a:{t:{h:[1],i:[2]}}}}, 'p.a.t.i', '*' ) | |
[2] | |
('p.a.t.y', '*', {p:{a:{t:{h:[1],i:[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
sudo ln -s /usr/local/bin/git-flow /usr/bin/git-flow | |
sudo ln -s /usr/local/bin/gitflow-common /usr/bin/gitflow-common | |
sudo ln -s /usr/local/bin/git-flow-init /usr/bin/git-flow-init | |
sudo ln -s /usr/local/bin/git-flow-version /usr/bin/git-flow-version | |
sudo ln -s /usr/local/bin/git-flow-feature /usr/bin/git-flow-feature | |
sudo ln -s /usr/local/bin/git-flow-release /usr/bin/git-flow-release | |
sudo ln -s /usr/local/bin/git-flow-hotfix /usr/bin/git-flow-hotfix | |
sudo ln -s /usr/local/bin/git-flow-support /usr/bin/git-flow-support | |
sudo ln -s /usr/local/bin/gitflow-shFlags /usr/bin/gitflow-shFlags |
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
<scheme version="1" guid="27d8774f-75e6-43fa-8e52-6d00bc10c917"> | |
<widget control="menu-button" guid="246f2878-8f1c-4735-aa48-8816e4dbe5e7" version="18" visible="always"> | |
<informer reload="0" src="http://informers.rambler.ru/services/?version=4"> | |
<text/> | |
<url><![CDATA[http://www.rambler.ru/?e01r02a05]]></url> | |
<tooltip><![CDATA[Перейти на Рамблер]]></tooltip> | |
<image><![CDATA[http://assist.rambler.ru/media/widgets/26-06-2012/f19ef6d1-053b-4f83-bd9f-b25373578a5e.png]]></image> | |
<title><![CDATA[Логотип Рамблера]]></title> | |
<description><![CDATA[Кнопка домашней страницы Рамблера]]></description> | |
<authorName><![CDATA[Рамблер Медиа]]></authorName> |
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
https://www.visaservices.co.in/Finland-Russia-Online/AppScheduling/EmailRegistration.aspx?P=+ruzyN5D0hIjneR0INpVnsD4L/7sKgq/XtKl6X7vQTFfFM42bhCPHI7AkGttwaaD |
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
/** | |
* This file/module contains all configuration for the build process. | |
*/ | |
/** | |
* Load requires and directory resources | |
*/ | |
var join = require('path').join, | |
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})), | |
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'), |
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 process(img) { | |
var oCanvas = document.getElementById('canvas'), | |
oCtx = oCanvas.getContext("2d"), | |
width, height, imgData, dataURL; | |
width = img.offsetWidth; | |
height = img.offsetHeight; | |
oCanvas.width = width; | |
oCanvas.height = height; |