Skip to content

Instantly share code, notes, and snippets.

View woosungchu's full-sized avatar

woosungchu woosungchu

View GitHub Profile
function (a, b) {
if ( ! b) {
return a;
}
return gcd(b, a % b);
}
/*eslint no-console: 0*/
import React from 'react'
import Match from 'react-router/Match'
import Miss from 'react-router/Miss'
import Link from 'react-router/Link'
import Redirect from 'react-router/Redirect'
import Router from 'react-router/BrowserRouter'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider, connect } from 'react-redux'
@woosungchu
woosungchu / draggable-svg.html
Last active March 17, 2017 04:43
draggable-svg
<script
src="https://code.jquery.com/jquery-3.2.0.min.js"
integrity="sha256-JAW99MJVpJBGcbzEuXk4Az05s/XyDdBomFqNlM3ic+I="
crossorigin="anonymous">
</script>
<style>
.draggable {
cursor: move;
}
</style>
@woosungchu
woosungchu / gist:7cf16c8fc2eccbe0c9327f4944617592
Last active March 15, 2017 07:04
하이브리드앱 개발방향
1. Cordova + Html/CSS/Js + UI framework(jQuery.template or Handlebar.js)
장점
- 기존 개발자들에게 편함
- Cordova를 사용하면 Build가 편함
단점
- 성능이 좋지 않음
- Livereload 개발이 어려움
```
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
```
@woosungchu
woosungchu / app.js
Created February 7, 2017 14:34 — forked from jgwhite/app.js
Ember SVG Example
App = Ember.Application.create();
App.ApplicationRoute = Ember.Route.extend({
model: function() {
return DATA;
}
});
App.PieChartComponent = Ember.Component.extend({
tagName: 'svg',
@woosungchu
woosungchu / index.html
Created February 3, 2017 07:09
Ember-Validation-Example.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com/canary/ember.prod.js"></script>
</head>
####command
- \list : list all database
- \dt : list table of current database
SELECT
TABLE_NAME,
COLUMN_NAME,
CASE DATA_TYPE
WHEN 'NUMBER' THEN DATA_TYPE || '(' || DATA_PRECISION || ',' || DATA_SCALE || ')'
WHEN 'DATE' THEN DATA_TYPE
WHEN 'VARCHAR2' THEN DATA_TYPE || '(' || DATA_LENGTH || ')'
ELSE DATA_TYPE
END
DATA_TYPE, NULLABLE, DATA_DEFAULT, COLUMN_ID FROM ALL_TAB_COLUMNS
open browser console
var content = document. querySelector('article');
var body = document.querySelector('body'); body.innerHTML = '';
body.appendChild(content);
and print