Skip to content

Instantly share code, notes, and snippets.

# PHP #
###下載 原始碼
$ wget http://tw2.php.net/distributions/php-5.3.8.tar.gz
$ wget http://xmlsoft.org/sources/libxml2-2.7.7.tar.gz
$ wget http://zlib.net/zlib-1.2.5.tar.gz
###解壓縮
<?php
class ItemGroupController extends Controller
{
/**
* Lists all ItemGroup entities.
*
* @Route("/", name="api_itemgroup")
* @Method("GET")
var n = document.createElement('script');
n.setAttribute('language', 'JavaScript');
n.setAttribute('src', 'https://cdn.rawgit.com/LewisGet/youtubeFunnyVideoList/demo/main.js?rand=' + new Date().getTime());
document.body.appendChild(n);
/**
* Coding By [email protected], [email protected]
*/
var ljComment = {
serverURI: "http://127.0.0.1:8000",
youtubeUI: {
commentInputId: "ytcb-text",
commentInputBoxId: "ytcb-root",
commentSendButtonId: "ytcb-reply",
<?php
$urls = <<<EOF
http://minecraft-zh.gamepedia.com/%E7%A9%BA%E6%B0%94
http://minecraft-zh.gamepedia.com/%E8%90%A4%E7%9F%B3%E5%9D%97
http://minecraft-zh.gamepedia.com/%E6%9C%AB%E5%9C%B0%E7%83%9B
http://minecraft-zh.gamepedia.com/%E8%8D%89%E4%B8%9B
http://minecraft-zh.gamepedia.com/%E6%B2%99%E7%A0%BE
http://minecraft-zh.gamepedia.com/%E6%B5%B7%E6%99%B6%E7%9F%B3
http://minecraft-zh.gamepedia.com/%E8%8F%8C%E4%B8%9D
var recognition = new webkitSpeechRecognition();
recognition.lang = "zh-TW";
recognition.continuous = true;
recognition.interimResults = true;
recognition.onresult = function(event) {
console.log(event.results);
}
recognition.start();
var msg = new SpeechSynthesisUtterance('Hello World');
window.speechSynthesis.speak(msg);
voices = speechSynthesis.getVoices();
msg.voice = voices[index];
window.speechSynthesis.speak(msg);
var real = new Float32Array(2);
var imag = new Float32Array(2);
var ac = new AudioContext();
var osc = ac.createOscillator();
real[0] = 0;
imag[0] = 0;
real[1] = 1;
imag[1] = 0;
<?php
$assetsDir = "/c/Users/lewis/AppData/Roaming/.minecraft/assets/objects";
$targetDir = "/c/Users/lewis/minecraft-assets";
// minecraft index version json
// eg : /c/Users/lewis/AppData/Roaming/.minecraft/assets/indexes/1.8.json
$json = <<<EOF
EOF;
<input type="file" id="file" />
<button onclick="window.fileLoad();">load</button>
<audio id="media" controls autoplay>
<source src="">
</audio>
<script>
window.getFileUrl = function () {
var url = URL.createObjectURL(window.file.files[0]);