This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func Launch(vbox *VBoxSpec, statusch chan<- *VmStatus, quitch <-chan bool) { | |
| go func() { | |
| vboxPath := main.Config["VboxPath"] | |
| vboxHeadlessBin := fmt.Sprintf("%s/VBoxHeadless", vboxPath) | |
| statusch <- VmStatus{vbox, VMSTATUS_LAUNCHING} | |
| var stdoutFilePtr *File | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ("log") | |
| type Test struct { | |
| v int | |
| } | |
| func (t *Test) SetTo(i int) *Test { | |
| t.v = i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ("log") | |
| type Test struct { | |
| a []byte | |
| } | |
| /*func (t *Test) Push(v byte) *Test { | |
| n := len(t.a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A | |
| i.header.Write(&[...]byte{ 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00 }); | |
| // B | |
| i.header.WriteString("\xf0\x00\x00\x00\x00\x00") | |
| // C | |
| i.header.WriteByte(0xf0); | |
| i.header.WriteByte(0x00); | |
| i.header.WriteByte(0x00); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 192c192,195 | |
| < 'left': menu.position().left + $e.position().left | |
| --- | |
| > 'left': menu.position().left + $e.position().left + | |
| > document.defaultView ? | |
| > (document.defaultView.getComputedStyle(menu, null)['margin-left'] || 0) | |
| > : 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a l=l==sort l | |
| b l=all even(dropWhile odd l) | |
| c=partition | |
| d l=all(==(length l))(map length l) | |
| e []=[] | |
| e l=l!!0!!0:e(map tail(tail l)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout -q -b current archive | |
| find . -iname '_archived' -exec git rm -r {}/.. \; >/dev/null 2>/dev/null | |
| git commit --allow-empty -m 'Archived delta' >/dev/null |
NewerOlder