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
import os | |
local_dir = os.path.dirname(__file__) | |
abs_dir = os.path.join(os.getcwd(), local_dir) | |
if __name__ == "__main__": | |
print("Hello World!") |
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
if __name__ == '__main__': | |
main() |
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
- (void)variadic:(NSString*)strings, ... { | |
va_list lst; | |
NSString* each; | |
va_start(lst, strings); | |
while (each = va_arg(lst, NSString*)) { | |
[NSString stringWithString: each]; | |
} | |
va_end(lst); | |
} |
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
/* | |
* | |
* Author: ento | |
* | |
* Copyright (c) 2005-2008, Jaidev K Sridhar | |
* Released under the GPL license | |
* http://www.gnu.org/copyleft/gpl.html | |
*/ | |
// ==UserScript== |
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
/* This greasemonkey script automatically BCCs (or CCs) outgoing email from | |
* a gmail address to a specified email address | |
* | |
* Author: Jaidev K Sridhar mail<AT>jaidev<DOT>info | |
* | |
* Copyright (c) 2005-2008, Jaidev K Sridhar | |
* Released under the GPL license | |
* http://www.gnu.org/copyleft/gpl.html | |
*/ |
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
SLAVE STOP; | |
CHANGE master to master_log_file=Relay_Master_Log_File,master_log_pos=Exec_Master_Log_Pos; | |
SLAVE START; |
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
<html> | |
<head> | |
<meta id="viewport" name="viewport" content="width=320, height=500" /> | |
</head> | |
<body> | |
<div>Here comes an iframe.</div> | |
<iframe src="../336c3060c233f1662ad7461e0f0514543bc79093/included.html"> | |
</iframe> | |
<div>End of iframe.</div> | |
</body> |
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
import traceback, StringIO | |
fp = StringIO.StringIO() | |
traceback.print_exc(file=fp) | |
print fp.getvalue() |
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
(println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader)))) |
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 | |
for f in $@ | |
do | |
ctime=`stat -f "%SB" -t "%Y:%m:%d %H:%M:%S" "$f"` | |
exiv2 -k -M"set Exif.Image.DateTime Ascii $ctime" "$f" | |
done |
OlderNewer