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
#!/usr/bin/env bash | |
# Assuming you have a master and dev branch, and that you make new | |
# release branches named as the version they correspond to, e.g. 1.0.3 | |
# Usage: ./release.sh -v 1.0.3 | |
# Use the -b or --bump parameter to only bump | |
# Default values | |
bump=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
.string { color: #ff5722; } | |
.number { color: #009688; } | |
.boolean { color: #2196F3; } | |
.null { color: #3f51b5; } | |
.key { color: #545E6C; } |
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 trim-unit($value) { | |
@return $value / ($value * 0 + 1); | |
} | |
@function rem-calc($value) { // $value is in px, returned value is in rem | |
@return $value / trim-unit() * 1rem; | |
} |
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
html { | |
font-size: 62.5%; /* 10px */ | |
} | |
body { | |
line-height: 1.8em; | |
font-size: 1.4em; /* 14px */ | |
color: #49525e; | |
background-color: #f5f5f5; | |
font-family: Verdana,"Helvetica Neue",Helvetica,Arial,sans-serif; | |
-webkit-font-smoothing: antialiased; |
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
# Show proxy settings | |
function proxy_show(){ | |
env | grep -e _PROXY -e _proxy | sort | |
} | |
# Configure proxy | |
function proxy_on(){ | |
# You may need to hardcode your password, proxy server, and proxy port | |
# if the following variables do not exist | |
export HTTP_PROXY="http://$USERNAME:$PASSWORD@$PROXY_SERVER:$PROXY_PORT" |
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
<meta name="viewport" content="width=device-width, initial-scale=1"> |
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
clone = x => [...x] | |
push = y => x => [...x, y] | |
pop = x => x.slice(0,-1) | |
unshift = y => x => [y, ...x] | |
shift = x => x.slice(1) | |
sort = f => x => [...x].sort(f) | |
delete = i => x => [...x.slice(0,i), ...x.slice(0,i+1)] | |
splice = (s,c, ...y) => x => [...x.slice(0,s), ...y, ...x.slice(s+c)] |
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
export function hideOnClickOutside(selector) { | |
const outsideClickListener = (event) => { | |
if (!$(event.target).closest(selector).length) { | |
if ($(selector).is(':visible')) { | |
$(selector).hide() | |
removeClickListener() | |
} | |
} | |
} |
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
// custom scroll-bar | |
@mixin custom-scroll-bar() { | |
&::-webkit-scrollbar { | |
border-radius: 10px; | |
height: 10px; | |
width: 8px; | |
} | |
&::-webkit-scrollbar-thumb { | |
background: #999; |