0eNq1XUtzm8lu/SsuLZKN6dvvxyyTRbapZJVKTd2iZV6bNRSloqS5mdzSfw81EqVPMtB9DqisZsYeng+NfgCNBg7+cfF1d7+5OWz3d3/9en3928Uv/3j9k9uLX/578Z+Pf7e9vN4//fHt9vt+vXv8s7s/bjYXv1xs7zZXF58v9uurx/+6vdxu9peb1c368reVv3j4fLHdf9v8z8Uv/uEz9+Ow+HF4+PXzxWZ/t73bbp7E+PM//vjr/v7q6+ZwRH/BWN/ebq6+7rb776ur9eWP7X5zRPp8cXN9e/zx9f7x20fAVfl88cfxH/4o1sVhc7m9Eb//03cC+51o+04kv+Nsn0nkZ4yjyeRnjJNTXhfS1Xq3W212m8u7w/ZydXO92whzU58+0x8ErPqCtd3fbg53xz9TF5EI0F4A7g7r/e3N9eFu9XWzu9Nh2nG037bH8T79XRBA+wvo7vqowh/r4/b4thpImE4SvoFOArR3LHbGsT2ujAQrwwccNeOokVxFYbAIfEKWURwhZHyQAR9kwVEjjlrZJeTxJYTvJ4cL3HE1eBg1OGDSR6smeADAjwDwnYGvmRBhUEJXidtto60SMrn88MMx4PsFP79ChUHxPRgasHZGdiuwNgY3A9HBA8ZNYsRtC24EYuCW5ciTiPi+qbiAr/vm79fX3zb71eWPza10brUnzHLE/Lo+KGiZdlYKIOPrpvnb+vZuZAeqCFok0Eq7EhUQtdGuBILaEeufTmOX/HNHyyXjeNqLAMaXAu1FIKhGB0weeGJdkiguRek4S5l1SZDRF9olQVAr6xAgoI11CBDQzkoKnETZseYbkDR71nwjoIGVFBl+ZCVFQBNrd5
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
// https://xss-game.appspot.com/level6 | |
alert(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
.chosen-select { | |
width: 100%; } | |
.chosen-select-deselect { | |
width: 100%; } | |
.chosen-container { | |
display: inline-block; | |
font-size: 14px; | |
position: relative; |
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
7 4 5 | |
1 3 1 | |
3 2 2 | |
2 3 5 | |
3 4 4 | |
1 6 6 |
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
//: Playground - noun: a place where people can play | |
import Darwin | |
var prime = [2, 3, 5, 7] | |
func isPrime(num: Int) -> Bool { | |
let primeMax = Int(floor(sqrt(Double(num)))) | |
for i in prime { | |
if i > primeMax { | |
break | |
} |
By 和風信使 ( @taichunmin )
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 | |
try { | |
$files = scandir('.'); | |
if(!is_array($files)) | |
throw new Exception('scandir error: '.var_export($files, true)); | |
foreach($files as &$file) | |
$file = iconv('cp950', 'utf-8//TRANSLIT', $file); | |
unset($file); | |
echo "Find What: "; |
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 | |
if(!function_exists('encode_json')) { | |
function encode_json( $var ) { | |
static $options = null; | |
if (is_null($options)) { | |
$options = 0; | |
if (version_compare(PHP_VERSION, '5.3.3') >= 0) | |
$options |= JSON_NUMERIC_CHECK; | |
if (version_compare(PHP_VERSION, '5.4.0') >= 0) |
現在的 Keyboard 通常會附多媒體鍵,不過預設值打開可能就是討人厭音質又差的 Windows Media Player。 如果我們希望這些鍵可以按下去是開啟我們想要的軟體,此時通常要裝 Driver,問題是有時候會找不到 Driver,那也沒關係,直接改機碼就可以囉,以下是說明:
- 先執行
regedit
- 機碼位於
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\
- 機碼位於
- 在其下加入數字機碼,代表對應的 AppKey 按鍵 (詳見對應表)
- 例:
16
就是Media
切換功能 - 要換掉的話可以先將原來的值備份
- 例: