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
# 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 | |
###解壓縮 | |
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
<?php | |
class ItemGroupController extends Controller | |
{ | |
/** | |
* Lists all ItemGroup entities. | |
* | |
* @Route("/", name="api_itemgroup") | |
* @Method("GET") |
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 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); |
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
/** | |
* 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", |
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
<?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 |
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 recognition = new webkitSpeechRecognition(); | |
recognition.lang = "zh-TW"; | |
recognition.continuous = true; | |
recognition.interimResults = true; | |
recognition.onresult = function(event) { | |
console.log(event.results); | |
} | |
recognition.start(); |
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 msg = new SpeechSynthesisUtterance('Hello World'); | |
window.speechSynthesis.speak(msg); | |
voices = speechSynthesis.getVoices(); | |
msg.voice = voices[index]; | |
window.speechSynthesis.speak(msg); |
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 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; |
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
<?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; |
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
<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]); |
OlderNewer