Skip to content

Instantly share code, notes, and snippets.

View Luavis's full-sized avatar
🐈
meow~

Luavis Luavis

🐈
meow~
View GitHub Profile
@Luavis
Luavis / ex.html
Created October 29, 2014 12:01
Example
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
a<br>
b<br>
c<br><br><br>
@Luavis
Luavis / ex2.html
Last active August 29, 2015 14:08
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#red {
color: red;
}
h1 {
@Luavis
Luavis / elo_rating.rb
Last active August 29, 2015 14:09
ssu pzgs elo system rating
require './libs/database'
class ELORating
def calc()
client = Database.instance.mysql_client
elo_rating = {}
client.query("select id from mh_nickname").each { | row | elo_rating[row['id'].to_s] = 1400 }
client.query "update mh_nickname set elo_point = 1400"
list = client.query """
@Luavis
Luavis / go_stop.c
Created December 8, 2014 05:00
go_stop.c
#include"gostop.h"
Card card[DECK] = { {1,"1광",'G'},{1,"1홍단",'D'},{1,"1피1",'P'},{1,"1피2",'P'},
{2,"2새",'A'},{2,"2홍단",'D'},{2,"2피1",'P'},{2,"2피2",'P'},
{3,"3광",'G'},{3,"3홍단",'D'},{3,"3피1",'P'},{3,"3피2",'P'},
{4,"4새",'A'},{4,"4초단",'D'},{4,"4피1",'P'},{4,"4피2",'P'},
{5,"5열끗",'A'},{5,"5초단",'D'},{5,"5피1",'P'},{5,"5피2",'P'},
{6,"6열끗",'A'},{6,"6청단",'D'},{6,"6피1",'P'},{6,"6피2",'P'},
{7,"7열끗",'A'},{7,"7초단",'D'},{7,"7피1",'P'},{7,"7피2",'P'},
{8,"8광",'G'},{8,"8새",'A'},{8,"8피1",'P'},{8,"8피2",'P'},
-- phpMyAdmin SQL Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- 호스트: localhost
-- 처리한 시간: 15-01-20 16:15
-- 서버 버전: 5.5.40-MariaDB-1~precise-log
-- PHP 버전: 5.4.33-2+deb.sury.org~precise+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
/* for apply all browser that web font support*/
@font-face {
font-family: MyHelvetica;
src: url(HelveticaNeue-Regular.eot); /*IE9 호환성 보기*/
src: local("Helvetica Neue"), /*로컬 서체 Full Name*/
local("HelveticaNeue-Regular"), /*로컬 서체 Postscript Name*/
"use strict";
var request = require('request');
var cheerio = require('cheerio');
var Iconv = require('iconv').Iconv;
var fs = require('fs');
var euckr2utf8 = new Iconv('euc-kr', 'utf8//IGNORE');
fs.appendFileSync('./test', '| 이름 | 이미지 개수 | 이미지 출처 | 링크 | \n| ------------- | ----------- | ----------- | ----------- |\n')
function get_fucking_list(index, callback) {
@Luavis
Luavis / cv_blur.cpp
Created March 29, 2015 04:41
open cv blur function
//
// main.cpp
// cvTest
//
// Created by 강성일 on 3/28/15.
// Copyright (c) 2015 Luavis. All rights reserved.
//
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
@Luavis
Luavis / asmasm.asm
Last active August 29, 2015 14:19
asmasm.asm
[BITS 64]
section .data
menu_msg db "<Menu>" ; size 6
first_menu db "Sungsoo-myen" ; size: 12
second_menu db "Soosung-myen" ; size: 12
third_menu db "Moonsoo-myen" ; size: 12
select_msg db "Select : " ; size: 9
pre_sel_msg db "You selected " ; size: 13
@Luavis
Luavis / SMSSpamCollection.txt
Last active August 29, 2015 14:20
word finder
ham Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
ham Ok lar... Joking wif u oni...
spam Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
ham U dun say so early hor... U c already then say...
ham Nah I don't think he goes to usf, he lives around here though
spam FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv
ham Even my brother is not like to speak with me. They treat me like aids patent.
ham As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune
spam WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only.
spam Had your mobile 11 months