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
# Pull all images | |
docker images --format "{{.Repository}}" | %{docker pull $_} |
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
$fa-font-path: "~font-awesome/fonts"; | |
@import '~font-awesome/scss/font-awesome'; | |
.glyphicon { | |
@extend .fa; | |
&.glyphicon-asterisk { | |
@extend .fa-asterisk; | |
} | |
&.glyphicon-plus { | |
@extend .fa-plus; |
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 | |
OAUTH2_TOKEN=<fill in your own OAUTH2 token> | |
OWNER=tiesmaster | |
REPO=Coolkit.Converters # retrieve this with: basename $(git config --get remote.origin.url) .git | |
curl https://api.github.com/repos/${OWNER}/${REPO}/branches/master \ | |
-H "Authorization: token $OAUTH2_TOKEN" \ | |
-H "Accept: application/vnd.github.loki-preview+json" \ |
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
/** | |
* Parse query string. | |
* ?a=b&c=d to {a: b, c: d} | |
* @param {String} (option) queryString | |
* @return {Object} query params | |
*/ | |
getQueryParams: function(queryString) { | |
var query = (queryString || window.location.search).substring(1); // delete ? | |
if (!query) { | |
return false; |
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 countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
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
<!-- Place this tag just before your close body tag and NOT in your <head> --> | |
<script> | |
(function(d, t) { | |
var g = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
g.async = true; | |
g.src = 'https://apis.google.com/js/plusone.js'; | |
s.parentNode.insertBefore(g, s); | |
})(document, 'script'); | |
</script> |