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
// ==UserScript== | |
// @name 啪啪啪研習所無限看2.1 | |
// @namespace https://knowlet.me/ | |
// @version 0.2 | |
// @description 繞過前端付費會員驗證 | |
// @author knowlet | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js | |
// @match https://jav101.com/play/* | |
// ==/UserScript== |
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
--withborder | |
--center FJU NISRA | |
--center Bash Intro | |
--author Denny Huang | |
--date today |
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
// https://stucis.ttu.edu.tw/academic/ascoresbj.php | |
var regex = /^(\u62B5|\(?-?[0-9]{1,3}\)?)$/ | |
var totalPoints = 0; | |
var totalCredit = 0; | |
var nums = [].slice.call(document.querySelectorAll('td')) | |
.filter(function(e){ return regex.test(e.textContent); }) | |
.map(function(num, idx ,arr){ | |
var b = Number(num.innerHTML); | |
if (idx % 2 === 1) { | |
var a = Number(arr[idx-1].innerHTML); |
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
server { | |
listen 80; | |
root /var/www/html/$subdomain; | |
index index.php index.html index.htm; | |
server_name ~^(?<subdomain>.+).knowlet.me$; | |
location / { | |
try_files $uri $uri/ =404; |
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
/* 河道上的噗 */ | |
.plurk_cnt { | |
/* 設定噗跟預設一樣大小的圓角 */ | |
border-radius: 0 0 10px 10px; | |
/* 調整成跟展開一樣寬 */ | |
min-width: 380px; | |
} | |
.response_time.plurk_cnt { | |
/* 110 + 10 + 2 */ | |
min-width: 122px; |
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
var table = document.querySelector("table"); | |
var source = document.querySelector("td[align] img").src.slice(0, -7); | |
var pages = Number(location.pathname.slice(-11, -8)); | |
for (var i = 2; i <= pages; ++i) { | |
var row = table.insertRow(i+3); | |
row.align="center"; | |
var cell = row.insertCell(0); | |
var page = ("000"+i).substr(-3); | |
cell.innerHTML = '<img src="' + source + page + '.jpg" border="0" onload="if(this.width>screen.width) {this.resized=true; this.width=screen.width*0.96;}">'; | |
} |
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
$(".sl-block-content").click(function (e){ | |
if (this.innerHTML=="") { | |
var URL = prompt("Please input the image src") | |
URL && $(this).append('<img src="' + URL + '">') | |
} | |
}) |
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/bash | |
USER=knowlet | |
git remote add -f $1 https://github.com/$USER/$1.git | |
git merge -s ours --no-commit $1/master | |
git read-tree --prefix=$1/ -u $1/master | |
git commit -m "Subtree merged in $1" |
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
// ==UserScript== | |
// @name auto99 | |
// @namespace http://knowlet.me/ | |
// @version 0.1 | |
// @description auto pagging for 99comic | |
// @author knowlet | |
// @match http://www.99comic.com/comics/* | |
// @grant none | |
// ==/UserScript== | |
var a = document.querySelector(".cHeadNav") |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define KEYMAXLEN 64 | |
void printKey(int c) | |
{ | |
char bits[4]; | |
char *buffer; | |
int i = 0; | |
while (c != -1) { |