Skip to content

Instantly share code, notes, and snippets.

@psiska
psiska / GtkSourceView-5.gir
Created November 1, 2021 10:16
GtkSourceView-5.gir for GtkSourceView-5.2.0 (as in Arch Linux)
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="Gtk" version="4.0"/>
<package name="gtksourceview-5"/>
ffff88080cbc9e40 3897841376 S Ci:3:052:0 s 80 06 0100 0000 0012 18 <
ffff88080cbc9e40 3897841523 C Ci:3:052:0 0 18 = 12010002 00000040 6a051803 01010102 0001
ffff8806aae1d600 3897841579 S Ci:3:052:0 s 80 06 0600 0000 000a 10 <
ffff8806aae1d600 3897841707 C Ci:3:052:0 -32 0
ffff8806aae1d600 3897841758 S Ci:3:052:0 s 80 06 0600 0000 000a 10 <
ffff8806aae1d600 3897841837 C Ci:3:052:0 -32 0
ffff8806aae1d600 3897841883 S Ci:3:052:0 s 80 06 0600 0000 000a 10 <
ffff8806aae1d600 3897841984 C Ci:3:052:0 -32 0
ffff8806aae1d600 3897842000 S Ci:3:052:0 s 80 06 0200 0000 0009 9 <
ffff8806aae1d600 3897842134 C Ci:3:052:0 0 9 = 09025400 03010080 32
@psiska
psiska / gist:8915705
Created February 10, 2014 13:15
Problem with Mustache parboiled2 parser
import org.parboiled2._
import scala.util.{ Success, Failure }
trait AST
case class AText(in: String) extends AST
case class AKey(in: String) extends AST
case class AEnd() extends AST
class MustacheParser(val input: ParserInput) extends Parser {
@psiska
psiska / ScalaMeter_orientdb.scala
Last active December 16, 2015 22:39
OrientDB ScalaMeter example
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx
import com.orientechnologies.orient.core.record.impl.ODocument
import org.scalameter.api._
object DBTest extends PerformanceTest.Quickbenchmark {
import OUtils._ //custom DB helper - setups the database
val sequence = Gen.range("sequence")(0, 10, 1)
val names = Gen.enumeration("names")("ferko", "jozko", "duri", "alica", "betar", "kuchar", "lopata", "kon")