Skip to content

Instantly share code, notes, and snippets.

View jvelo's full-sized avatar
🦉
transient

Jerome Velociter jvelo

🦉
transient
View GitHub Profile
Visit https://robwu.nl/crxviewer/
Paste the extension's chrome store URL in the input box
Click "Open in this viewer", then click the CRX link the top right menu.
Drag & Drop the CRX file in chromium
brew install transmission
defaults write org.m0k.transmission rpc-whitelist "127.0.0.*,192.168.*.*"
defaults write org.m0k.transmission rpc-port 9901
brew services start transmission
Postgres SQLite
to_json json_quote
json_agg json_group_array
json_build_object json_object
Verifying my Blockstack ID is secured with the address 12mcm3uUE5PiB84AptcH1P51dpdRgf3Jrm https://explorer.blockstack.org/address/12mcm3uUE5PiB84AptcH1P51dpdRgf3Jrm
Verifying that +jvelociter is my blockchain ID. https://onename.com/jvelociter

Keybase proof

I hereby claim:

  • I am jvelo on github.
  • I am jvelo (https://keybase.io/jvelo) on keybase.
  • I have a public key whose fingerprint is 077B 117D 4615 BBE9 BD1B EB16 AB45 669B 87D2 00A1

To claim this, I am signing this object:

Comparison of the size of some of java JSON mapping libraries

Artifact Size
org.json:json:20141113 64 KB
org.glassfish:javax.json:1.0.4 84 KB + 20KB (javax.json:javax.json-api)
com.fasterxml.jackson.jr:jackson-jr-all:2.6.0 327 KB
com.fasterxml.jackson.core:jackson-databind:2.6.0 1.2 MB + 253KB (com.fasterxml.jackson.core:jackson-core:2.6.0) + 46 KB (com.fasterxml.jackson.core:jackson-annotations:2.6.0)
com.google.code.gson:gson:2.3.1 206 KB
com.googlecode.json-simple:json-simple:1.1.1 24 KB
@jvelo
jvelo / ngtap.js
Created April 15, 2014 13:03
A better ng-tap
myapp.directive("ngTap", ['$parse', function($parse) {
return {
link: function ($scope, $element, $attributes) {
var fun = $parse($attributes["ngTap"])
if (!('ontouchstart' in document.documentElement)) {
$element.bind("click", function (event) {
return $scope.$apply(function () {
fun($scope, {$event: event});
});
});
@jvelo
jvelo / Endpoints
Last active January 4, 2016 19:09
Catalog API design
GET /api/products/my-tshirt
GET /api/products/my-tshirt/features/
GET /api/products/my-tshirt/features/size/
GET /api/products/my-tshirt/features/size/xs
GET /api/products/my-tshirt/features/color/red
GET /api/products/my-tshirt/variants/
GET /api/products/my-tshirt/variants/xs-red
PUT /api/products/my-tshirt/features/size/xs
POST /api/products/my-tshirt/features/color/ -> 201 created /api/products/my-tshirt/features/color/yellow
@jvelo
jvelo / oraclejre6.pp
Created January 15, 2014 14:50
Oracle Java 6 via puppet
class oraclejre6 {
apt::source { 'webupd8team':
location => 'http://ppa.launchpad.net/webupd8team/java/ubuntu',
release => 'precise',
repos => 'main',
required_packages => 'debian-keyring debian-archive-keyring',
key => 'EEA14886',
key_server => 'keyserver.ubuntu.com',
pin => '-10',