Skip to content

Instantly share code, notes, and snippets.

@haruair
haruair / address.py
Last active September 15, 2016 07:28
SQLAlchemy dirty convert using Normalizable
from datetime import datetime
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import relationship, backref
from database import Base
from util import Normalizable
class Address(Base, Normalizable):
@haruair
haruair / slack-wc-client.py
Created August 23, 2016 04:21
slack wc client
from websocket import create_connection
import json
import signal
import sys
import requests
key = "" # me key
channelId = "C03BXUL0Q" # general
r = requests.get('https://slack.com/api/rtm.start?token='+key)
@haruair
haruair / writing.html
Created August 3, 2016 07:45
editor draft
<!doctype html>
<html>
<head>
<style>
@import url(https://fonts.googleapis.com/css?family=Merriweather:400,700,300,900);
.placeholderText {
font-family: 'Merriweather', 'apple sd gothic neo', serif;
border: 0;
background: #fafafa;
@haruair
haruair / quicktodo.md
Last active August 3, 2016 02:42
quick todo

3분기

  • 책 8월 내로 마무리하기

4분기

  • 이모콘 준비
  • 11월 미국 방문
  • UWP로 앱 하나 만들기
  • 집에 쌓인 책 다 읽기
@haruair
haruair / howto.md
Last active June 23, 2016 01:03
C# 초보가 C# 패키지를 만드는 방법

C# 초보가 C# 패키지를 만드는 방법

이상한모임 / Kobe Creations

김용균

프롤로그

C# 배우고 싶지만 쉽게 배울 수 없던 너란 언어

using System;
using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Playground
{
class MainClass
{
public static void Main (string[] args)
console.log("Hello. What time is it?");
# 0 is too far from ` ;)
set -g base-index 1
set -g prefix ^b
setw -g xterm-keys on
# on ssh, it will be the problem
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm"
@haruair
haruair / fwp-bulk-zap.php
Created April 8, 2016 10:44
FeedWordPress Bulk Zap Action
<?php
/*
Plugin Name: FeedWordPress Bulk Zap
Plugin URI: http://haruair.com
Description: Code snipet for bulk zap of FeedWordPress
Version: 0.1
Author: Haruair
Author URI: http://haruair.com
License: GPL v2
*/
@haruair
haruair / gradle.md
Created March 31, 2016 03:27
Java 프로젝트 Gradle로 시작하기

spring의 gradle로 프로젝트 시작하기를 따라하며 정리한 글이다.

먼저 brew로 java와 의존성 및 빌드 관리/자동화 도구인 gradle을 설치한다.

$ brew tap caskroom/cask
$ brew install brew-cask
$ brew cask install java
$ brew install gradle