This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; qmake-mode-el -- Major mode for editing QMAKE files | |
;; Author: Hyungchan Kim <inlinechan@gmail.com> | |
;; Created: 2 Nov 2015 | |
;; Keywords: QMAKE major-mode | |
;; Copyright (C) 2015 Hyungchan Kim <inlinechan@gmail.com> | |
;; This program is free software; you can redistribute it and/or | |
;; modify it under the terms of the GNU General Public License as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | value | |
---|---|---|
1 | 1000 | |
2 | 1100 | |
3 | 1150 | |
4 | 1120 | |
5 | 1200 | |
6 | 1150 | |
7 | 1100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename Sig> | |
class Function; | |
template <typename R, typename... Args> | |
class Function<R(Args...)> { | |
public: | |
typedef R(*Runtype)(Args...); | |
Function(Runtype f) : f_(f) {} | |
R operator()(Args... args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; package --- Summary | |
;;; Commentary: | |
;;; Code: | |
(defun parse-compdb (db file) | |
"Parse compilation database DB of FILE and return list of include path." | |
(when (file-exists-p db) | |
(with-temp-buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
set(PROJECT_NAME finder) | |
project(${PROJECT_NAME}) | |
option(test "Build all tests." OFF) | |
execute_process(COMMAND llvm-config-3.8 --cxxflags | |
OUTPUT_VARIABLE LLVM_CXXFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; package --- Summary | |
;;; Commentary: | |
;; You may a hook for flycheck to set flycheck-clang-include-path automatically upon buffer open | |
;; | |
;; (add-hook 'flycheck-mode-hook | |
;; '(lambda() | |
;; (let ((include-path (compdb-get-include-path))) | |
;; (when include-path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq org-clock-in-switch-to-state | |
#'(lambda (state) | |
(when (not (string= state "STARTED")) | |
"STARTED"))) | |
(setq org-clock-out-switch-to-state | |
#'(lambda (state) | |
(when (not (string= state "WAITING")) | |
"WAITING"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun hc/search-class-decl () | |
(interactive) | |
(let ((pattern "^\'*class ?\\([A-Z_]+\\)? ?[A-Za-z0-9_]+")) | |
(isearch-forward-regexp nil 1) | |
(setq isearch-regexp t | |
isearch-string pattern | |
isearch-yank-flag t) | |
(isearch-search-and-update))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; init.el --- My own emacs configuration | |
;; Copyright (C) 2017 Hyungchan Kim | |
;; Author: Hyungchan Kim <inlinechan@gmail.com> | |
;; Keywords: lisp use-package | |
;;; Commentary: | |
;; `use-package' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for crontab | |
export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
URL=mms://211.181.136.136/livefm | |
DESTDIR=$HOME/Music/chulsoo | |
RECIPIENT='foo@bar.com' | |
WAVFILE=$(date +\%Y\%m\%d\%H).wav | |
DURATION=3600 |
OlderNewer