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
/** | |
created by ali LIM | |
konglie [at] kurungkurawal.com | |
*/ | |
function showHide(max){ | |
console.clear(); | |
var table = $('table').get(8); | |
$('td:nth-child(2)', table).each(function(){ | |
var n = $(this).text().replace(/[^0-9]/g, '') * 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
$('input[name="contactdetails[Registrant][Name]"]').parents('fieldset').find('input') | |
.each(function(){ | |
var n =$(this).attr('name'); | |
var v = $(this).val(); | |
var a = ['Admin', 'Tech', 'Billing']; | |
for(var i in a ){ | |
var s = a[i]; | |
var sn = n.replace('Registrant', s); | |
$('input[name="' + sn + '"]').val(v); | |
} |
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
#!/bin/bash | |
# Copyright Konglie (lee@konglie.web.id) | |
# Script sederhana untuk menggabungkan seluruh file text dari berbagai jenis ekstensi file | |
# dalam satu folder menjadi 1 file. | |
# | |
# Cara penggunaaan | |
# nama_script folder_yang_ingin_diolah | |
# | |
# Contoh | |
# ./myscript MyProgramFolder |
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
#!/bin/bash | |
dt=$(mktemp); | |
xrandr &> "$dt"; | |
scr_size(){ | |
read width height <<<$(IFS="x";echo $1); | |
size=$(($width * $height)); | |
echo $size; | |
} |