Skip to content

Instantly share code, notes, and snippets.

View liquidx's full-sized avatar

Alastair Tse liquidx

View GitHub Profile
module.exports = [
{
root: true,
env: {
node: true,
browser: true,
es2017: true
},
extends: [
"eslint:recommended",
@liquidx
liquidx / filter-tokyo-geojson.js
Created June 14, 2022 00:06
Filter tokyo.geojson to remove all islands
const fs = require("fs");
// https://github.com/dataofjapan/land/blob/master/tokyo.geojson
const tokyo = JSON.parse(fs.readFileSync("tokyo.geojson"));
const tokyoMainland = {
type: "FeatureCollection",
features: [],
};
@liquidx
liquidx / imx7-README.md
Last active April 29, 2024 20:19
Reflashing a TechNexion PICO-PI-IMX7

By: Alastair Tse @liquidx

Updated: 2021-12-05

This is a guide for installing Linux on a Technexion NXP IMX7 board. This is a board that was part of the Android Things Starter Kit (now discontinued).

There are some dead ends in this guide where I got to a point where I failed. I'm documenting this so that it can help anyone else who is trying the same thing.

Before starting, there are a few useful sources of information:

@liquidx
liquidx / greasemonkey_rakuten_simple.js
Last active November 27, 2020 04:56
greasemonkey_rakuten_simple.js
// ==UserScript==
// @name Simplify Rakuten.co.jp
// @namespace https://gist.github.com/liquidx/c5dfe2759de48a1f98a3a1b0a08daa11
// @version 0.2
// @description Remove promotional (PR) content from item pages on rakuten.co.jp 楽天市場は簡単になる
// @author @liquidx
// @include https://item.rakuten.co.jp/*
// @grant none
// ==/UserScript==
<div class="vocab1 shadow">{{furigana:Vocab}}</div>
<div class="vocab2 shadow">{{Vocab English}}</div>
<div id="example">
<p>{{#Sentence J}}{{furigana:Sentence J}}{{/Sentence J}}</p>
<p>{{#Sentence E}}{{Sentence E}}{{/Sentence E}}</p>
</div>
<div id="info">
{{#PoS}}<p>{{PoS}}</p>{{/PoS}}
<div class="buttons">
<a class="button" href="http://jisho.org/search/{{Vocab Kanji}}">jisho</a>
<a class="button" href="http://dictionary.goo.ne.jp/srch/all/{{Vocab Kanji}}/m0u/">泉</a>
<a class="button" href="https://www.wanikani.com/vocabulary/{{Vocab Kanji}}">wkv</a>
<div class="clear"></div>
</div>
<div class="vocab1 shadow">{{furigana:Vocab}}</div>
<div class="vocab2 shadow">{{Vocab English}}</div>
{{#VocabAudioCardYes}}
<div class="sentence1 shadow audio">
Playing ... &nbsp;
<span id="vu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</span>
<div class="buttons">
<a class="button" href="http://jisho.org/search/{{Vocab Kanji}}">jisho</a>
<a class="button" href="http://dictionary.goo.ne.jp/srch/all/{{Vocab Kanji}}/m0u/">泉</a>
<a class="button" href="https://www.wanikani.com/vocabulary/{{Vocab Kanji}}">wkv</a>
<div class="clear"></div>
</div>
<div class="vocab1 shadow">{{kanji:Vocab}}</div>
<div class="sentence1 shadow">{{furigana:Sentence J}}</div>
<div class="sentence2 shadow">{{Sentence E}}</div>
{{#Vocab}}
<div id="example">
<p>{{furigana:Vocab}} - {{#Vocab English}}{{Vocab English}}{{/Vocab English}}</p>
</div>
{{/Vocab}}
<div id="info">
{{#SentenceAudioCardYes}}
<div class="sentence1 shadow audio">
Playing ... &nbsp;
<span id="vu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</span>