Skip to content

Instantly share code, notes, and snippets.

View iamssen's full-sized avatar
🏄‍♂️

Seo Yeon, Lee iamssen

🏄‍♂️
View GitHub Profile
@iamssen
iamssen / doc.md
Last active January 22, 2016 09:58
Search Decorators in Angular2 Source Code

makeDecorator(

Decorators for class

@Injectable
class A {}
  • core.di.decorators
  • Injectable
@iamssen
iamssen / hanbit.js
Created December 1, 2015 11:35
한빛미디어 책 제목 적용
// 한빛 미디어에서 책 제목 수집
// var titles = []
// $('.ct a strong').each(function(i) {titles.push($(this).text())})
'use strict'
let fs = require('fs');
let books = require('./books.json');
fs.mkdir(`${__dirname}/result`, () => {
@iamssen
iamssen / extract-rxjs.sh
Created November 28, 2015 07:29
Extract typescript typings
npm install @reactivex/rxjs;
mkdir -p typings/rxjs;
echo "import * as Rx from './Rx'; export module '@reactivex/rxjs' { export = Rx; }" > typings/rxjs/rxjs.d.ts;
cd node_modules/@reactivex/rxjs/dist/es6;
find . -type f -iname '*.d.ts' | cpio -pdm ../../../../../typings/rxjs/;
@iamssen
iamssen / Every Day.sh
Created October 19, 2015 06:50
Macbook Backup Shell Script
# Jenkins Environment Variables
# $HOME
# $DROPBOX
# Jenkins Task Setting
# Cron Schedule: H H/24 * * *
# Execute Shell Script: sh "$DROPBOX/Macbook Backup Every Day.sh";
export PATH=/usr/local/bin:$PATH;
@iamssen
iamssen / 0.ssen.ts
Last active August 29, 2015 14:16
Typescript 1.5 Annotation 분석
// @param c typeof Class : target class
// @param annotation typeof any : some annotation object
//
// c.annotations = [annotation]
//
// Class에 annotations 배열을 만들고 annotation을 기록해준다
function addAnnotation(c: any, annotation: any): any {
(c.annotations || (c.annotations = [])).push(annotation)
return c
}
//var Mixin = {
// mixinMethod: function () {
// console.log('mixinMethod()')
// }
//}
module.exports = React.createClass({
// -------------------------------------
// Mixin
// -------------------------------------
@iamssen
iamssen / npm.md
Created July 17, 2013 00:49
setting npm in ss

Setting

  • npm config set proxy http://1.1.1.1:8080
  • npm config set https-proxy http://1.1.1.1:8080
  • npm set registry http://registry.npmjs.org
@iamssen
iamssen / aaa.lua
Last active December 17, 2015 07:38
Redis search with lua
ttttt
@iamssen
iamssen / RowBGColor.as
Created April 26, 2013 06:32
DataGrid row 배경색 넣기
<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" clipAndEnableScrolling="true">
<fx:Script>
<![CDATA[
override public function prepare(hasBeenRecycled:Boolean):void {
if (data) {
lblData.text=data[column.dataField];
}
}
@iamssen
iamssen / AMFAsyncUnit.as
Created April 25, 2013 03:58
AMFAsyncUnit
class AmfAsyncUnit implements IAsyncUnit {
public var channelId:String;
public var channelUrl:String;
public var destination:String;
private var _fault:Function;
private var _result:Function;
public function getRemoteObject():RemoteObject {