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 selenium import webdriver | |
from selenium.common.exceptions import TimeoutException | |
import selenium.webdriver.support.wait | |
selenium.webdriver.support.wait.POLL_FREQUENCY = 0.05 | |
import re | |
import random | |
import collections | |
class AdwordsAutomater(object): |
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 StringIO | |
import time | |
import pycurl | |
import stem.control | |
from stem.util import term | |
import stem.process | |
# Static exit for us to make 2-hop circuits through. Picking aurora, a |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
SCRIPT=substitute.sh | |
for f in * | |
do | |
if [ $f = $SCRIPT ] | |
then | |
echo "skip $f" | |
continue |
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
while true; do | |
sh mine.sh | |
sleep 10 | |
done |
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 main() { | |
auto f = File("name.bin", "wb"); | |
string raw = "hai"; | |
f.write(raw); | |
} |
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> | |
__global__ void cube(float * d_out, float * d_in){ | |
int idx = threadIdx.x; | |
float f = d_in[idx]; | |
d_out[idx] = f * f * f; | |
} | |
int main(int argc, char ** argv) { | |
const int ARRAY_SIZE = 64; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
stu_id = 'your student id' | |
username = password = 'use your own credential, hint: 00xxxxx' | |
host = '10.14.101.169' | |
login_url = 'http://10.14.101.169/LogOn' | |
lab_url ='http://10.14.101.169/TA/lab/Edit/114' | |
check_url = 'http://10.14.101.169/QianDao' |
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
#!/usr/bin/python | |
# - * - coding: UTF-8 - * - | |
# Copyright (C) 2010 Upsuper <quanxunzhen@gmail.com> | |
# License: AGPLv3 | |
from threading import Thread, Lock | |
from httplib import HTTPConnection | |
import urllib | |
import cgi, json |
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
class Window_Hello < Window_Base | |
def initialize | |
super(380 , 20, 220, 60) | |
self.contents = Bitmap.new(width - 32, height - 32) | |
@time = 0 | |
end | |
def update | |
if @time == 0 | |
self.contents.clear |
NewerOlder