Skip to content

Instantly share code, notes, and snippets.

View mngyuan's full-sized avatar

Kevin Lee mngyuan

View GitHub Profile
@mngyuan
mngyuan / 01.configure
Last active August 29, 2015 14:24
~/.cache/Homebrew/Logs/tcl-tk/01.configure
2015-06-25 18:07:46 -0700
./configure
--prefix=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4
--mandir=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/share/man
--enable-64bit
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
@mngyuan
mngyuan / 02.make
Created June 30, 2015 21:59
~/.cache/Homebrew/Logs/tcl-tk/02.make
2015-06-25 18:07:55 -0700
make
/home/phorust/.linuxbrew/bin/gcc-4.4 -c -DNDEBUG -O2 -Os -w -pipe -march=core2 -pipe -m64 -isystem/home/phorust/.linuxbrew/include -Wall -fPIC -DBUILD_tcl -I"." -I/tmp/tcl-tk20150625-2353807-rildox/tcl8.6.4/unix -I/tmp/tcl-tk20150625-2353807-rildox/tcl8.6.4/generic -I/tmp/tcl-tk20150625-2353807-rildox/tcl8.6.4/libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DTCL_CFG_DO64BIT=1 -DHAVE_CAST_TO_UNION=1 -D
@mngyuan
mngyuan / 03.make
Created June 30, 2015 22:00
~/.cache/Homebrew/Logs/tcl-tk/03.make
2015-06-25 18:08:52 -0700
make
install
Making directory /home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/lib
Making directory /home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/lib/tcl8.6
Making directory /home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/include
Making directory /home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/lib/tcl8.6/msgs
Configuring package 'itcl4.0.3'
@mngyuan
mngyuan / 04.make
Created June 30, 2015 22:00
~/.cache/Homebrew/Logs/tcl-tk/04.make
2015-06-25 18:09:02 -0700
make
install-private-headers
Installing private header files to /home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/include/
@mngyuan
mngyuan / 05.configure
Created June 30, 2015 22:00
~/.cache/Homebrew/Logs/tcl-tk/05.configure
2015-06-25 18:09:02 -0700
./configure
--prefix=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4
--mandir=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/share/man
--with-tcl=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/lib
--enable-64bit
--enable-aqua=yes
--without-x
@mngyuan
mngyuan / 06.make
Created June 30, 2015 22:01
~/.cache/Homebrew/Logs/tcl-tk/06.make
2015-06-25 18:09:06 -0700
make
TK_LIBRARY=/home/phorust/.linuxbrew/Cellar/tcl-tk/8.6.4/lib
/home/phorust/.linuxbrew/bin/gcc-4.4 -c -O2 -Os -w -pipe -march=core2 -pipe -m64 -isystem/home/phorust/.linuxbrew/include -Wall -fPIC -DBUILD_tk -I/tmp/tcl-tk--tk20150625-2353807-j99v3m/tk8.6.4/unix/../unix -I/tmp/tcl-tk--tk20150625-2353807-j99v3m/tk8.6.4/unix/../generic -I/tmp/tcl-tk--tk20150625-2353807-j99v3m/tk8.6.4/unix/../bitmaps -I/tmp/tcl-tk20150625-2353807-rildox/tcl8.6.4/generic -I/tmp/tcl-tk20150625-2353807-rildox/tcl8.6.4/unix -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tk\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __att
@mngyuan
mngyuan / a history of ui.md
Last active April 18, 2018 20:18
a React & Redux primer

Redux docs Suggested:

  • 1.1 Motivation
  • 1.2 Three principles
  • 2.1-5 Basics (pay extra attention to reducers)

React's docs are notoriously bad. Instead, refer to the one page you really need

Once upon a time, we built GUIs, before we dropped the redundant G and the widespread familiarity with CLIs. Each

@mngyuan
mngyuan / add_to_keymap_and_init.cson
Created January 28, 2017 01:32
ycm style completion in atom autocomplete-plus
# in keymap.cson
'atom-text-editor:not(mini).autocomplete-active':
'enter' : 'autocomplete-plus:confirm'
'tab' : 'core:move-down'
'shift-tab': 'core:move-up'
'.' : 'custom:ycm-style-complete-dot'
'(' : 'custom:ycm-style-complete-openparen'
'[' : 'custom:ycm-style-complete-opensquare'
'{' : 'custom:ycm-style-complete-opencurly'
@mngyuan
mngyuan / DiffInput.react.js
Created August 11, 2017 18:09
Single Line Diff tool
// paste into https://facebook.github.io/react/ to use
class DiffInput extends React.Component {
constructor(props) {
super(props);
this.state = {text1: 'hello', text2: 'henlo world', diff:[]};
this.onChange1 = this.onChange1.bind(this);
this.onChange2 = this.onChange2.bind(this);
}
@mngyuan
mngyuan / tmp.md
Created August 28, 2017 18:53
random relay and redux notes

Redux / Flux and Relay?

Relay and Redux seem to solve very similar problems but in actuality the benefits from either are quite different.

Relay

  • business logic on server side
    • no duplication of business logic
    • even more separation between view and business
  • declarative data needs