Skip to content

Instantly share code, notes, and snippets.

View grogancolin's full-sized avatar

Colin Grogan grogancolin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grogancolin on github.
  • I am cgrogan (https://keybase.io/cgrogan) on keybase.
  • I have a public key ASAJrRc4SAmcpSl4fv9zIT7BdSskRoM873wO1Ww5uoofogo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am grogancolin on github.
  • I am cgrogan (https://keybase.io/cgrogan) on keybase.
  • I have a public key ASBfkEllvTtYog7Mwk2zix3mELcZWFW0kDqV1f8WyA0-jgo

To claim this, I am signing this object:

uuid ( RO) : 2e25b163-6efd-dd28-3c12-bcd8affd5245
name-label ( RW): Ubuntu Lucid Lynx 10.04 (64-bit)
name-description ( RW): Template that allows VM installation from Xen-aware Debian-based distros. To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path>
user-version ( RW): 1
is-a-template ( RW): true
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
uuid ( RO) : 53fbab5e-b7a1-513d-d09f-91ea186a49b6
name-label ( RW): Ubuntu Trusty Tahr 14.04
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
user-version ( RW): 1
is-a-template ( RW): true
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
uuid ( RO) : c847d77a-af68-07e7-1bba-07f805de8181
name-label ( RW): Ubuntu Precise Pangolin 12.04 (64-bit)
name-description ( RW): Template that allows VM installation from Xen-aware Debian-based distros. To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path>
user-version ( RW): 1
is-a-template ( RW): true
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
void main(){
import std.stdio;
auto nodeI = new Node!(int)([1,2,3]);
auto nodeF = new Node!(float)([1f,2f,3f]); /+ fails with error:
$ dmd test.d
test.d(26): Error: function literal __lambda4 (int t) is not callable using argument types (float)
/Library/D/dmd/src/phobos/std/algorithm/iteration.d(480): instantiated from here: MapResult!(__lambda1, float[])
test.d(26): instantiated from here: map!(float[])
test.d(4): instantiated from here: Node!(float, __lambda4)
import std.stdio;
import core.runtime;
void main(string[] args){
int x;
int[] xs;
for(int i = 0; i< 50; i++){
x = x+i;
xs ~= x;
}
writefln("X is %s", x);