Skip to content

Instantly share code, notes, and snippets.

View arthurlee's full-sized avatar

Arthur Lee arthurlee

  • Capgemini
  • Shanghai, China
View GitHub Profile
@csaez
csaez / blackjack.py
Created June 1, 2013 11:54
Interactive Programming in Python - Mini-project #6 - "Blackjack"
# Mini-project #6 - Blackjack
#
# 'Introduction to Interactive Programming in Python' Course
# RICE University - coursera.org
# by Joe Warren, John Greiner, Stephen Wong, Scott Rixner
import simplegui
import random
# load background sprite
@whoshuu
whoshuu / curlget.cpp
Created March 31, 2015 06:44
Example libcurl GET request
#include <curl/curl.h>
#include <string>
size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) {
data->append((char*) ptr, size * nmemb);
return size * nmemb;
}
int main(int argc, char** argv) {
auto curl = curl_easy_init();