Skip to content

Instantly share code, notes, and snippets.

sukkyu.oh scarfunk

Block or report user

Report or block scarfunk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
scarfunk / bash
Created Jul 1, 2015
git add commit push once.
View bash
post = "!f() { git add . && git commit -m \"$1\" && git push; }; f"
View gulpfile.js
"use strict";
var gulp = require('gulp');
gulp.task('connect', function () {
var connect = require('connect');
var serveIndex = require('serve-index');
var serveStatic = require('serve-static');
var app = connect()
scarfunk / Git
Created Jul 7, 2015
git 활용서
View Git
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories.
git clean -fd
View sublime-keymap(user)
{"keys": ["super+i"], "command": "js_format"},
// 라인 삭제
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
scarfunk / .bash_profile
Last active Aug 29, 2015
My whole bash
View .bash_profile
# for folder color
export TERM="xterm-color"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# maven
export M2_HOME=/usr/local/apache-maven-3.2.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
<script id="jsbin-javascript">
function chained(functions) {
scarfunk / gist:61fd300989f07324a89b
Last active Sep 11, 2015 — forked from JamieDixon/gist:9661702
Calculating with functions
View gist:61fd300989f07324a89b
function zero(exp) { return numberExpression(0, exp); }
function one(exp) { return numberExpression(1, exp); }
function two(exp) { return numberExpression(2, exp); }
function three(exp) { return numberExpression(3, exp); }
function four(exp) { return numberExpression(4, exp); }
function five(exp) { return numberExpression(5, exp); }
function six(exp) { return numberExpression(6, exp); }
function seven(exp) { return numberExpression(7, exp); }
function eight(exp) { return numberExpression(8, exp); }
function nine(exp) { return numberExpression(9, exp); }
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
<script id="jsbin-javascript">
// A Chain adding function
scarfunk / app.js
Created Dec 14, 2015
question! 도움!
View app.js
import angular from 'angular';
//1) sub 모듈 생성(모듈에서 라우터 사용). 하지만 ui.router 모듈이 없으므로 fail
angular.module('app.sub', ['ui.router']);
//2) 모듈생성만 하고, sub.js 에서 인젝션한다면.
You can’t perform that action at this time.