Skip to content

Instantly share code, notes, and snippets.

View frankier's full-sized avatar

Frankie Robertson frankier

View GitHub Profile
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
rm -rf testproj
mkdir -p testproj
# Default Conda
R_HOME="*" julia --project=testproj -e "using Pkg; Pkg.develop(path=\"$RCALL_PATH\"); Pkg.build(\"RCall\")"
julia --project=testproj -e 'using Pkg; Pkg.add(["CondaPkg", "Libdl", "PreferenceTools"])'
@frankier
frankier / gist:0b5334d07df07e596bac7ad8dcda2fbb
Created September 23, 2021 13:58
backports vendor import problem pyproject.toml
[tool.poetry]
name = "testproj"
version = "0.1.0"
description = ""
authors = ["Frankie Robertson <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
"backports.csv" = "1.0.7"
@frankier
frankier / linodebind.bash
Created February 27, 2021 07:11
Export BIND-like formatting from linode-cli
linode-cli domains records-list $DOMAINID --json | jq -r '.[] | select(.type="A") | "\(if .name == "" then "@" else .name end)\tIN\t\(.type)\t\(if .type == "MX" then "\(.priority)\t" else "" end)\(.target)"'
import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
Comlink.transferHandlers.set("WORKERSQLPROXIES", {
canHandle: obj => false,
serialize(obj) {
const { port1, port2 } = new MessageChannel();
Comlink.expose(obj, port1);
return [port2, [port2]];
},
deserialize: (port) => {
Processing wns/als/wn-data-als.tab
Processing wns/arb/wn-data-arb.tab
Processing wns/bul/wn-data-bul.tab
Processing wns/cow/wn-data-cmn.tab
Unknown offset in wns/cow/wn-data-cmn.tab:
15178842-n cmn:lemma 回历
Should it be 15178841 (moved by 1)?
Unknown offset in wns/cow/wn-data-cmn.tab:
15171858-n cmn:lemma 存取时间
import click
from os.path import join as pjoin
POS_MAP = {
'a': 'adj',
'r': 'adv',
'n': 'noun',
'v': 'verb',
}
= Asteroids =
An Asteroids clone created by porting Asteroids.hs (:link:)
This is not a faithful clone. The only way to control the ship is to shoot
by clicking somewhere on the play field. This will move the ship due to
kickback.
The program starts with a chapter to set up the global state and draw
the initial canvas followed by a the main game chapter and finishing with
a game over screen chapter.
@frankier
frankier / es6 module loader nodelibs-stream traceback
Created March 9, 2015 11:57
es6 module loader nodelibs-stream traceback
inherits_browser.js:6 Uncaught TypeError: Object prototype may only be an Object or null: undefinedinherits_browser.js:6 inherits_stream_readable.js:16 (anonymous function)_stream_readable.js:609 (anonymous function)_stream_readable.js:611 (anonymous function)system.src.js:2256 doEvalsystem.src.js:2222 __evalsystem.src.js:335 asystem.src.js:1160 $__global.upgradeSystemLoader.e.instantiate.cjs.n.metadata.format.n.metadata.executesystem.src.js:667 fsystem.src.js:636 csystem.src.js:671 (anonymous function)readable.js:3 (anonymous function)readable.js:11 (anonymous function)system.src.js:2256 doEvalsystem.src.js:2222 __evalsystem.src.js:335 asystem.src.js:1160 $__global.upgradeSystemLoader.e.instantiate.cjs.n.metadata.format.n.metadata.executesystem.src.js:667 fsystem.src.js:636 csystem.src.js:671 (anonymous function)index.js:6 (anonymous function)index.js:75 (anonymous function)system.src.js:2256 doEvalsystem.src.js:2222 __evalsystem.src.js:335 asystem.src.js:1160 $__global.upgradeSystemLoader.e.instantiate.cjs.
<?php if (!preg_match('|^/_|', $_SERVER['REQUEST_URI'])): ?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<script>
"use strict";
var last_url, next_url;
var app = angular.module('app', []).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.when('/:url', {
templateUrl: function(url) {