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
.marquee { | |
@apply flex-1 flex overflow-hidden; | |
} | |
.marquee .marquee-inner { | |
@apply truncate flex-1; | |
} | |
.marquee.marquee-active .marquee-inner { | |
@apply flex-none; |
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
// Copyright (c) 2021 Wen-Zhi (Alexander) Wang <[email protected]> | |
// SPDX-License-Identifier: MIT | |
import { useRef } from 'react'; | |
function assert(mayBeFunction) { | |
if (typeof mayBeFunction !== 'function' && mayBeFunction != null) { | |
console.log(mayBeFunction); | |
throw new Error( | |
'It is now allowed to pass in a thing that is not a function, ' + |
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
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 agent = require("superagent") | |
var domain = "https://timetable.nctu.edu.tw/"; | |
var searchUrl = "?r=main/get_cos_list"; | |
var academicYear = "109"; | |
var semester = "1"; | |
var courseNumber = "1144"; | |
agent | |
.post(domain + searchUrl) |
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
// Useful references: | |
// https://www.npmjs.com/package/eslint-config-react-app | |
// https://github.com/facebook/create-react-app/blob/master/packages/eslint-config-react-app/index.js | |
// https://medium.com/@dors718/linting-your-react-typescript-project-with-eslint-and-prettier-2423170c3d42 | |
const path = require('path') | |
module.exports = { | |
root: true, // Prevent looking for config all the way up in parent directories | |
env: { // Enable environment-specific global variables |
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
#!/bin/bash | |
duration=$1 | |
cwd=$2 | |
start_time=$(date +%G.%m.%d-%H:%M) | |
rtmpdump \ | |
-r rtmp://fms-base2.mitene.ad.jp/agqr/aandg333 -v -B "${duration}" \ | |
-o "${cwd}/agqr_${start_time}+${duration}s.flv" |
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
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf | |
playerfile="/tmp/player.swf" | |
keyfile="/tmp/authkey.png" |
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
.theme-dark { | |
--text-accent: hsla(250, 54%, 65%, 1); | |
--text-accent-hover: hsla(248, 71%, 72%, 1); | |
} | |
body { | |
--font-monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace, Courier; | |
} | |
.markdown-preview-view code { |
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
#!/bin/bash | |
# Login NCTU | |
UA="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" | |
BASE_URL="https://dorm.nctu.edu.tw" | |
PATH="/cgi-bin/ace_web_auth.cgi?web_jumpto=&orig_referer=www.google.com" | |
read -p "Student ID : " username | |
read -p "NCTU Portal Password : " password |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"parser": "@typescript-eslint/parser", | |
"plugins": [ | |
"@typescript-eslint" |
NewerOlder