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
<script id="template-ask18" type="text/template"> | |
<div class="bbs-screen bbs-content"> | |
<div class="over18-notice"> | |
<p>本網站已依網站內容分級規定處理</p> | |
<p>警告︰您即將進入之看板內容需滿十八歲方可瀏覽。</p> | |
<p>若您尚未年滿十八歲,請點選離開。若您已滿十八歲,亦不可將本區之內容派發、傳閱、出售、出租、交給或借予年齡未滿18歲的人士瀏覽,或將本網站內容向該人士出示、播放或放映。</p> | |
</div> | |
</div> | |
<div class="bbs-screen bbs-content center clear"> | |
<div class="over18-button-container"> |
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
document.querySelector('button[name="yes"]').addEventListener('click', e => { | |
e.preventDefault(); | |
document.cookie = 'over18=1; path=/'; | |
location = document.querySelector('input[name="from"]').value; | |
}, false); | |
document.querySelector('button[name="no"]').addEventListener('click', e => { | |
e.preventDefault(); | |
location = '/'; | |
}, false); |
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 set = new Set(['gossiping', 'sex']); | |
const pathname = location.pathname; | |
const tokens = pathname.split('/'); | |
if (tokens.length < 3) { | |
return; | |
} |
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
{ | |
"af": "Afrikaans", | |
"am": "Amharic", | |
"ar": "Arabic", | |
"az": "Azerbaijani", | |
"be": "Belarusian", | |
"bg": "Bulgarian", | |
"bn": "Bengali", | |
"bs": "Bosnian", | |
"ca": "Catalan", |
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 | |
$targets = array_slice($argv, 1); | |
foreach ($targets as $target) { | |
$map = array(); | |
foreach (explode("\n", file_get_contents($target)) as $line) { | |
if (isset($map[$line]) === true) { | |
continue; | |
} |
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 | |
$path = call_user_func(function() { | |
global $argv; | |
return isset($argv[1]) === true ? | |
$argv[1] : | |
'.'; | |
}); | |
function findJSONFiles($path) { |
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
[ | |
[ | |
"CN:zh-Hans", | |
"中文 | 中国", | |
"CN", | |
"zh-Hans" | |
], | |
[ | |
"TW:zh-Hant", | |
"中文 | 台灣", |
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
Afghanistan | AF | AFG | |
---|---|---|---|
Aland Islands | AX | ALA | |
Albania | AL | ALB | |
Algeria | DZ | DZA | |
American Samoa | AS | ASM | |
Andorra | AD | AND | |
Angola | AO | AGO | |
Anguilla | AI | AIA | |
Antarctica | AQ | ATA | |
Antigua and Barbuda | AG | ATG |
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> | |
<head> | |
<title>WAV Header</title> | |
<script> | |
var buildWaveHeader = function(opts) { | |
var numFrames = opts.numFrames, | |
numChannels = opts.numChannels || 2, | |
sampleRate = opts.sampleRate || 44100, | |
bytesPerSample = opts.bytesPerSample || 2, |
NewerOlder