#include <stdio.h>
#include <string.h>
#include <assert.h>
/*
* Implements http://stackoverflow.com/a/25541929/466611
*/
static inline unsigned int test1(int n)
/* | |
* This is a simple sample of a CUDA C program for Duan Dinglong, | |
* By Pengyu CHEN (pengyu[at]libstarrify.so) | |
* COPYLEFT, ALL WRONGS RESERVED. | |
* | |
* usage: nvcc vec_add_test.cu && time ./a.out GPU 1000000 | |
*/ | |
#include <cuda.h> |
# Contributor: Peter Baldwin <bald_pete@hotmail.com> | |
# Contributor: Eduardo Robles Elvira <edulix AT gmail DOT com> | |
# Contributor: Pengyu CHEN <cpy.prefers.you[at]gmail.com> | |
pkgname=python2-recaptcha-client | |
pkgver=1.0.6 | |
pkgrel=1 | |
pkgdesc="Provides a CAPTCHA for Python using the reCAPTCHA service" | |
license="MIT" | |
url="http://pypi.python.org/pypi/recaptcha-client" |
#!/usr/bin/env python2 | |
#-*- coding:utf-8 -*- | |
# This is solver for problem passcode in BCTF2014 | |
# See http://bctf.cn/problems/4 | |
# By Pengyu CHEN (cpy.prefers.you[at]gmail.com) | |
# COPY LEFT, ALL WRONGS RESERVED. | |
import base64 | |
import binascii |
/* | |
Button | |
Turns on and off a light emitting diode(LED) connected to digital | |
pin 13, when pressing a pushbutton attached to pin 2. | |
The circuit: | |
* LED attached from pin 13 to ground | |
* pushbutton attached to pin 2 from +5V |
文档参见 http://bottlepy.org/docs/dev/stpl.html | |
如下是那个SimpleTemplageEngine的一个示例 | |
如下文件被保存在template/flight/oneway.tpl 其中单个百分号开头的行是内嵌的python代码 | |
----start of template/flight/oneway.tpl------- | |
Oneway flight~<br> | |
<div id="flights"> | |
%if flights: | |
% for item in flights: | |
<div><strong>{{item['fn']}}</strong> : {{item}}</div> |