This file contains 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
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') |
This file contains 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 |
This file contains 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 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 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 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 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 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 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
$ i686-apple-darwin9-g++ -c test.mm -o test.o -I/home/emiel/mac/include 2>&1 | head -n30 | |
In file included from /home/emiel/mac/include/boost/asio/socket_base.hpp:26, | |
from /home/emiel/mac/include/boost/asio/basic_socket.hpp:26, | |
from /home/emiel/mac/include/boost/asio/basic_datagram_socket.hpp:25, | |
from /home/emiel/mac/include/boost/asio.hpp:20, | |
from test.mm:2: | |
/home/emiel/mac/include/boost/asio/detail/socket_option.hpp:78: error: using template type parameter 'Protocol' after 'struct' | |
/home/emiel/mac/include/boost/asio/detail/socket_option.hpp:85: error: using template type parameter 'Protocol' after 'struct' | |
/home/emiel/mac/include/boost/asio/detail/socket_option.hpp:92: error: using template type parameter 'Protocol' after 'struct' | |
/home/emiel/mac/include/boost/asio/detail/socket_option.hpp:99: error: using template type parameter 'Protocol' after 'struct' |
This file contains 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
<Schema name="TestSchema"> | |
<Cube name="TestCube" caption="Caption" cache="false" enabled="true"> | |
<Table name="SolarData"></Table> | |
<Dimension type="StandardDimension" name="Time"> | |
<Hierarchy hasAll="true"> | |
<Level name="Year" column="time" type="String" uniqueMembers="true"> | |
<KeyExpression><SQL dialect="generic"><![CDATA[extract(year from time)]]></SQL></KeyExpression> | |
<NameExpression><SQL dialect="generic"><![CDATA[extract(year from time)]]></SQL></NameExpression> | |
</Level> | |
<Level name="Month" column="time" type="String" uniqueMembers="false"> |
OlderNewer