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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#define NUM_OF_KEYWORDS 7 | |
#define BUFFER_SIZE 1000 | |
#define TOKEN_VALUE_SIZE 20 | |
typedef struct Token{ |
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
function getComments(shareId, ownerId, startCommentId){ | |
var count = 0; | |
function getComment(commentId){ | |
var data = { shareId: shareId, owner: ownerId, commentId: commentId } | |
data.md5 = XN.app.share.CommentManger.getOptions("shareUrlMd5"); | |
var xhr = new XN.net.xmlhttp({ | |
url: "http://share.renren.com/share/comment/moreurlcomment", | |
data: XN.array.toQueryString(data), |
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
object.use("net",function(net){ | |
function f(){ | |
new net.Request({ | |
url:"http://www.renren.com/bulletin/lottery",method:"post", | |
onSuccess:function(r){ | |
if (parseInt(r.responseText)==1){alert("终于抢到了。。")} | |
else{console.log("还没...");setTimeout(f,1000)} | |
}, | |
onError:function(){alert("网络错误,请稍后再试")} | |
}).send() |
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
/** | |
* Copyright 2011 wong2 <wonderfuly@gmail.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
#-*-coding:utf-8-*- | |
from cmd import Cmd | |
import os | |
import atexit | |
from user import User | |
import getpwd | |
import sys | |
# ls |
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
from __future__ import print_function | |
from threading import Timer | |
l = [8, 2, 4, 6, 7, 1] | |
for n in l: | |
Timer(n, lambda x: print(x), [n]).start() |
NewerOlder