Skip to content

Instantly share code, notes, and snippets.

View lloyd's full-sized avatar

Lloyd Hilaiel lloyd

View GitHub Profile
==1634== Memcheck, a memory error detector
==1634== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==1634== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==1634== Command: ./main
==1634==
==1634== Use of uninitialised value of size 8
==1634== at 0x404F31: Yajl::Encoder::GenerateMapOpen() (Encoder.cpp:114)
==1634== by 0x400FAE: main (main.cpp:9)
==1634== Uninitialised value was created by a stack allocation
==1634== at 0x400F28: main (main.cpp:7)
--- lookup ---
1000000
real 0m0.086s
user 0m0.090s
sys 0m0.000s
--- switch ---
1000000
real 0m0.088s
--- lookup ---
1000000
0.17 real 0.15 user 0.00 sys
--- switch ---
1000000
0.21 real 0.21 user 0.00 sys
--- strpbrk ---
1000000
0.94 real 0.94 user 0.00 sys
--- strpbrk_asm ---
--- lookup ---
1000000
real 0m0.068s
user 0m0.065s
sys 0m0.002s
--- switch ---
1000000
real 0m0.083s
Two equivalent ways to define a schema that is an "open" array:
{
"type": "array",
"items": [ ],
"additionalProperties": true
}
or
union confusion: these are equivalent:
{
"type": [ "string", "integer" ],
"minLength": 10,
"minimum": 7
}
{
"type": [
# -*- makefile -*-
!if "$(srcdir)" != ""
WIN32DIR = $(srcdir)/win32
!elseif "$(WIN32DIR)" == "win32"
srcdir = .
!elseif "$(WIN32DIR)" == "$(WIN32DIR:/win32=)/win32"
srcdir = $(WIN32DIR:/win32=)
!else
srcdir = $(WIN32DIR)/..
[lth@lappro bp-ruby] $ ../bpsdk/bin/ServiceRunner -providerPath src/build/RubyInterpreter tests/FileChecksum/
service initialized: FileChecksum v1.0.10
> help
Available commands:
allocate [0 args]: Allocate a new service instance....
describe [0 args]: Extract and display the API description of the ser...
destroy [1 arg]: Destroy a service instance, the single required pa...
help [0-1 args]: Displays command usage. help <command> gives more...
invoke [1-2 args]: Invoke a function on a service instance. First ar...
prompts [0 args]: Show the outstanding user prompts that have been s...
VER=1.0.9 && git archive --format tar --prefix yajl-$VER/ -o ../yajl-$VER.tar $VER && gzip ../yajl-$VER.tar
[lth@clover service_dev]$ git show-branch
! [-f] Merge branch 'master' of browserplus.org:borg
! [beta] change cpp tutorial link text
* [master] add yahoo search key authentication
---
+ [beta] change cpp tutorial link text
+* [master] add yahoo search key authentication
+ [beta~2] rename current cpp_services.md to cpp_tutorial.md
+ [beta~3] attempt to link to Service Versioning info
+ [beta~4] add some quotes