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
child = function(obj,name){ | |
for( var index in obj){ | |
switch(typeof obj[index]) { | |
case "object": child(obj[index],name+"."+index);break; | |
case "string": console.log(name+"."+index+" = \"" + obj[index] + "\"");break; | |
case "number": console.log(name+"."+index+" = " + obj[index]);break; | |
case "boolean": console.log(name+"."+index+" = \""+ (obj[index]) ? "true":"false" + "\"");break; | |
} | |
} | |
} |
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 | |
// A simple function to delete a folder recursively. Very danger! Watch out! | |
// PHP用遞迴把資料夾給砍掉,殺傷力強大,請謹慎使用。 | |
// V1.1 use readdir() instead of glob() for better non-english file name support in php4 | |
// source unknown, modified by Jason Chiang | |
// xcojad at gmail.com | |
$folder_name="PEAR"; | |
$folder_name="upload"; |
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/sh -e | |
#git-cache-meta -- simple file meta data caching and applying. | |
#Simpler than etckeeper, metastore, setgitperms, etc. | |
# 2014-02-25 change filetime from accessed time to modifpeied time by cojad | |
# 2012-03-05 - added filetime, andris9 | |
#modified by n1k | |
# - save all files metadata not only from other users | |
# - save numeric uid and gid | |
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 |
NewerOlder