Skip to content

Instantly share code, notes, and snippets.

package main
import ("log")
type Test struct {
a []byte
}
/*func (t *Test) Push(v byte) *Test {
n := len(t.a)
package main
import ("log")
type Test struct {
v int
}
func (t *Test) SetTo(i int) *Test {
t.v = i
// 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);
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;
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))
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
diff --git a/client.coffee b/client.coffee
index 37b7239..a5eb7b9 100644
--- a/client.coffee
+++ b/client.coffee
@@ -49,7 +49,10 @@ exports.render = !->
Dom.div !->
Dom.cls 'chat-info'
- Dom.text tr("Anonymous coward")
+ if userId = msg.get('userId')