Skip to content

Instantly share code, notes, and snippets.

View wayferer's full-sized avatar
🧙‍♂️
Working from home

Abdullah Norozi Iranzad wayferer

🧙‍♂️
Working from home
View GitHub Profile
@wayferer
wayferer / css.css
Created February 19, 2014 16:41
fluid iframe (used for youtube vids)
.fluidVidContainer{width:100%;position:relative;margin-bottom:20px}
.fluidVidContainer:before{
display:block;content:'';
padding-top:56.25%;/*16x9*/
padding-top:75%;/*4x3*/
padding-top:200%;/*1x2*/
padding-top:50%;/*2x1*/
padding-top:100%;/*1x1*/
}
.fluidVidContainer iframe{position:absolute;top:0;left:0;width:100%;height:100%}
@wayferer
wayferer / js.js
Created February 28, 2014 17:40
phonegap file path
function getPhoneGapPath() {
var path = window.location.pathname;
path = path.substr( path, path.length - 10 );
return 'file://' + path;
}
var snd = new Media( getPhoneGapPath() + 'test.wav' );
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|main|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();

Keybase proof

I hereby claim:

  • I am wayferer on github.
  • I am wayferer (https://keybase.io/wayferer) on keybase.
  • I have a public key whose fingerprint is BCFC 6315 8412 AB3C D69D A11C B2F7 85B9 8579 65DD

To claim this, I am signing this object:

$col_1: #d50000;
$col_2: #C51162;
$col_3: #AA00FF;
$col_4: #6200EA;
$col_5: #304FFE;
$col_6: #2962FF;
$col_7: #0091EA;
$col_8: #00B8D4;
$col_9: #00BFA5;
$col_10: #00C853;
# Push a subfolder to heroku
git subtree push --prefix SUBFOLDERNAME REMOTENAME master
# Push a non-master branch subfolder to heroku
git push REMOTENAME `git subtree split --prefix SUBFOLDER NONMASTERBRANCH`:master --force