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 / 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):
@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 / 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,} ;
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 / .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
@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&chs=300x300&chl=otpauth://totp/%s@%s%%3Fsecret%%3D%s&chld=H|0";
return String.format(format, user, host, secret);
}
@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>