$ screen -list
스크린 리스트 보기$ screen -r 16546.pts-1.ssenbuntu
스크린 재접속$ screen -d
orctrl + d
orctrl + a, d
스크린 나오기ctrl + a, w
윈도우 리스트 보기ctrl + a, "
윈도우 선택ctrl + a, c
새 윈도우 만들기ctrl + a, a
바로 전 윈도우로 이동ctrl + a, 숫자
해당 윈도우로 이동exit
윈도우 닫기
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
/** sort compare function : 무작위로 섞는다 */ | |
function random(a : Number, b : Number) : Number { | |
return MathUtils.rand(0, 1000000); | |
trace(a, b); | |
} | |
/** sort compare function : 숫자형을 역순정렬 한다 */ | |
function desc_number(a : Number, b : Number) : Number { | |
return b - a; | |
} |
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
package test { | |
import avmplus.getQualifiedClassName; | |
import mx.charts.chartClasses.CartesianChart; | |
import mx.charts.chartClasses.ChartElement; | |
import mx.core.mx_internal; | |
use namespace mx_internal; | |
public class CustomChartElement extends ChartElement { |
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> | |
<head> | |
<style type="text/css"> | |
html, body, .gist table { | |
font-size: 12px; | |
} | |
</style> | |
</head> | |
<body> | |
가나다라마바사 <br /> |
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
require('source-map-support').install() | |
class AAA | |
gl : null | |
constructor : (gl) -> | |
if not @gl? | |
@gl = | |
a : 1 | |
b : 2 |
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
task 'run', 'Run Server', -> | |
build -> | |
node = exec('node lib/server.js') | |
node.stdout.on 'data', (data) -> | |
console.log(data.toString('utf8')) | |
node.stderr.on 'data', (data) -> | |
console.log(data.toString('utf8')) | |
build = (callback) -> | |
coffee = exec('coffee -m -o lib/ -c src/') |
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
private function update_initHandler(event:Event):void { | |
trace("DashboardApp.update_initHandler()", event); | |
if (!Capabilities.isDebugger && update.state === AIRUpdateState.AVAILABLE) { | |
update.update(); | |
} else { | |
currentState="run"; | |
} | |
} | |
<update:AIRUpdate id="update" updateURL="http://xxx.com/air/update.xml" init="update_initHandler(event)"/> |
sudo -E node server.js
os 의 environments 를 node.js 에서 읽어들이도록 설정process.env.ENV_NAME
os 의 environments 읽기
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
{exec} = require('bbang') | |
task 'download', 'Download Files', -> | |
download() | |
download = (callback) -> | |
exec 'curl https://gist.github.com/iamssen/5400496/raw/5e8540a31b2ae05312bc8daee3868d06c71de5f5/markdown.css -o markdown.css', -> | |
exec 'curl https://...prettify.css -o prettify.css', callback |
우선 https://github.com/settings/applications 에서 Application 에 등록된 정보들 확인
get https://github.com/login/oauth/authorize?client_id={client_id}&redirect_uri={http://...}
형태로 어플리케이션 등록 정보를 바탕으로 앱 승인 주소로 날려보냄get http://ssen.name/devlog?code=x1aa07b850cbf6eeba1a
과 같은 형태로 code 를 보내주게 됨- 받은 코드를 사용해서
post https://github.com/login/oauth/access_token
로 정보를 요청
header Accept : application/json
param code : {받은 코드}
OlderNewer