Skip to content

Instantly share code, notes, and snippets.

@bakyeono
bakyeono / rich-already-answered-that.md
Created September 28, 2022 08:59 — forked from reborg/rich-already-answered-that.md
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

《프로그래머 수학으로 생각하라》 독서 노우트

1장 0 이야기

수를 표기하는 방법과 0의 역할

10진법

  • 10을 기수로 하는 자리수 기반 수 표기법(위치값 기수법).

《팀을 위한 Git》 독서 노트

책은 3개 부로 구성

  • 1부 워크플로우 작성하기(1장 - 4장)
  • 2부 워크플로우에 명령어 적용하기(5장 - 9장)
  • 3부 Git 호스팅(10장 - 12장)
  • 부록: 몇몇 Git 관련 도구 사용법
@bakyeono
bakyeono / arch-linux-installation.md
Last active September 28, 2020 18:39
arch linux installation

Arch Linux 설치

설치 준비

키보드 로드

지원 키보드 목록

ls /usr/share/kbd/keymaps/**/*.map.gz

@bakyeono
bakyeono / stdio.clj
Created April 16, 2016 06:51
Read from STDIN, write to STDOUT in Clojure
;; read from STDIN
(line-seq (java.io.BufferedReader. *in*))
(map #(Integer/parseInt %) (line-seq (java.io.BufferedReader. *in*)))
;; write elements of a sequence, line by line, to STDOUT
(doseq [elm result] (print (str elm "\n")))))
@bakyeono
bakyeono / curl.php
Last active February 22, 2016 07:32
CURL GET & POST in PHP
<?php
function curl_get($url) {
$curl = curl_init();
curl_setopt_array($curl, array (
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_URL => $url,
CURLOPT_USERAGENT => 'useragent'
));
$response = curl_exec($curl);
@bakyeono
bakyeono / uncompress-zip-in-cpp-with-xzip.md
Created January 15, 2016 09:59
uncompress-zip-in-cpp-with-xzip.md

C/C++ - 윈도우에서 zip 압축 풀기

Xzip을 이용해 윈도우에서 간단히 zip 압축 푸는 방법이다. 다양한 압축 라이브러리가 있지만 내가 찾아본 것 중에 Xzip 이 윈도우 전용이고 가장 간편한 것 같다. 다만 문서화가 되어 있지 않아서 데모 코드를 해석해서 사용법을 배워야 한다.

압축을 풀 때는 XUnzip.h, XUnzip.c 두 파일만 있으면 된다.

Xzip이

#include "XUnzip.h"
@bakyeono
bakyeono / prevent-blanking-in-console.md
Created January 7, 2016 09:00
prevent blanking in console

Prevent screen from turning off (in console)

$ setterm -blank 0 -powerdown 0

Alternatively you can disable console blanking permanently using the following command:

# echo -ne "\033[9;0]" >> /etc/issue
" Load Plugins (Vundle)
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Plugin 'viewdoc'
Plugin 'ctrlp.vim'
Plugin 'Buffergator'
Plugin 'guns/vim-clojure-static'