Skip to content

Instantly share code, notes, and snippets.

@haruair
haruair / Package Control.sublime-settings
Last active August 29, 2015 14:11
Sublime Text Setting
{
"in_process_packages":
[
],
"installed_packages":
[
"3024 Color Scheme",
"Better CoffeeScript",
"BracketHighlighter",
"Emmet",
{
"selector": "source.ts",
"cmd": ["tsc", "$file"],
"file_regex": "^(.+?) \\((\\d+),(\\d+)\\)(: .+)$",
"line_regex": "\\((\\d+),(\\d+)\\)",
"osx": {
"path": "/usr/local/bin:/opt/local/bin"
@haruair
haruair / dudumchit.cow
Created March 19, 2015 03:05
dudumchit for cowsay
##
## Du Dum Chit!
##
$the_cow = <<EOC;
$thoughts
$thoughts
⊂_\
  \\ Λ_Λ
   \(‘ㅅ') Du Dum Chit!
    > ⌒\
@haruair
haruair / gist:b8ff4fb128488f5e1dbf
Last active May 6, 2018 22:28
How to get all category tree node in Magento
<?php
// Usually, you can get category tree from category helper
$helper = Mage::helper('catalog/category');
$nodes = $helper->getStoreCategories();
// return Varien_Data_Tree_Node_Collection
// via Mage_Catalog_Model_Resource_Category
// However, this get method return active category only.
// Most of the samples are for collection of the category.

#할 일을 적는다

  • 요래 적으면
  • 편리합니다.
@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 / import_key_karabiner.sh
Last active March 15, 2021 14:42
HHKB-ish setting for Karabiner
#!/bin/sh
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner
$cli set remap.fn_consumer_to_fkeys_f5 1
/bin/echo -n .
$cli set general.dont_remap_apple_keyboard 1
/bin/echo -n .
$cli set remap.fn_consumer_to_fkeys_f7 1
/bin/echo -n .
@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 / 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
*/
# 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"