Skip to content

Instantly share code, notes, and snippets.

View gatherKnowledge's full-sized avatar
😅

Luke.moon gatherKnowledge

😅
  • MyPlanet Inc.
  • San Francisco, State of California.
View GitHub Profile
@gatherKnowledge
gatherKnowledge / rewritefilter
Created December 5, 2016 04:51
rewritefilter pom.xml
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>4.0.3</version>
</dependency>
@gatherKnowledge
gatherKnowledge / getBarcode.java
Last active May 4, 2017 04:10
Google - Authentication
//* POINT
//throght the url(included the secret number), Your server and user's smart phone became a sync
public static String getQRBarcodeURL(String user, String host, String secret) {
String format = "http://chart.apis.google.com/chart?cht=qr&amp;chs=300x300&amp;chl=otpauth://totp/%s@%s%%3Fsecret%%3D%s&amp;chld=H|0";
return String.format(format, user, host, secret);
}
@gatherKnowledge
gatherKnowledge / .cvsignore
Created July 27, 2017 06:46
my project ignore directories/files
# Created by .ignore support plugin (hsz.mobi)
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
9월 01, 2017 9:20:24 오전 org.apache.coyote.AbstractProtocol stop
정보: Stopping ProtocolHandler ["http-bio-8001"]
9월 01, 2017 9:20:24 오전 org.apache.coyote.AbstractProtocol stop
정보: Stopping ProtocolHandler ["ajp-bio-8009"]
9월 01, 2017 9:20:24 오전 org.apache.coyote.AbstractProtocol destroy
정보: Destroying ProtocolHandler ["http-bio-8001"]
9월 01, 2017 9:20:24 오전 org.apache.coyote.AbstractProtocol destroy
정보: Destroying ProtocolHandler ["ajp-bio-8009"]
@gatherKnowledge
gatherKnowledge / bcd.c
Created October 13, 2017 00:18
integer to bcd
/*
* Show Integer To BCD-code
* - Tokkenizer function makes input array with 10 below Integer.
* - toBin function shows binary code.
*/
//
void tokkenizer(int n){
int i ;
int arr[20] = {0,} ;
@gatherKnowledge
gatherKnowledge / Cast.c
Created October 13, 2017 00:26
Casting show
void downCasting(){
short before1 ;
int after1 ;
short before2 ;
int after2 ;
before1 = 1 ;
@gatherKnowledge
gatherKnowledge / init.py
Created January 15, 2018 06:46
pyqt5 기본 실행폼
import sys
from PyQt5 import uic
from PyQt5.QtWidgets import *
form = uic.loadUiType("spend_log.ui")[0]
class ui(QMainWindow, form):
"""
올바른 괄호란 (())나 ()와 같이 올바르게 모두 닫힌 괄호를 의미한다. )(나 ())() 와 같은 괄호는 올바르지 않은 괄호가 된다. 괄호를 이리저리 움직이며 올바른 괄호를 찾던 A씨는 N개의 괄호쌍이 있을 때, 올바른 괄호를 만들 수 있는 경우의 수가 궁금해졌다.
괄호 쌍의 개수 N개가 주어졌을 때, 경우의 수를 반환하는 코드를 작성해라. 예를 들어 N = 1일 경우는 () 의 1가지만 존재하므로 1을 리턴하면 된다.3일 경우에는((())), (())(), ()(()), ()()(), (()()) 의 5가지가 존재하므로 5를 리턴하면 된다.
N = 1 : () -> 1
N = 2 : ()(), (()) -> 2
N = 3 : ()()(), (())(), ()(()), (()()), ((())) -> 5
"""
class node:
{
"Profiles": [
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.40000003576278687,
"Color Space" : "sRGB",
var NotifySystem = /** @class */ (function () {
function NotifySystem() {
this.observList = new Array();
}
NotifySystem.prototype.registerObserver = function (o) {
this.observList.push(o);
};
NotifySystem.prototype.removeObserver = function (o) {
this.observList = this.observList.filter(function (x) { return x !== o; });
};