Skip to content

Instantly share code, notes, and snippets.

View raycon's full-sized avatar

Raegon Kim raycon

View GitHub Profile
""" Map leader to space ---------------------
let mapleader = " "
""" Plugins --------------------------------
""" set number
" Do incremental searching.
set incsearch
set ignorecase
set smartcase
set hlsearch
""" Needed for which-key pluginset which-key
@gyribeiro
gyribeiro / tmux_italic.md
Last active September 6, 2025 12:36
enable italic font on tmux
source ~/.vimrc
set visualbell
set noerrorbells
set surround
set relativenumber
" disable mappings from .vimrc
inoremap <C-U> <C-U>
inoremap <CR> <CR>
@mikoim
mikoim / README.md
Last active October 2, 2025 02:55
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@daicham
daicham / .gitlab-ci.yml
Last active October 9, 2025 01:21
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@jongyeol
jongyeol / JavaReturnTypeInfer.java
Created September 23, 2015 03:17
generic is just casting.
import java.lang.reflect.Type;
import com.fasterxml.jackson.core.type.TypeReference;
public class JavaReturnTypeInfer{
private static String speficicType() throws Exception{
TypeReference<String> tr = new TypeReference<String>(){};
Type type = tr.getType();
System.out.println(type.getTypeName()); // => java.lang.String
return (String) Class.forName(type.getTypeName()).newInstance();
@paambaati
paambaati / launch.js
Last active August 19, 2025 10:21
Debug mocha tests using Visual Studio Code
{
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Run app.js",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@dittos
dittos / BitmapCache.java
Created August 26, 2013 04:47
LruCache-based BitmapCache for Volley
package com.gae9.android.util;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader.ImageCache;
public class BitmapCache implements ImageCache {
private LruCache<String, Bitmap> mMemoryCache;