Skip to content

Instantly share code, notes, and snippets.

View cwhy's full-sized avatar

Chen Yu cwhy

View GitHub Profile
letsencrypt certonly --manual
# And follow the instructions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwhy
cwhy / theme_setup.md
Created July 24, 2016 05:16 — forked from mborodov/theme_setup.md
My theme setup for Ubuntu

My Ubuntu theme config

My Ubuntu theme config

A Unity theme inspired by OSX Yosemite based on Ambiance.

sudo apt-add-repository ppa:bsundman/themes
sudo apt-get update
sudo apt-get install -y yosembiance-theme
@cwhy
cwhy / local_ver.md
Last active March 29, 2020 11:08
Create a local version of python
sudo apt install build-essential zlib1g-dev libssl-dev openssl sqlite libsqlite3-dev libbz2-dev tk-dev libffi-dev
mkdir $HOME/local
cd $HOME/local
mkdir bin
mkdir lib
mkdir include

Create a file in $HOME/local/set_env.py

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwhy
cwhy / mixed_moments.py
Last active May 27, 2017 13:54
Calculate mixed moments of multi-variate data
# By CWhy
# [email protected]
import numpy as np
import tensorflow as tf
# Generate equation for mixed moments
def moments_eqn(_l, order):
if order == 1:
return _l
r = []
@cwhy
cwhy / fontEndStack_Typescript.md
Last active January 2, 2023 21:05
Web frontend stack (yarn + webpack + typescript)

This file shows how to set up a minimal web font-end stack with Yarn, webpack and Typescript

Install newest NodeJS

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

[1]

Install yarn

@cwhy
cwhy / ubuntuDesktopRoutine.md
Last active March 22, 2018 03:57
Ubuntu desktop routine
  • (Tested on 16.04.3)

System Config

  • Choose closest update server location
  • Disable activity record in Security & Privacy
  • Change Firefox download settings
  • Enable workspace in Appearance/Behavior
  • [Optional] Dual screen setup (remove sticky edges)
  • [Optional] Add printers

Learning Active Learning from Data

In this paper, we suggest a novel data-driven approach to active learning (AL). The key idea is to train a regressor that predicts the expected error reduction for a candidate sample in a particular learning state. By formulating the query selection procedure as a regression problem we are not restricted to working with existing AL heuristics; instead, we learn strategies based on experience from previous AL outcomes. We show that a strategy can be learnt either from simple synthetic 2D datasets or from a subset of domain-specific data. Our method yields strategies that work well on