Skip to content

Instantly share code, notes, and snippets.

View chebizarro's full-sized avatar

Chris Daley chebizarro

View GitHub Profile
@chebizarro
chebizarro / Dia3 User Stories.md
Last active August 29, 2015 14:23
Dia3 User Stories

Dia3 User Stories

The user starts the application by launching it

The user starts the application by opening a single file

The user starts the application by opening multiple files

The user starts the application from the command line with no arguments

@chebizarro
chebizarro / libvalaleak.vala
Last active October 12, 2015 15:21
A simple test to show the memory leak from the Vala Compiler called via libvala
public static void parse (string[] args) {
Vala.Parser parser = new Vala.Parser ();
Vala.CodeContext context = new Vala.CodeContext();
parser.parse (context);
Vala.CodeContext.push(context);
foreach (var path in args)
if (path.has_suffix (".vala") || path.has_suffix (".vapi") || path.has_suffix (".gs"))
context.add_source_file (new Vala.SourceFile (context, Vala.SourceFileType.SOURCE, path));
@chebizarro
chebizarro / test_framework_input.md
Last active January 11, 2016 15:06
Vala Testing Framework input

Framework Input

Gherkin

Gherkin is a language for structuring human language in a way that allows business analysts, developers and testers to define features of an application.

Some computer languages have tools available to developers to convert Gherkin to an outline of a computer program. The following meaningless

example shows the structure. This uses PHP's Behat to convert Gherkin to PHP:

@chebizarro
chebizarro / properties.vala
Last active January 13, 2016 16:02
How to ignore a property if it is the same
public class PropertyDemo : Object {
/* Property-backing fields */
private string _name;
private string _read_only;
/* Properties */
public string automatic { get; set; }
@chebizarro
chebizarro / gist:240a79913e373ecfd1d0
Created March 3, 2016 00:27
Jenkins-debian-glue build error
Started by upstream project "valadate-1.0-binaries" build number 47
originally caused by:
Started by user Chris Daley
[EnvInject] - Loading node environment variables.
Building remotely on docker-slave in workspace /home/build/workspace/valadate-1.0-binaries/architecture/i386
[WS-CLEANUP] Deleting project workspace...
Docker container 1468fcee8aefff56bb7b55db54935e684d34724474217044aec134d31fd4ba77 started to host the build
Copied 3 artifacts from "valadate-1.0-source" build number 9
$ docker -H tcp://10.0.0.129:4243 exec --tty 1468fcee8aefff56bb7b55db54935e684d34724474217044aec134d31fd4ba77 env
[i386] $ docker -H tcp://10.0.0.129:4243 exec --tty --user 1001:jenkins 1468fcee8aefff56bb7b55db54935e684d34724474217044aec134d31fd4ba77 env architecture=i386 BUILD_CAUSE=UPSTREAMTRIGGER BUILD_CAUSE_UPSTREAMTRIGGER=true BUILD_DISPLAY_NAME=#47 BUILD_ID=47 BUILD_NUMBER=47 BUILD_TAG=jenkins-valadate-1.0-binaries-architecture=i386-47 BUILD_URL=http://10.0.0.128:8080/job/valadate-1.0-binaries/architecture=i386/47/ CLASSPA
@chebizarro
chebizarro / gist:2b9f1487ed402c35cd2c
Last active March 4, 2016 09:46
jenkins debian glue error
gpgv: Signature made Fri Mar 4 09:28:49 2016 UTC using RSA key ID 4BFE7F51
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./valadate_1.0+0~20160304092839.3~1.gbp2ea73e.dsc
dpkg-source: info: extracting valadate in valadate-1.0+0~20160304092839.3~1.gbp2ea73e
dpkg-source: info: unpacking valadate_1.0+0~20160304092839.3~1.gbp2ea73e.tar.xz
I: Building the package
W: no hooks of type A found -- ignoring
I: Running cd tmp/buildd/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" dpkg-buildpackage -us -uc -sa -sa -rfakeroot
dpkg-buildpackage: source package valadate
dpkg-buildpackage: source version 1.0+0~20160304092839.3~1.gbp2ea73e
[indent=4]
uses
Gtk
init
Gtk.init (ref args)
var app = new Application ()
app.show_all ()
Gtk.main ()
TAP version 13
# random seed: R02S43ae10f6f9aee7104af34cfed9614014
1..17
# Environment
# AM_TAP_AWK : mawk
# G_DEBUG : gc-friendly
# HOSTNAME : fedora
# MALLOC_CHECK_ : 2
# TERM : xterm
# MAKEFLAGS : w -- TEST_LOGS=testexe-0.log
TAP version 13
# random seed: R02S0006a01b56eb3a32d746d02f164c232d
1..17
# Environment
# HOSTNAME : fedora
# TERM : xterm
# DUALCASE : 1
# LC_ALL : en_US.UTF-8
# USER : developer
# PATH : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin