Skip to content

Instantly share code, notes, and snippets.

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
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))
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
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);
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
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
$ 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'
@EmielM
EmielM / schema.xml
Created December 16, 2010 11:17
Mondrian cube schema
<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">
traceroute to 130.89.254.233 (130.89.254.233), 64 hops max, 52 byte packets
1 router (192.168.1.1) 2.792 ms 1.361 ms 1.546 ms
2 82-197-205-65.dsl.cambrium.nl (82.197.205.65) 1.875 ms 3.482 ms 1.883 ms
3 fo1-ve395.nikhef.cambrium.net (217.19.16.113) 4.877 ms 5.007 ms 4.980 ms
4 fo1-ve395.nikhef.cambrium.net (217.19.16.113) 4.779 ms 6.927 ms 4.989 ms
5 xsr03.asd002a.surf.net (195.69.144.34) 5.395 ms 5.186 ms 5.370 ms
6 ae1.500.jnr01.asd001a.surf.net (145.145.80.70) 5.415 ms 5.237 ms 5.551 ms
7 utwente-router.customer.surf.net (145.145.4.2) 7.747 ms 7.859 ms 7.658 ms
8 linux059.routing.utwente.nl (130.89.254.233) 7.618 ms 7.545 ms 7.802 ms