Skip to content

Instantly share code, notes, and snippets.

Looking for inspirations

TC Liu liuderchi

Looking for inspirations
Block or report user

Report or block liuderchi

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
liuderchi / .graphqlconfig.yml
Last active Aug 18, 2019
Project config example for Graphql Playground App ( )
View .graphqlconfig.yml
# For Graphql Playground
# Steps in Toolbar:
# Workspace > New Workspace > select a folder containing this file
# example:
# NOTE for .env
# prepare .env with following content, in same directory as .graphqlconfig.yml
# GH_TOKEN=paste-my-github-token-here
# AIA_TOKEN_LOCAL=paste-aia-token-here
View python-start-learn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View medium-res-20180519.csv
語法 包含 Non-Enumerable 屬性? 包含原型鍊? Note
'name' in person ✔️ ✔️ 範圍超過自己本身
Object.getOwnPropertyNames(person) ✔️ no
Object.keys(person) no no Enumerable props ONLY
for (let x in person) no ✔️ Enumerable props ONLY
liuderchi /
Last active Jan 16, 2018
To Create Labels for your Repo
set -e
# NOTE to create labels for your repo
# to support types from commit message guide (feat, fix, docs, style, refactor, test, chore)
# by hitting GitHub API v3
liuderchi /
Last active Jan 4, 2018
classical game: Guess Number for 4A0B !
import getpass
def guess_num(guess, ans):
resA, resB = 0, 0
for index, c in enumerate(guess):
findAnsRes = ans.find(c)
if findAnsRes == index:
resA += 1
elif findAnsRes >= 0 :
liuderchi /
Created Dec 25, 2017 — forked from kevin-smets/
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)





View my-GitHub-info-graphql.js
// sample reference
// GitHub API v4 reference
const graphqlClient = require('graphql-client')
// GET your token
// choose fields of user info
const USERFIELDS = [
liuderchi / init.js
Last active Sep 8, 2017
Insert React Functional Component Snippet for Atom
View init.js
// steps:
// 1. copy this file to ~/.atom/init.js
// 2. in Atom, dispatch command "Window:Reload", Atom would run this file rather than
// 3. create new empty file Foo.js
// 4. focus to new tab, send command "react:insert-functional-component-template"
atom.commands.add('atom-text-editor', 'react:insert-functional-component-template', () => {
editor = atom.workspace.getActiveTextEditor()
if (!editor) { return null }
const fileNameCap = getCamelCaseNameFromPath(editor.getPath())
liuderchi / index.js
Last active Aug 29, 2017
requirebin sketch
View index.js
var R = require('ramda')
var DAY = 'DAY'
var fn = R.pipe(
function(x) {
return x
function(x) {
liuderchi /
Created Jul 19, 2017 — forked from trey/
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global "Your Name"
git config --global ""
You can’t perform that action at this time.