Skip to content

Instantly share code, notes, and snippets.

View hadongsoo's full-sized avatar
:octocat:
keep stuying

hadongsoo

:octocat:
keep stuying
View GitHub Profile
# sass watch
sass --watch scss/style.scss:css/style.css
/* from http://meyerweb.com/eric/tools/css/reset/
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
Program : /user/bin/compass
Arguments : compile $ProjectFileDir$ $UnixSeparators($FilePath$)$
Working directory : $ProjectFileDir$
a => !git add . && git status
aa => !git add . && git add -u . && git status
ac => !git add . && git commit
acm => !git add . && git commit -m
alias => !git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort
au => !git add -u . && git status
c => commit
ca => commit --amend
cm => commit -m
d => diff
@hadongsoo
hadongsoo / 0_reuse_code.js
Created May 5, 2016 03:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hadongsoo
hadongsoo / emacs-loader
Created October 16, 2016 04:33
emacs for daemon
tell application "Terminal"
try
-- we look for <= 2 because Emacs --daemon seems to always have an entry in visibile-frame-list even if there isn't
set frameVisible to do shell script "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -e '(<= 2 (length (visible-frame-list)))'"
if frameVisible is not "t" then
-- there is a not a visible frame, launch one
do shell script "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n"
end if
on error
-- daemon is not running, start the daemon and open a frame
@hadongsoo
hadongsoo / font-family-s.css
Created January 4, 2017 04:09
font-family collection
/* https://css-tricks.com/snippets/css/system-font-stack/ */
/* System Fonts as used by GitHub */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
/* System Fonts as used by Medium and WordPress */
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}
@hadongsoo
hadongsoo / sass-mixin.scss
Created January 20, 2017 12:39
sass mixin collection
@mixin css3($property, $value) {
@each $prefix in -webkit-, -moz-, -ms-, -o-, '' {
#{$prefix}#{$property}: $value;
}
}
.border_radius {
@include css3(transition, 0.5s);
}
@hadongsoo
hadongsoo / getcomment
Created October 21, 2018 20:00
html comment in regex
// get comment 2 types
/\*(.*?)\*\/ \n
\/\/(.*)\n
@hadongsoo
hadongsoo / mvn setting in osx
Created October 21, 2018 20:02
mvn setting
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
export M3_HOME=/Users/user.name/maven
export M3=$M3_HOME/bin
export PATH=$M3:$PATH