A few days ago I tweeted and profile-posted this message:
靜雞雞咁我走啦,好似我靜雞雞咁嚟,fing 一 fing 件衫,唔拎走一舊雲。 嗰棵榆樹下面潭水,唔係泉水而係彩虹,喺藻葉之間搓碎,將彩虹咁既夢整沉左
Yes, I am serious about this message. I am leaving (very soon).
| #!/usr/bin/env python3 | |
| """ | |
| This script aims at converting an image to the custom format used by Remarkable 2 | |
| After running this script, move the output "splash.dat" file to /var/lib/uboot in the rM2 device | |
| I tried this with PNG images but I guess other formats should work too since I use PIL | |
| Syntax: ./main.py <file> [-x xOffset] [-y yOffset] | |
| (-x and -y are the offsets of the image on the screen. If not set, the image will be centered on the screen) | |
| Input images may need to be rotated 90 degrees before converting them | |
| Licence: MPL 2.0 | |
| """ |
| # Reference http://www.linuxlinx.com/2016/08/fix-no-wireless-on-macbook-after.html | |
| # Removing bcmwl-kernel-source package, then reboot. | |
| sudo apt-get remove --purge bcmwl-kernel-source | |
| sudo reboot | |
| # Installing new broadcom firmware. | |
| sudo apt-get install firmware-b43-installer | |
| # Reaload package. |
| const express = require('express'); | |
| var app = express(); | |
| var hbs = require('hbs'); | |
| var i18n = require("i18n"); | |
| var _ = require('lodash'); | |
| app.set('view engine', 'hbs'); | |
| // Available languages | |
| let locales = ['es', 'de', 'en', 'fr', 'it']; |
| Country, Language, Total, Has Ranking, CI Build Ok, Total %, Has Ranking %, CI Build Ok % | |
| Global, All, 2520, 2405, 2027, 100,00 %, 100,00 %, 100,00 % | |
| Global, Java, 551, 526, 458, 21,87 %, 21,87 %, 22,59 % | |
| Global, Python, 525, 505, 446, 20,83 %, 21,00 %, 22,00 % | |
| Global, C# / Mono, 334, 319, 290, 13,25 %, 13,26 %, 14,31 % | |
| Global, JavaScript, 251, 235, 211, 9,96 %, 9,77 %, 10,41 % | |
| Global, C++, 184, 183, 152, 7,30 %, 7,61 %, 7,50 % | |
| Global, C, 141, 127, 113, 5,60 %, 5,28 %, 5,57 % | |
| Global, Ruby, 98, 95, 81, 3,89 %, 3,95 %, 4,00 % |
| # 這個時候檔案都已經做完,想要放到 Github 上 | |
| josephj@cockatoo /var/www/josephj/frontend/lab/2012/qt-webkit $ % git init . | |
| Initialized empty Git repository in /var/www/josephj/frontend/lab/2012/qt-webkit/.git/ | |
| # Github 的 Repo 也已經開好了 (已經產生好 README.md) | |
| josephj@cockatoo /var/www/josephj/frontend/lab/2012/qt-webkit $ % git remote add origin git@github.com:miiicasa/tv-apps-html.git | |
| # 先試著從 Github 上抓東西下來 | |
| josephj@cockatoo /var/www/josephj/frontend/lab/2012/qt-webkit $ % git pull | |
| remote: Counting objects: 3, done. |
| #!/usr/bin/env php | |
| <?php | |
| $app = function($request) { | |
| $body = <<<EOS | |
| <!DOCTYPE html> | |
| <html> | |
| <meta charset=utf-8> | |
| <title>Hello World!</title> |