Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@scarfunk
scarfunk / git-up.sh
Created July 14, 2022 01:19 — forked from 0x-2a/git-up.sh
Replacement for Git-Up ruby gem
#!/bin/zsh
# Add the following to your ~/.gitconfig
#
# [alias]
# up = !zsh /path-to-this-script/git-up.sh
#
# Then you can call
#
# `git up`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@scarfunk
scarfunk / test.js
Created June 23, 2017 08:19
test created by scarfunk - https://repl.it/Iyv4/0
test
var request = require("request");
request('https://slack.com/api/chat.postMessage?'+
'token=token&channel=C024R44D8&text='+
encodeURIComponent('모닝모닝')+
'&as_user=true');
@scarfunk
scarfunk / app.js
Created December 14, 2015 01:14
question! 도움!
//app.js
import angular from 'angular';
//1) sub 모듈 생성(모듈에서 라우터 사용). 하지만 ui.router 모듈이 없으므로 fail
angular.module('app.sub', ['ui.router']);
//2) 모듈생성만 하고, sub.js 에서 인젝션한다면.
@scarfunk
scarfunk / index.html
Created September 17, 2015 00:33 — forked from anonymous/index.html
JS Bin // source https://jsbin.com/zobepo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
// A Chain adding function
@scarfunk
scarfunk / gist:61fd300989f07324a89b
Last active September 11, 2015 08:33 — forked from JamieDixon/gist:9661702
Calculating with functions
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); }
@scarfunk
scarfunk / index.html
Last active September 9, 2015 10:59 — forked from anonymous/index.html
JS Bin // source https://jsbin.com/halesi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function chained(functions) {
@scarfunk
scarfunk / .bash_profile
Last active August 29, 2015 14:26
My whole bash
# 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
[
//jsformat
{"keys": ["super+i"], "command": "js_format"},
// 라인 삭제
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
]