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
liuderchi / .graphqlconfig.yml
Last active Aug 18, 2019
Project config example for Graphql Playground App ( https://github.com/prisma/graphql-playground )
View .graphqlconfig.yml
# For Graphql Playground
# Steps in Toolbar:
# Workspace > New Workspace > select a folder containing this file
#
# example: https://github.com/prisma/graphql-playground/pull/757/files
#
# 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
@dominictarr
dominictarr / readme.md
Created Nov 26, 2018
statement on event-stream compromise
View readme.md

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.

@broros

otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

@doggy8088
doggy8088 / settings.json
Last active Sep 24, 2019
Will 保哥的 VSCode 使用者設定檔
View settings.json
{
"explorer.openEditors.visible": 0,
"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.sideBar.location": "right",
// 需下載安裝 Fira Code 字型 (安裝 OTF 格式)
// https://github.com/tonsky/FiraCode/releases
// 需下載客製化過的 Microsoft YaHei Mono 字型
View auto-type-css.markdown
@Bhavdip
Bhavdip / sketch-never-ending.md
Created Oct 6, 2016
Modify Sketch to never ending trial
View sketch-never-ending.md

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
@liuderchi
liuderchi / rename_author_of_commits.md
Created Sep 23, 2016
git rename author info of commit
View rename_author_of_commits.md

setup author info of past commits

  • $ git rebase -i {{base_commit|--root}}
  • edit all 'pick' to 'edit' then save
  • do following for each commit:
    • $ git commit --amend --author="Author-Name <email@address.com>"
    • $ git rebase --continue

setup author info of future commits

View demo_draw_diagram_using_Markdown.md

Draw Diagram using Markdown

  • markdown preview enhanced is a Atom package

    • preview markdown in Atom editor on the fly
    • allow you to draw flow chart using power of mermaid
    • you can export the document in html or pdf
  • mermaid let you draw diagram like writing markdown

    • supporting lots of diagram
@jasonphillips
jasonphillips / config.js
Last active Jun 24, 2018
Jupyter NodeJS: HTML Output (and React Demonstration)
View config.js
module.exports = {
extensions: {
// clojurescript: require('./ext/clojurescript'),
clojure: require('./build/ext/clojure'),
clojurescript: require('./build/ext/clojurescript'),
coffee: require('./build/ext/coffee'),
babel: require('./build/ext/babel'),
html: require('./build/ext/html')
}
}
@dsaiztc
dsaiztc / excel.py
Last active Nov 4, 2015
Excel files Python management. http://www.python-excel.org/
View excel.py
import xlrd
datafile = "my_file.xls"
workbook = xlrd.open_workbook(datafile)
sheet = workbook.sheet_by_index(0)
data = [[sheet.cell_value(r, col)
for col in range(sheet.ncols)]
for r in range(sheet.nrows)]
You can’t perform that action at this time.