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
const StyleDictionary = require('style-dictionary'); | |
const { fileHeader } = StyleDictionary.formatHelpers; | |
const styleDictionary = StyleDictionary.extend({ | |
source: [`src/tokens/**/*.json`], | |
platforms: { | |
scss: { | |
transformGroup: `scss`, |
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
Verifying my Blockstack ID is secured with the address 1CVLoB54t1roxMv2hCjwAUEyh32uMq3bTb https://explorer.blockstack.org/address/1CVLoB54t1roxMv2hCjwAUEyh32uMq3bTb |
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
[ | |
[:app "cmd-k-cmd-b" :workspace.show] | |
[:app "ctrl-`" :toggle-console] | |
[:editor "alt-w" :editor.watch.watch-selection] | |
[:editor "alt-shift-w" :editor.watch.unwatch] | |
[:editor "pmeta-/" :toggle-comment-selection] | |
[:editor "pmeta-/" :toggle-comment-selection] | |
[:editor "ctrl-shift-up" :editor.sublime.selectLinesUpward] | |
[:editor "ctrl-shift-down" :editor.sublime.selectLinesDownward] | |
[:editor "pmeta-d" :editor.sublime.selectNextOccurrence] |
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
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
Reference: | |
http://stackoverflow.com/questions/8195741/how-do-they-do-this-mobile-site-added-to-homescreen-appears-as-standalone-app |
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
$scope.hideKeyboard = function() { | |
document.activeElement.blur(); | |
var inputs = document.querySelectorAll('input'); | |
for(var i=0; i < inputs.length; i++) { | |
inputs[i].blur(); | |
} | |
}; | |
// Thanks to: | |
// http://uihacker.blogspot.com/2011/10/javascript-hide-ios-soft-keyboard.html |
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
// SmoothScroll for websites v1.2.1 | |
// Licensed under the terms of the MIT license. | |
// People involved | |
// - Balazs Galambosi (maintainer) | |
// - Michael Herf (Pulse Algorithm) | |
(function(){ | |
// Scroll Variables (tweakable) |
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
$('#myTab a').click(function (e) { | |
e.preventDefault(); | |
$(this).tab('show'); | |
}); | |
// store the currently selected tab in the hash value | |
$("ul.nav-tabs > li > a").on("shown.bs.tab", function (e) { | |
var id = $(e.target).attr("href").substr(1); | |
window.location.hash = id; |
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
// Code from Seven Phase Max | |
// ............................................................ | |
// .for | |
.for(@i, @n) {.-each(@i)} | |
.for(@n) when (isnumber(@n)) {.for(1, @n)} | |
.for(@i, @n) when not (@i = @n) { | |
.for((@i + (@n - @i) / abs(@n - @i)), @n); | |
} | |
// ............................................................ |
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
body { width: calc(~"100% - 250px - 1.5em"); } | |
// Ref: http://stackoverflow.com/questions/11972084/less-aggressive-compilation-with-css3-calc |
NewerOlder