Skip to content

Instantly share code, notes, and snippets.

Olivier Tharan olive42

Block or report user

Report or block olive42

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@olive42
olive42 / cloudSettings
Last active Sep 3, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-03-23T15:01:05.134Z","extensionVersion":"v2.9.0"}
@olive42
olive42 / json-slurper.groovy
Created Jan 31, 2017
JsonSlurper parses wrong JSON
View json-slurper.groovy
Groovy Shell (2.4.7, JVM: 1.8.0_121)
Type ':help' or ':h' for help.
---------------------------------------------------------------------------------------------------------------------------------------
groovy:000> import groovy.json.JsonSlurper
===> groovy.json.JsonSlurper
groovy:000> import groovy.json.JsonParserType
===> groovy.json.JsonSlurper, groovy.json.JsonParserType
groovy:000> parser = new JsonSlurper().setType(JsonParserType.INDEX_OVERLAY)
===> groovy.json.JsonSlurper@36060e
groovy:000> parser.parseText('''\
@olive42
olive42 / oth-split-and-balance.el
Created Jun 8, 2012
Emacs Lisp: split frame in 3 balanced windows horizontally
View oth-split-and-balance.el
(defun oth-split-and-balance ()
"Split frame in 3 balanced windows horizontally."
(interactive)
(split-window-horizontally)
(split-window-horizontally)
(balance-windows))
(global-set-key [f5] 'oth-split-and-balance)
You can’t perform that action at this time.