Skip to content

Instantly share code, notes, and snippets.

View jaohaohsuan's full-sized avatar

Henry jaohaohsuan

View GitHub Profile
@jaohaohsuan
jaohaohsuan / install.sh
Created June 16, 2019 11:03
compile vim from source
sudo ./configure --with-features=huge \
--enable-multibyte \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-python3interp=yes \
--with-python3-config-dir=`python3.7m-config --configdir` \
--enable-gui=no \
--enable-cscope \
--enable-luainterp=yes \
--enable-rubyinterp=yes \
setxkbmap -layout us -option ctrl:nocaps
@jaohaohsuan
jaohaohsuan / Main.java
Created May 15, 2019 02:41
week11 files I/O
package comp601.week11;
import java.util.*;
import static java.lang.System.out;
import java.io.*;
import java.nio.file.*;
public class Main {
/*
@jaohaohsuan
jaohaohsuan / Main.java
Created May 8, 2019 02:28
week 10 recursion
package comp601.week10;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
Ticket t1 = new Ticket("t1", 155);
@jaohaohsuan
jaohaohsuan / w3l.java
Created March 7, 2019 20:51
week3 lab
package comp601.assignment1;
import static java.lang.System.out;
import java.util.*;
public class Main {
private static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
@jaohaohsuan
jaohaohsuan / w3.java
Created March 6, 2019 01:57
week 3 class practice
package comp608.assignment1;
import static java.lang.System.out;
import java.util.*;
public class Main {
private static final Scanner input = new Scanner(System.in);
public static void main(String[] args) {
// TODO Auto-generated method stub
@jaohaohsuan
jaohaohsuan / all-in-one.java
Created February 28, 2019 20:51
week 3 lab
package assignment1;
import static java.lang.System.out;
import java.util.*;
public class Main {
private static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
// TODO Auto-generated method stub
@jaohaohsuan
jaohaohsuan / week2.java
Created February 27, 2019 01:50
comp601 week 2
package comp601.week2;
import static java.lang.System.out;
import java.util.Scanner;
public class Main {
private static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
// TODO Auto-generated method stub
@jaohaohsuan
jaohaohsuan / .vimrc
Created July 10, 2017 01:04
my vimrc
" be able to use tab in command mode
set nocompatible
syntax enable
" free use to apply filetype's detection, plugin and indent
filetype plugin on
" it looks better when press tab on command mode
set wildmenu
@jaohaohsuan
jaohaohsuan / nodejs-syntax-notes.md
Last active June 9, 2017 06:59
nodejs syntax notes

declare classes in polo1.js

class Polo1 {
  constructor() {
    console.log('hi Polo1');
  }
}