$ sudo apt-get update
$ sudo apt-get install unzip wget
$ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
$ unzip ngrok-stable-linux-amd64.zip
$ sudo mv ./ngrok /usr/bin/ngrok
$ ngrok
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"image/color" | |
"math" | |
"github.com/hajimehoshi/ebiten" | |
"github.com/hajimehoshi/ebiten/ebitenutil" | |
"github.com/jaxi/motion" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (c) 2017 Yami Odymel | |
// This code is licensed under MIT license. | |
package main | |
import ( | |
"fmt" | |
"html" | |
"strconv" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ubuntu-512mb-sgp1-01:~/go/src/github.com/tidwall/buntdb-benchmark# ./buntdb-benchmark -q | |
GET: 535450.80 operations per second | |
SET: 80733.26 operations per second | |
ASCEND_100: 276894.21 operations per second | |
ASCEND_200: 160524.62 operations per second | |
ASCEND_400: 66931.87 operations per second | |
ASCEND_800: 39054.33 operations per second | |
DESCEND_100: 370292.73 operations per second | |
DESCEND_200: 188601.49 operations per second | |
DESCEND_400: 108451.81 operations per second |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Defaults] | |
"PalmKms7"=dword:00000000 | |
"PalmKms6"=dword:00000000 | |
"PalmKms5"=dword:00000000 | |
"PalmKms4"=dword:00000000 | |
"PalmKms3"=dword:00000000 | |
"PalmKms2"=dword:00000000 | |
"PalmKms1"=dword:00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button { | |
--text-color : #333; | |
--background-color : #F5F5F5; | |
--background-hover-color: #EEE; | |
} | |
button.primary { | |
--text-color : #FFF; | |
--background-color : #348CEE; | |
--background-hover-color: #3186E4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require("puppeteer"); | |
// scrapeResults 會將頁面上的結果元素統整出我們要的資料結構。 | |
async function scrapeResults(page) { | |
return await page.evaluate(() => | |
Array.from(document.querySelectorAll(".section-result"), function (e) { | |
return { | |
// title 是店家標題。 | |
title: e.querySelector(".section-result-title")?.textContent, | |
// rating 是店家評分。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspired by https://gist.github.com/rjnienaber/af47fccb8410926ba7ea35f96c3b87fd | |
# remove bundled ImageMagick | |
sudo apt remove imagemagick -y | |
# install base dependencies | |
sudo apt-get install -y \ | |
build-essential \ | |
libde265-dev \ | |
libdjvulibre-dev \ |