Skip to content

Instantly share code, notes, and snippets.


Yu-Jie Lin livibetter

View GitHub Profile
livibetter / No_Vodcasts.user.js
Last active Sep 25, 2017
Twitch: No Vodcasts
View No_Vodcasts.user.js
// ==UserScript==
// @name No Vodcasts
// @namespace
// @include*
// @version 1
// @grant none
// ==/UserScript==
function check_stream(stream)
View README.rst

All the files in this repository are licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

You might also want to check out the scripts.

livibetter / COPYING
Last active Aug 1, 2019
Copyright (c) 2017 Yu-Jie Lin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
SALL=($(egrep '^s(\w).*\1.*\1$' "$DICT"))
livibetter /
Created Jul 14, 2017
show test scripts for animated figures with blit, imshow, axis and text in Matplotlib
#!/usr/bin/env python3
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np
# patch for ax.xaxis
# 1. ax.xaxis.set_animated(True)
# 2. add ax.xaxis to the returning list of update function
livibetter /
Created Jul 4, 2017
element-wise addition on two lists
#!/usr/bin/env python3
from timeit import timeit
NUMBER = 1000
ELEMENTS = 10000
SETUP = 'N = {}; X = list(range(N)); Y = list(range(N))'.format(ELEMENTS)
SETUP_NP = 'N = {}; import numpy as np; X = np.arange(N); Y = np.arange(N)'.format(ELEMENTS)
$ ping -i 10 -D |
sed -un '/\[/ s/\[\([0-9]\+\).* time=\([0-9.]\+\).*/\1 \2/p' |
tee ping-
$ ping -i 10 -D |
sed -un '/\[/ s/\[\([0-9]\+\).* time=\([0-9.]\+\).*/\1 \2/p' |
tee ping-
$ ./ping.gnu && sxiv ping-168.95.png
livibetter / UNLICENSE
Last active Nov 26, 2016
cheating in the Battle for Wesnoth
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
livibetter / MOVED
Last active Jan 15, 2017 watches for GitHub projects
View MOVED [1] has been moved to GitHub.
livibetter / streaming
Created May 1, 2016
streaming script for Twitch and YouTube
View streaming
# Written by Yu-Jie Lin in 2016
# Adopted from
# With guides
LOG_OPTS='-loglevel warning -stats'
You can’t perform that action at this time.