SASS guide http://css-tricks.com/sass-style-guide/
介紹單一 SASS 檔的撰寫順序
// got website url you can | |
// var path = window.location.pathname; // Returns path only | |
// var url = window.location.href; // Returns full URL | |
// var page = path.split("/").pop(); // Returns page only | |
var url = "http://example.com:3000/pathname/?search=test#hash"; | |
var _a = new URL(url); | |
_a.protocol; // => "http:" |
{ | |
"directory": "components", | |
"analytics": false | |
} |
SASS guide http://css-tricks.com/sass-style-guide/
介紹單一 SASS 檔的撰寫順序
$bgcolor: hsl(53,56%,87%); | |
.button-primary { | |
background: $bgcolor; | |
color: if(lightness($bgcolor) < 50%, white, black); | |
} |
import sublime, sublime_plugin, os, re | |
class FileNameComplete(sublime_plugin.EventListener): | |
def on_query_completions(self, view, prefix, locations): | |
completions = [] | |
sel = view.sel()[0].a | |
if "string" in view.syntax_name(sel): | |
pass |
[ | |
{ "keys": ["ctrl+super+left"], "command": "move_tab", "args": {"mod": -1} }, | |
{ "keys": ["ctrl+super+right"], "command": "move_tab", "args": {"mod": 1} } | |
] |