View badly_formatted.adb
with Text_IO,Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics;
use Text_IO,Ada.Numerics;
procedure Eutecticmain is
package Real_Io is new FLOAT_IO(Float);
use Real_Io;
package Integer_IO is new Text_IO.INTEGER_IO(Integer); use Integer_IO;
use Integer_Io;
package Elem_Fct is new Ada.Numerics.Generic_Elementary_Functions (Float);
View dynamic_allocation_experiment.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line;
with Ada.Containers.Vectors; use Ada.Containers;
package body Dynamic_Allocation_Experiment
is
type Side is (Left, Right);
package Side_Container is new Vectors (Natural, Side);
use Side_Container;
View unchecked_deallocation_experiment.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line;
with Ada.Unchecked_Deallocation;
package body Dynamic_Allocation_Experiment
is
type Side is (Left, Right);
type Side_Array is array (Integer range <>) of Side;
type Side_Array_Ptr is access Side_Array;
View pointer_via_string.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
int main(int argc, char *argv[], char *env[]) {
char *arena;
char hex[100];
char *target;
View gist:4a148b07cbfffed7bb3f
mk270@cornford ~/Src/word_generator> cargo build
Updating git repository `https://github.com/rust-lang/rand.git`
Downloading unicode-segmentation v0.1.0
Downloading regex v0.1.30
Compiling rustc-serialize v0.3.14
Compiling regex v0.1.30
Compiling libc v0.1.6
Compiling unicode-segmentation v0.1.0
Compiling rand v0.3.8 (https://github.com/rust-lang/rand.git#93544850)
Compiling word_generator v0.1.0 (file:///home/mk270/Src/word_generator)
View websocket_app.erl
%% Feel free to use, reuse and abuse the code in this file.
%% @private
-module(websocket_app).
-behaviour(application).
%% API.
-export([start/2]).
-export([stop/1]).
View ws_handler.erl
-module(ws_handler).
-behaviour(cowboy_websocket_handler).
-export([init/3]).
-export([websocket_init/3]).
-export([websocket_handle/3]).
-export([websocket_info/3]).
-export([websocket_terminate/3]).
init({tcp, http}, _Req, _Opts) ->
View rust-encoding-build.txt
mk270@cornford ~/Prog/rust/web1> rm -rf target; cargo clean; rm -f Cargo.lock; cargo build
Updating git repository `https://github.com/iron/cookie.git`
Updating git repository `https://github.com/DaGenix/rust-crypto.git`
Updating git repository `https://github.com/iron/iron.git`
Updating git repository `https://github.com/servo/rust-url.git`
Updating git repository `https://github.com/lifthrasiir/rust-encoding`
Updating git repository `https://github.com/chris-morgan/rust-http.git`
Updating git repository `https://github.com/sfackler/rust-openssl.git`
Updating git repository `https://github.com/chris-morgan/anymap.git`
Updating git repository `https://github.com/reem/rust-http-content-type.git`
View ocamlbuild-oasis-warn.txt
Note shell prompt appended to long last line
mk270@cornford ~/Src/iati-test> ocamlbuild src/driver.byte
Finished, 0 targets (0 cached) in 00:00:00.
Finished, 17 targets (17 cached) in 00:00:00.
W: Cannot get variable ext_objW: Cannot get variable ext_libW: Cannot get variable ext_dllW: Cannot get variable ocamlfindW: Cannot get variable ocamlfindW: Cannot get variable ocamlfindW: Cannot get variable ocamlfindW: Cannot get variable ocamlfindW: Cannot get variable ocamlfindmk270@cornford ~/Src/iati-test>
View gist:5408855

Install OCaml from source

  • download ocaml-4.00.1.tar.gz
  • tar zxvf path/to/ocaml-4.00.1.tar.gz
  • cd ocaml-4.00.1
  • ./configure -prefix $HOME
  • make world
  • make bootstrap
  • make opt