As configured in my dotfiles.
start new:
tmux
start new with session name:
| """ | |
| Definition of ListNode | |
| class ListNode(object): | |
| def __init__(self, val, next=None): | |
| self.val = val | |
| self.next = next | |
| """ | |
| class Solution: | |
| """ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
If you encounter errors like this configure: error: C compiler cannot create executables, try this command on Terminal:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchainYou should change XcodeDefault.xctoolchain and OSX10.10.xctoolchain tu suit your case.
| launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
| sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
| sudo pkgutil --forget org.macosforge.xquartz.pkg | |
| # Log out and log in |
| Homebrew build logs for fcitx-remote-for-osx on Mac OS X 10.11.5 | |
| Build date: 2016-05-19 08:17:12 |
| Homebrew build logs for fcitx-remote-for-osx on Mac OS X 10.11.5 | |
| Build date: 2016-05-20 17:36:42 |
| package main | |
| import "fmt" | |
| func main() { | |
| s1 := `日` | |
| fmt.Printf("%q\n", s1) | |
| fmt.Printf("% x\n", s1) // Using the "space" flag for format. | |
| // Output: | |
| // "日" |
| package main | |
| type Mutex struct{} | |
| func (m *Mutex) Lock() {} | |
| func (m *Mutex) Unlock() {} | |
| type PtrMutex *Mutex |