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
### Java | |
export JAVA_HOME=`/usr/libexec/java_home -v 12` | |
### Setup for Android | |
export ANDROID_HOME=$HOME/Programmings/Mobile/Android/sdk | |
PATH=/usr/local/bin:$PATH | |
PATH=$PATH:$ANDROID_HOME/emulator | |
PATH=$PATH:$ANDROID_HOME/tools | |
PATH=$PATH:$ANDROID_HOME/platform-tools | |
PATH=$PATH:$ANDROID_HOME/ndk-bundle |
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
# Customize configuration | |
set -g mouse on | |
# Use VIM navigation style | |
set -g mode-keys vi | |
# Status update interval | |
set -g status-interval 1 | |
# Enable 24bit true color |
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
" Specify a directory for plugins | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'scrooloose/syntastic' | |
Plug 'scrooloose/nerdcommenter' |
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
# Generate Public / Private Keys | |
openssl pkcs12 -in <.p12> -out <private-key.pem> -nocerts -nodes | |
openssl pkcs12 -in <.p12> -out <public-key.pem> -clcerts -nokeys | |
# Reinstall curl with nghttp2 | |
brew install / reinstall curl --with-nghttp2 | |
# Replace Mac OS default curl | |
brew link curl --force | |
# POST |
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
# asyncio_executor_process.py | |
import asyncio | |
import concurrent.futures | |
import logging | |
import sys | |
import time | |
def blocks(n): | |
log = logging.getLogger('blocks({})'.format(n)) |
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
import ImageIO | |
func imageSize(with url: NSURL) -> CGSize { | |
var size: CGSize = .zero | |
let source = CGImageSourceCreateWithURL(url, nil)! | |
let options = [kCGImageSourceShouldCache as String: false] | |
if let properties = CGImageSourceCopyPropertiesAtIndex(source, 0, options as CFDictionary?) { | |
if let properties = properties as? [String: Any], |