Skip to content

Instantly share code, notes, and snippets.

View foreseaz's full-sized avatar
☁️

Chenxi Zh foreseaz

☁️
View GitHub Profile
@foreseaz
foreseaz / Keyboard Glyphs
Created April 24, 2018 03:33
Keyboard Glyphs
<kbd>u</kbd>
<kbd>CTRL</kbd>+<kbd>Z</kbd>
@foreseaz
foreseaz / .block
Created August 23, 2017 03:23
.block
border: yes
license: gpl-3.0
This file has been truncated, but you can view the full file.
[{"pid":6895,"tid":6901,"ts":50921777887,"ph":"X","cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","args":{"fd":28},"dur":267,"tdur":258,"tts":41091092},
{"pid":6895,"tid":6901,"ts":50921778018,"ph":"X","cat":"ipc,toplevel","name":"ChannelReader::DispatchInputData","args":{"class":11,"line":165},"dur":55,"tdur":51,"tts":41091217,"bind_id":"0xbdca1c02","flow_in":true},
{"pid":6895,"tid":6901,"ts":50921778077,"ph":"X","cat":"ipc,toplevel","name":"ChannelReader::DispatchInputData","args":{"class":11,"line":165},"dur":8,"tdur":6,"tts":41091275,"bind_id":"0xbdca1d02","flow_in":true},
{"pid":6895,"tid":6901,"ts":50921778087,"ph":"X","cat":"ipc,toplevel","name":"ChannelReader::DispatchInputData","args":{"class":11,"line":97},"dur":49,"tdur":47,"tts":41091285,"bind_id":"0xbdca1e06","flow_in":true},
{"pid":6895,"tid":6901,"ts":50921796755,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../ipc/ipc_channel_proxy.cc","src_func":"Send"},"dur":59,"tdur":53,"tts":41091435}
# notes 1
# how Rails change_table works
# http://apidock.com/rails/ActiveRecord/ConnectionAdapters/SchemaStatements/change_table
def functionA(a)
b = 2
yield functionB(a,b)
end
def functionB(a, b)
a + b
@foreseaz
foreseaz / README.md
Created May 26, 2016 09:28 — forked from jmarceli/README.md
React errors explained

1

You will get one of these:

Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined(…)

ReactCompositeComponent.js:870 Uncaught TypeError: Cannot read property 'displayName' of undefined

if you try to: