var div = _e('div');
var btn = _e('input', {
type: 'button',
value: 'Click Me',
on: {
click: function(e) { alert('Hello'); }
}
});
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
git config --global alias.rdiff '!g() { origin=`git config --get remote.origin.url`; origin=${origin/git@github.com:/https://github.com/}; url=${origin/.git/\/commit\/`git rev-parse HEAD`}; open $url; }; g' |
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
(function(){ | |
var bindingKey = 'else', | |
stack = [], | |
_if = ko.bindingHandlers.if, | |
_init = _if.init | |
_update = _if.update; | |
ko.bindingHandlers[bindingKey] = | |
{ |
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
(function(){ | |
var bindingKey = 'else', | |
stack = [], | |
_if = ko.bindingHandlers.if, | |
_init = _if.init | |
_update = _if.update; | |
ko.bindingHandlers[bindingKey] = | |
{ |
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
.margin { margin: 10px; } | |
.no-margin { margin: 0 !important; } | |
.m-top { margin-top: 5px !important; } | |
.m-top-more { margin-top: 10px !important; } | |
.m-right { margin-right: 5px !important; } | |
.m-right-more { margin-right: 10px !important; } | |
.m-bottom { margin-bottom: 5px !important; } | |
.m-bottom-more { margin-bottom: 10px !important; } | |
.m-left { margin-left: 5px !important; } | |
.m-left-more { margin-left: 10px !important; } |
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
#!/bin/bash | |
# This is a comment |
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
//if($request_url)... | |
// Save GET queries | |
$parsedUrl = parse_url(home_url($request_url)); | |
if($parsedUrl['query']){ | |
$queries = explode('&',$parsedUrl['query']); | |
foreach($queries as $query){ | |
$queryInfo = explode('=',$query); | |
$_GET[$queryInfo[0]]=end($queryInfo); | |
} |
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 twitPuff = (function () { | |
function openPuff(imgUrl) { | |
if (typeof imgUrl == undefined) { | |
return; | |
} | |
$('#tw-puff-blanket').css({ | |
display: 'block', | |
lineHeight: window.innerHeight + 'px' | |
}); | |
$('#tw-puff-blanket').html('<img>'); |
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
.dropdown-context .nav-header{ | |
cursor:default; | |
} | |
.dropdown-context:before, .dropdown-context-up:before { | |
position: absolute; | |
top: -7px; | |
left: 9px; | |
display: inline-block; | |
border-right: 7px solid transparent; | |
border-bottom: 7px solid #ccc; |
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 coefficient = 10; | |
$('.metro-scroll').scroll(function(e){ | |
var bgpos = Math.floor((this.scrollLeft/coefficient)*-1) + 'px 0px'; | |
$('body').css('background-position', bgpos); | |
}); |
OlderNewer