Skip to content

Instantly share code, notes, and snippets.

Chih-Hsuan Kuo kuoe0

Block or report user

Report or block kuoe0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kuoe0
kuoe0 / DataMining-AssociationRule-Apriori.cpp
Last active Apr 27, 2019
Data Mining - Association Rule - Apriori Implementation
View DataMining-AssociationRule-Apriori.cpp
/*
* =====================================================================================
*
* Filename: Data_Mining-Association_Rule-Apriori.cpp
*
* Description: Data Mining - Association Rule
* Apriori C++ Implementation
*
* Compiler: g++
* Platform: OS X 10.7
@kuoe0
kuoe0 / Install_OpenSSL_GIT.sh
Last active Sep 24, 2018
編譯採用 OpenSSL 的 git,避免某些網路環境下發生 gnutls_handshake() failed 的情況!
View Install_OpenSSL_GIT.sh
#!/usr/bin/env bash
# =============================================================================
# FileName: Install_OpenSSL_GIT.sh
# Desc: Build GIT with OpenSSL and Install it
# Environment: Ubuntu 13.04 amd64
# Usage: ./Install_OpenSSL_GIT.sh
# Author: KuoE0 <kuoe0.tw@gmail.com>
# HomePage: http://kuoe0.tw/
# Copyright: BSD License (C) 2013 KuoE0
# =============================================================================
@kuoe0
kuoe0 / fft.py
Created Oct 12, 2014
Python FFT Example
View fft.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 KuoE0 <kuoe0.tw@gmail.com>
#
# Distributed under terms of the MIT license.
"""
@kuoe0
kuoe0 / color_code.sh
Last active Sep 11, 2018
generate all combination of control code
View color_code.sh
#!/bin/bash
TEXT=" text "
RESET="\x1b[0m"
echo -n ' '
for i in `seq 0 7`; do
echo -n " 4${i}m "
done
@kuoe0
kuoe0 / GT-TSP-DP.cpp
Last active Jun 26, 2018
[Algorithm] Traveling Salesman's Problem - DP solution - http://kuoe0.ch/1878/algorithm-traveling-salesman-s-problem-dp-solution
View GT-TSP-DP.cpp
/*=============================================================================
# FileName: GT-TSP-DP.cpp
# Desc: Traveling Salesman Problem - DP solution
# Author: KuoE0
# Email: kuoe0.tw@gmail.com
# HomePage: http://kuoe0.ch/
# Version: 0.0.1
# LastChange: 2012-10-11 20:59:01
# History:
=============================================================================*/
View DC.md

12/19

19:40 ~ 23:10 Train 175 / Penn Station (NYP) → Union Station (WAS)****

23:10 ~ Go to hotel


12/20

View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@kuoe0
kuoe0 / AndroidPresentationDeviceProvider.js
Last active Aug 15, 2016
Add a new XPCOM implemented by JavaScript
View AndroidPresentationDeviceProvider.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* jshint esnext:true, globalstrict:true, moz:true, undef:true, unused:true */
/* globals Components, dump */
"use strict";
dump("AndroidPresentationDeviceProvider.js loaded.");
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
View semantic-ui-style-range-input.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>semantic-slider</title>
<style>
.ui.slider.range input[type="range"] {
-webkit-appearance: none;
border-width: 1px;
@kuoe0
kuoe0 / .autoenv.zsh
Created May 10, 2016
Autoenv for Gecko
View .autoenv.zsh
################################################################################
# Usage: ln -s </path/to/this/file> $GECKO/.autoenv.zsh
################################################################################
OS=$(uname)
autostash GECKO=$(git rev-parse --show-toplevel)
alias mach="$GECKO/mach"
# Load completion for mach
autoload bashcompinit
You can’t perform that action at this time.