Skip to content

Instantly share code, notes, and snippets.

View jgwill's full-sized avatar

Guillaume Descoteaux-Isabelle jgwill

View GitHub Profile
@jgwill
jgwill / json.lua
Created November 13, 2022 01:43 — forked from tylerneylon/json.lua
Pure Lua json library.
--[[ json.lua
A compact pure-Lua JSON library.
The main functions are: json.stringify, json.parse.
## json.stringify:
This expects the following to be true of any tables being encoded:
* They only have string or number keys. Number keys must be represented as
strings in json; this is part of the json spec.
@jgwill
jgwill / houBatch.py
Created November 21, 2019 02:59 — forked from crydalch/houBatch.py
houBatch helper script
"""
A simple script to kick off a certain ROP remotely, optionally
with a given framerange.
Usage: hython path/to/script/houBatch.py /path/to/hipfile /hou/path/to/rop
TODO: Add options for multiple ROPs, hperf.
"""
import hou, sys
@jgwill
jgwill / gulpfile.js
Created February 10, 2019 19:16 — forked from mulderu/gulpfile.js
gulp mustache browsersync
var gulp = require('gulp');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var include = require('gulp-include');
var mustache = require('gulp-mustache');
var cleanCSS = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync').create();
@jgwill
jgwill / 00-nc308-Mastery-Angular.md
Last active February 25, 2019 18:36 — forked from eweader/angular-setup.sh
Mastery Angular - App Setting up and experimentation documentation

Angular Material

Installing

# Easy nice way
@jgwill
jgwill / ZNotWorkingIn-Pythonista.py
Last active December 11, 2018 22:12 — forked from sirleech/gist:2660189
Python Read JSON from HTTP Request of URL
# Load Json into a Python object
import urllib2
import json
req = urllib2.Request("http://localhost:81/sensors/temperature.json")
opener = urllib2.build_opener()
f = opener.open(req)
json = json.loads(f.read())
print json
print json['unit']
@jgwill
jgwill / Fetch URL title - Node.js
Last active November 6, 2018 18:59 — forked from aharshac/Fetch URL title - Node.js
Node.js snippet to fetch URL title
/*@@@@
@a Fetch a uniform resource locator title using NodeJS
@d Nov 6, 2018 at 10:10 AM
@tlid 181106091002
@kw
@metatxt Automatic formatting of uniform of the service location when it is posted
@s Working
@CR
@ECR
@jgwill
jgwill / Mac OS X: Open in Visual Studio Code
Created October 15, 2018 18:27 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"