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 club.kid7.bannermaker.util; | |
import org.bukkit.util.io.BukkitObjectInputStream; | |
import org.bukkit.util.io.BukkitObjectOutputStream; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.util.Base64; |
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
import pandas as pd | |
from codetiming import Timer | |
timer_dfs = [] | |
for timer_name in Timer.timers: | |
timer_dfs.append(pd.DataFrame({ | |
'timer': timer_name, | |
'count': Timer.timers.count(timer_name), | |
'total': Timer.timers.total(timer_name), | |
'min': Timer.timers.min(timer_name), |
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
# Start session and run htop and nvtop | |
tmux new-session \; splitw -v -p 50 'htop' \; selectp -t 1 \; splitw -h -p 50 'nvtop' \; selectp -t 1 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Image drawing with canvas</title> | |
</head> | |
<body> | |
<input type="file" name="fileChooser" id="fileChooser" accept="image/jpeg"><br /> | |
<canvas width="400" height="300" id="canvas" /> |
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
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c 'echo "{} : $(find "{}" -type f | wc -l)" file\(s\)' \; |
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
lastlog -b 90 | tail -n+2 | grep -v 'Never log' | |
lastlog -b 90 | tail -n+2 | grep -v '從未登入過' | |
lastlog -b 90 | tail -n+2 | grep -v '\*\*' |
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
[Unit] | |
Description=Jupyterhub | |
After=syslog.target network.target | |
[Service] | |
User=root | |
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" | |
ExecStart=/usr/local/bin/jupyterhub -f /etc/jupyterhub/jupyterhub_config.py | |
[Install] |
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
// ==UserScript== | |
// @name BukkitDev Redirect | |
// @namespace https://gist.github.com/jyhsu2000 | |
// @version 1.0 | |
// @description Redirect old url of bukkit to new one | |
// @author KID | |
// @include http://dev.bukkit.org/server-mods/* | |
// @include https://dev.bukkit.org/server-mods/* | |
// @grant none | |
// @run-at document-start |
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
<?php | |
//https://github.com/laravel/framework/issues/2093#issuecomment-39154456 | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use Illuminate\Database\Eloquent\Relations\Pivot; | |
class User extends Eloquent { | |
public function groups() { | |
return $this->belongsToMany('Group'); |
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
@font-face { | |
font-family: DSEG7-Classic; | |
src: url(https://cdn.rawgit.com/keshikan/DSEG/8a05bd89/fonts/DSEG7-Classic/DSEG7Classic-Regular.woff2) format('woff2'),url(https://cdn.rawgit.com/keshikan/DSEG/8a05bd89/fonts/DSEG7-Classic/DSEG7Classic-Regular.woff) format('woff'),url(https://cdn.rawgit.com/keshikan/DSEG/8a05bd89/fonts/DSEG7-Classic/DSEG7Classic-Regular.ttf) format('truetype'); | |
font-weight: 200; | |
} | |
#updater .item a { | |
background-color: #fb0047; | |
color: white; | |
} |
NewerOlder