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://kktix.com/users/edit | |
$('#user_place_id').val($('#user_place_id option:contains(臺灣)').attr('value')); |
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
var fileInputStr = "<input type='file' class='ignore' id='" + fileUploadId + "' name='" + s.fileName + "' accept='" + s.acceptFiles + "'/>"; | |
if(s.multiple) { | |
if(s.fileName.indexOf("[]") != s.fileName.length - 2) // if it does not endwith | |
{ | |
s.fileName += "[]"; | |
} | |
fileInputStr = "<input type='file' class='ignore' id='" + fileUploadId + "' name='" + s.fileName + "' accept='" + s.acceptFiles + "' multiple/>"; | |
} |
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
.scroll-text { | |
border: 1px solid red; | |
width: 400px; | |
height: 4.5em; | |
overflow: hidden; | |
} | |
.scroll-text ul { | |
width: 800px; | |
height: 100px; | |
overflow: hidden; |
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
/** | |
* Hello world | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
_grb() | |
{ | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
local verb=${COMP_WORDS[1]} | |
local position=${COMP_CWORD} | |
if [[ "$verb" == "explain" ]]; then | |
let "position = $position - 1" | |
fi |
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
;----------------------------- | |
sub put | |
putStart: | |
set %putType DWJ ;ores | |
gosub putType | |
set %putType UWS ;perfect emerald | |
gosub putType | |
set %putType GXS ;blue diamond | |
gosub putType | |
set %putType AXS ;dark sapphire |
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
javascript:document.body.onselectstart=function() {};document.body.ondragstart=function() {};void(0); |
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
; Mining | |
initEvents | |
scriptStart: | |
move 2576 479 0 | |
set %TX 443 | |
set %TY 277 | |
gosub Mining | |
move 2568 488 0 |
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
//-- change iframe height and width | |
//child: <body onload="getIframeSize()"> | |
//for child | |
function getIframeSize() { | |
if (document.getElementById){ | |
var t = document.getElementById("t"); | |
try { | |
parent.wh("loginForm", t.offsetWidth, t.offsetHeight); | |
} catch (e) { |
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
/* | |
* Decimal > Custom | |
* | |
* Parameters: | |
* $num - your decimal integer | |
* $base - base to which you wish to convert $num (leave it 0 if you are providing $index or omit if you're using default (62)) | |
* $index - if you wish to use the default list of digits (0-1a-zA-Z), omit this option, otherwise provide a string (ex.: "zyxwvu") | |
*/ | |
function dec2any($num, $base=62, $index=FALSE) { | |
if (!$base) { |