Skip to content

Instantly share code, notes, and snippets.

View dwi2's full-sized avatar

Tzu-Lin Huang dwi2

  • Fukuoka, Japan
  • 14:51 (UTC +09:00)
View GitHub Profile
@dwi2
dwi2 / misc.md
Last active February 22, 2021 11:58
Notes for my own rust learning

Path related problem

linker cc not found problem on Mac OSX Catalina with XCode command line tools 11.0.3

  • clang, cc, dsymutil are located at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
  • Write the path above in $PATH is not helping. rustc still complains linker cc not found
  • Workaround
    • Make symlink cc, clang, dsymutil in $HOME/.cargo/bin
    • I am not sure if there is any side-effect

'sys/types.h' file not found

@dwi2
dwi2 / config.fish
Last active March 9, 2021 05:01
config
status --is-login; and status --is-interactive; and exec byobu-launcher
@dwi2
dwi2 / test.md
Created August 12, 2019 06:30
test
Command Description
git status List all new or modified files
git diff Show file differences that haven't been staged
@dwi2
dwi2 / tasks.md
Last active November 23, 2016 13:19
tasks before hackathon

Tasks

  1. write user stories and design user flows

  2. feasibility study

  • login with LINE account (low priority for demo)
  • multiple BOT and multiple webhooks/endpoint on single machine
  1. build infrastructure, choose tech stack
  • VM
  • DB
@dwi2
dwi2 / kyushu_trip.md
Last active October 15, 2016 15:51
kyushu trip
@dwi2
dwi2 / test_entry_sheet.js
Created December 24, 2015 09:40
snippet to test entry sheet
var theEntrySheet;
LazyLoader.load(['js/entry_sheet.js']).then(function() {
theEntrySheet = new EntrySheet(
document.getElementById('screen'),
// Prefix url with LRM character
// This ensures truncation occurs correctly in an RTL document
// We can remove this when bug 1154438 is fixed.
'\u200E' + 'http://10.2.10.85:8080',
new BrowserFrame({url: 'http://10.2.10.85:8080'})
);
@dwi2
dwi2 / b2g-desktop.sh
Created December 16, 2015 03:14
b2g-desktop
#! /bin/bash
# open WEBIDE
pkill firefox-bin
/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin --webide -new-tab &
/Applications/B2G.app/Contents/MacOS/b2g-bin -start-debugger-server 6000 $*
@dwi2
dwi2 / gaia.sublime-build
Last active December 8, 2015 07:13
Sublime Text 2 Build System
{
"working_dir": "/Users/tzhuang/Workspace",
"path": "$PATH:/Users/tzhuang/.nvm/versions/node/v0.12.7/bin:/Users/tzhuang/Library/Android/sdk/platform-tools",
"variants": [
{
"cmd": ["make", "-C", "gaia"],
"name": "gaia"
},
{
"cmd": ["make", "-C", "gaia", "clean"],