This file contains hidden or 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
| diff --git a/get_reverse_geocode.js b/get_reverse_geocode.js | |
| index d334008..27a8e0c 100644 | |
| --- a/get_reverse_geocode.js | |
| +++ b/get_reverse_geocode.js | |
| @@ -9,7 +9,9 @@ module.exports = function(latitude, longitude, language = 'zh-TW') { | |
| latlng: `${latitude},${longitude}`, | |
| language: language | |
| }, function(err, body) { | |
| - if (body.status != 'OK') { | |
| + if (err) { |
This file contains hidden or 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 TelegramBot = require('node-telegram-bot-api'); | |
| const telegramBot = new TelegramBot('YOUR_BOT_TOKEN', { polling: true }); | |
| const responses = [ | |
| '因為工讀生沒有香蕉吃,所以罷工了!', | |
| '工讀生罷工,但工讀生不說', | |
| '哎呀!我眼睛業障重', | |
| '假的!', | |
| '工讀生也是會累的好嗎' | |
| ]; |
This file contains hidden or 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 fs = require('fs'); | |
| let content = fs.readFileSync(process.argv[2], 'utf-8'); | |
| let lines = content.split('\n'); | |
| lines.pop(); | |
| lines.forEach(function(line) { |
This file contains hidden or 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
| [ ]#1 妙蛙種子 Bulbasaur | |
| [ ]#2 妙蛙草 Ivysaur | |
| [v]#3 妙蛙花 Venusaur | |
| [ ]#4 小火龍 Charmander | |
| [ ]#5 火恐龍 Charmeleon | |
| [v]#6 噴火龍 Charizard | |
| [ ]#7 傑尼龜 Squirtle | |
| [ ]#8 卡咪龜 Wartortle | |
| [v]#9 水箭龜 Blastoise | |
| [ ]#10 綠毛蟲 Caterpie |
This file contains hidden or 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
| [ ]#1 妙蛙種子 Bulbasaur | |
| [ ]#2 妙蛙草 Ivysaur | |
| [v]#3 妙蛙花 Venusaur | |
| [ ]#4 小火龍 Charmander | |
| [v]#5 火恐龍 Charmeleon | |
| [v]#6 噴火龍 Charizard | |
| [ ]#7 傑尼龜 Squirtle | |
| [v]#8 卡咪龜 Wartortle | |
| [v]#9 水箭龜 Blastoise | |
| [ ]#10 綠毛蟲 Caterpie |
This file contains hidden or 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
| [ ]#1 妙蛙種子 Bulbasaur | |
| [ ]#2 妙蛙草 Ivysaur | |
| [v]#3 妙蛙花 Venusaur | |
| [ ]#4 小火龍 Charmander | |
| [ ]#5 火恐龍 Charmeleon | |
| [v]#6 噴火龍 Charizard | |
| [ ]#7 傑尼龜 Squirtle | |
| [ ]#8 卡咪龜 Wartortle | |
| [v]#9 水箭龜 Blastoise | |
| [ ]#10 綠毛蟲 Caterpie |
This file contains hidden or 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
| #!/bin/sh | |
| help=false | |
| args=$* | |
| while [ $# -ne 0 ] | |
| do | |
| arg="$1" | |
| case "$arg" in |
This file contains hidden or 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
| javascript: var h=window.location.pathname; var a=document.createElement('a'); h=h.replace('b/', ''); a.href='http://osu.uu.gl'+h; a.rel='noreferrer'; a.click(); |
This file contains hidden or 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
| diff --git a/package.json b/package.json | |
| index 11f7945..fd6b5a9 100644 | |
| --- a/package.json | |
| +++ b/package.json | |
| @@ -40,7 +40,16 @@ | |
| "webpack-dev-server": "^1.12.1" | |
| }, | |
| "dependencies": { | |
| + "css-loader": "^0.23.1", | |
| + "file-loader": "^0.8.5", |
This file contains hidden or 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
| diff --git a/include/linux/compiler-gcc5.h b/include/linux/compiler-gcc5.h | |
| new file mode 100644 | |
| index 0000000..9d3fda3 | |
| --- /dev/null | |
| +++ b/include/linux/compiler-gcc5.h | |
| @@ -0,0 +1,30 @@ | |
| +#ifndef __LINUX_COMPILER_H | |
| +#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead." | |
| +#endif | |
| + |
NewerOlder