Skip to content

Instantly share code, notes, and snippets.

@haruair
haruair / index.html
Last active October 7, 2015 03:54 — forked from jvns/index.html
snake in d3
<html>
<head>
<title> it's a snake! </title>
<link rel="stylesheet" href="snake.css"> </link>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script>
<script src="snake.js"> </script>
</head>
<body>
@haruair
haruair / dice_result.js
Created June 17, 2013 04:55
게임코디 주사위 결과정리 북마클릿
(function() {
var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.async = false;
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jq, s);
var dice_result_gen = function(){
if(jQuery("#dice_result").length != 0) return false;
var dice_img = jQuery("img[src^=\"/dice_\"]");
var list = [];
if(dice_img.length == 0) return false;
(function() {
var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.async = false;
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jq, s);
var giant_gamecodi = function(){
var giant_name = jQuery("#giant-name").val() || "진격의 고양이";
var giant_hp = parseInt(jQuery("#giant-hp").val()) || 730666;
function sshow_load_img1(src, loaded) {
/* NOT possible to document.createElement('canvas').getContext('2D').drawImage( img or img.get() ) */
var img = $("<img />").attr('src', src )
.load(function() {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
alert('broken image!');
} else {
if (loaded) loaded(img);
}
});
@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
@haruair
haruair / dudumchit.cow
Created March 19, 2015 03:05
dudumchit for cowsay
##
## Du Dum Chit!
##
$the_cow = <<EOC;
$thoughts
$thoughts
⊂_\
  \\ Λ_Λ
   \(‘ㅅ') Du Dum Chit!
    > ⌒\
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"
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Playground
{
class MainClass
{
public static void Main (string[] args)
@haruair
haruair / howto.md
Last active June 23, 2016 01:03
C# 초보가 C# 패키지를 만드는 방법

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

이상한모임 / Kobe Creations

김용균

프롤로그

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