Skip to content

Instantly share code, notes, and snippets.

View bluenex's full-sized avatar
🧐
Be explicit with the least redundant.

Tulakan Ruangrong bluenex

🧐
Be explicit with the least redundant.
View GitHub Profile
@bluenex
bluenex / ocr-slip.ipynb
Last active December 11, 2018 14:53
Python script to extract text from bank slip in Thai language.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bluenex
bluenex / second_gist
Created June 17, 2018 05:31
Add a gist using tavern
Woohoo I added a gist using tavern!
@bluenex
bluenex / jupyterThemes.md
Created May 17, 2018 02:15
Jupyter theme
@bluenex
bluenex / py-lots-regex.ipynb
Last active May 5, 2018 04:54
Regex patterns for kk's date 😂
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bluenex
bluenex / android-dev-osx.md
Last active February 18, 2024 02:01
Setting up Android dev environment without Android Studio via brew on Mac OSX [Android Virtual Device (AVD) included]

Prerequisites

  • Homebrew

Android SDK

Install JAVA

First, install JAVA. Note that Android SDK is not yet supported JAVA 10, so install JAVA 8:

Original dpoggi.zsh-theme

if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}@%{$fg[cyan]%}%m\
%{$reset_color%}:%{$fg[magenta]%}%~\
$(git_prompt_info) \
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
@bluenex
bluenex / how-to-run.md
Last active October 11, 2023 09:04
Guide to run script on terminal in the background with log.

Running in the background

This command can be applied to anything run on cli, for example bash script and python script.

Two ways to do

There are two ways to run process in the background, nohup and & (ampersand).

Steps

@bluenex
bluenex / general_parsing_data.ipynb
Created March 11, 2017 07:01
general steps for EMG data loading & parsing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Facebook.Unity;
using UnityEngine.UI;
public class fb_api : MonoBehaviour {
public Button showProfilePic;
public Image profilePic;
@bluenex
bluenex / Robot.py
Created July 31, 2016 15:08
Robot class for dynamixel servo motors
import os
import dynamixel
import sys
import subprocess
import optparse
import json
import time
import jsonpickle
from PyQt5.QtCore import pyqtSlot, pyqtSignal, QThread