Skip to content

Instantly share code, notes, and snippets.

View orinx's full-sized avatar

Orin Chen orinx

  • Taiwan - Taipei
View GitHub Profile
<?php
define('NICKNAME', 'abc');
define('PASSWORD', 'iamabc');
define('USER_ID', '123456');
$message = 'Hello World!';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
import datetime, threading
def get_time():
t = threading.Timer(1,get_time)
t.start()
r = datetime.datetime.today()
s = '{:02d}:{:02d}:{:02d}.{:3d}'.format(r.hour, r.minute, r.second, int(r.microsecond / 1000), '2s')
print(s)
get_time()
<?php
if(isset($_POST["us_email"]) && isset($_POST["us_pw"]) && $_POST["us_email"] != "" && $_POST["us_pw"] != ""){
try{
$chk = imap_open("{mail.ntou.edu.tw:110/pop3/novalidate-cert}INBOX",$_POST["us_email"],$_POST["us_pw"]);
}catch (Exception $e){
echo 'Caught exception: ', $e->getMessage(), "\n";
}
if($chk =="")
echo "Status : login failed";
else
@orinx
orinx / en-US.json
Created November 9, 2012 15:00 — forked from poying/en-US.json
Foxmosa 翻譯!
{
"foxmosa-title": "Foxmosa",
"moztw-name": "Mozilla Taiwan Community",
"foxmosa-name": "Foxmosa",
"menu-download": "Download",
"menu-forum": "Forum",
"menu-events": "Events",
"menu-wiki": "Wiki",
"menu-planet": "Planet",
"menu-contribute": "Join MozTW",