Skip to content

Instantly share code, notes, and snippets.

View practice's full-sized avatar

shawn.won practice

View GitHub Profile
@practice
practice / git branch promt
Created November 8, 2013 07:10
git branch promt
export PS1='\h:\w`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[37m\]$\[\033[00m\] '
@practice
practice / ctemplate.erl
Last active December 22, 2015 17:29
erlang 프로그래밍 템플릿
-module(ctemplate).
-compile(export_all).
start() ->
spawn(fun() -> loop([]) end).
loop(X) ->
receive
Any ->
io:format("Received: ~p~n", [Any]),
Object principal = null; // fix this
Object credentials = null; // fix this
Authentication auth = new org.springframework.security.authentication.TestingAuthenticationToken(principal, credentials);
SecurityContextHolder.getContext().setAuthentication(auth);
@practice
practice / bootstrap-font-face
Created April 16, 2013 10:27
bootstrap 글꼴
'Segoe UI','Helvetica Neue',Helvetica,Arial,"나눔고딕",NanumGothic,'Nanum Gothic',sans-serif
@practice
practice / html5shimf.angularjs.html
Created April 13, 2013 06:18
html5shim for angularjs
<!--[if lte IE 8]>
<script>
document.createElement('ng-include');
document.createElement('ng-pluralize');
document.createElement('ng-view');
// Optionally these for CSS
document.createElement('ng:include');
document.createElement('ng:pluralize');
document.createElement('ng:view');
</script>
@practice
practice / bootstrap borderless table css
Created April 13, 2013 06:15
bootstrap borderless table css
/* borderless table */
.table.table-borderless td, .table.table-borderless th {
border: 0 !important;
}
.table.table-borderless {
margin-bottom: 0px;
}