Skip to content

Instantly share code, notes, and snippets.

View Kakadu's full-sized avatar

Dmitrii Kosarev Kakadu

  • (ex-)JetBrains Research
  • Saint-Petersburg, Russia
View GitHub Profile
@Kakadu
Kakadu / gist:1238249
Created September 23, 2011 19:37
F# compiler crash
fslex clexer.fsl
compiling to dfas (can take a while...)
361 states
writing output
fsharpc --noframework --nologo --target:library --out:bin/Debug/Lexer.dll --mlcompatibility -r:/usr/lib/fsharp/FSharp.Core.dll -r:/usr/lib/mono/4.0/mscorlib.dll -r:/usr/lib/mono/4.0/System.dll -r:/usr/lib/fsharp/FSharp.PowerPack.dll -r:/usr/lib/fsharp/FSharp.PowerPack.Compatibility.dll -r:/usr/lib/fsharp/FSharp.PowerPack.Build.Tasks.dll LexingStub.fs pretty.fs errormsg.fs cabs.fs cabshelper.fs whitetrack.fs lexerhack.fs \
Tokens.fs clexer.fs Lexer.fs
server error: System.IndexOutOfRangeException: Array index is out of range.
Server stack trace:
at Microsoft.FSharp.Compiler.Ast+XmlDocCollector.LinesBefore (pos grabPointPos) [0x00000] in <filename unknown>:0
@Kakadu
Kakadu / FSharpBinding.addin.xml
Created February 28, 2012 14:09
FSharpBinding.addin.xml
<Addin id="FSharpBinding" namespace="MonoDevelop" name="F# Language Binding"
author="Community" copyright="???" url="http://www.fsharp.net"
description="F# Language Binding" category="Language bindings" version="2.8">
<Runtime>
<Import assembly="FSharpBinding.dll" />
<Import assembly="FSharpBinding.Gui.dll" />
</Runtime>
<Dependencies>
@Kakadu
Kakadu / addin.info
Created February 28, 2012 14:10
addin.info
я╗┐<?xml version="1.0" encoding="utf-8"?>
<Addin id="FSharpBinding" namespace="MonoDevelop" name="F# Language Binding" author="Community" copyright="???" url="http://www.fsharp.net" description="F# Language Binding" category="Language bindings" version="2.8" flags="None">
<Runtime>
<Import assembly="FSharpBinding.dll" />
<Import assembly="FSharpBinding.Gui.dll" />
</Runtime>
<Dependencies>
<Addin id="Core" version="2.8" />
<Addin id="Ide" version="2.8" />
<Addin id="SourceEditor2" version="2.8" />
@Kakadu
Kakadu / main.ml
Created March 1, 2012 19:58
parsing yaml
open Core
open Sexplib.Conv
module List = Core.Core_list
module String = Core.Core_string
let (|>) a f = f a
(*
let read_all_lines ch =
let lines = ref [] in
@Kakadu
Kakadu / gist:2359311
Created April 11, 2012 13:32
debugging QBS
$ cat project.qbp
import qbs.base 1.0
Project {
moduleSearchPaths: "."
Application {
name: "helloworld"
files: ["main.cpp", "a.ml"]
Depends { name: "Qt.core" }
Depends { name: "cpp" }
$ cat project.qbp
import qbs.base 1.0
Project {
moduleSearchPaths: "."
Application {
name: "helloworld"
files: ["code.ml"]//, "gamemap.cpp", "main.cpp" ]
Depends { name: "Qt.core" }
Depends { name: "cpp" }
@Kakadu
Kakadu / opam.log
Created February 9, 2013 08:47
opam log after executing opam.byte install core.109.08.00
[18180] 18180 locking /home/kakadu/.opam/lock
[18180] FILE(config) read /home/kakadu/.opam/config
[18180] 18180 unlocking /home/kakadu/.opam/lock
[18180] STATE LOAD-STATE(switch-lock)
[18180] STATE load_state root=/home/kakadu/.opam cached=true
[18180] FILE(config) read /home/kakadu/.opam/config
[18180] FILE(aliases) read /home/kakadu/.opam/aliases
[18180] FILE(comp) read /home/kakadu/.opam/compilers/system.comp
[18180] FILE(repo-config) read /home/kakadu/.opam/repo/default/config
[18180] FILE(repo-index) read /home/kakadu/.opam/repo/index
$ make
make clone
make[1]: Entering directory `/media/disk/kakadu/prog/ocaml/opam'
make -C src_ext
make[2]: Entering directory `/media/disk/kakadu/prog/ocaml/opam/src_ext'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/media/disk/kakadu/prog/ocaml/opam/src_ext'
make[1]: Leaving directory `/media/disk/kakadu/prog/ocaml/opam'
make compile
make[1]: Entering directory `/media/disk/kakadu/prog/ocaml/opam'
kakadu ~/opam
$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
GRANT ALL PRIVILEGES ON DATABASE traktor TO kakadu;
SET client_encoding = 'UTF8';
drop table if exists users ;
create table users (
id integer not null,
nick text not null,
friends int[] not null default '{}',
post_ids int[] not null default '{}',