Skip to content

Instantly share code, notes, and snippets.

@rusty-key
rusty-key / jsx2-wrapper.js
Last active May 20, 2019 16:44
jsx2 wrapper for jsx3 bindings
// requires node 12.*
const fs = require('fs')
const path = require('path')
const refmt = require('reason');
const dir = path.resolve(process.argv[2])
if (!fs.existsSync(dir)) {
console.error(`${dir} doesn't exist`);
return
@rusty-key
rusty-key / gist:67e78834649a1c4e8986a8fb91a29ff3
Created July 25, 2019 10:20 — forked from JT5D/gist:a2fdfefa80124a06f5a9
Google translate language codes
Eg. URL translating en page to es
http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com
Define the web interface language to be English by adding
hl=en to the end of the URL and after the change the URL will look
like this:
http://www.google.com/search?hl=en
When you use more than one setting code in the URL, you need to use
@rusty-key
rusty-key / vscode-merlin.md
Last active January 7, 2020 06:23
vscode merlin steps

here's current "from-scratch" setup:

  1. git clone git@github.com:arrowresearch/vscode-merlin.git
  2. Remove vendor source from bsconfig
  3. npm install && npm run package (yarn fails for some reason, didn't investigate), install extension
  4. Upgrade esy to 0.6: npm install -g @esy-nightly/esy
  5. Add esy.json to your project:
{
  "devDependencies": {
 "@opam/ocaml-lsp-server": "*",