简单的Processing倒计时器,在Mac OSX 10.11.5 和 Processing 3.0.1环境下测试可用,不过目测什么系统都可以用就是了= =
This file contains hidden or 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
def isTrue(cond): | |
toCheck = str(cond) | |
trueStr = "True" | |
currIndex = 0 | |
if len(toCheck) != len(trueStr): | |
return False | |
for c in toCheck: | |
if c != trueStr[currIndex]: | |
return False | |
currIndex += 1 |
This file contains hidden or 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
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <string.h> | |
struct entry_s { | |
char *key; | |
char *value; |
This file contains hidden or 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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>RSA Test</title> | |
<script src="http://peterolson.github.com/BigInteger.js/BigInteger.min.js"></script> | |
</head> | |
<body> | |
<script> | |
// Copyright Jun Zheng / 版权所有 Jun Zheng |
This file contains hidden or 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
<img class="alignnone size-full wp-image-28" src="http://whatscodecn.me/wp-content/uploads/2016/11/cover-1.png" alt="cover" width="884" height="499" /> | |
计算机科学教室入门篇,第二课。 | |
input(),变量,Memory Model,Debug | |
Bilibili:<a href="http://www.bilibili.com/video/av7191464/">http://www.bilibili.com/video/av7191464/</a> | |
这次的练习: | |
<ul> |
This file contains hidden or 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
\documentclass{article} | |
\usepackage{fullpage} | |
\usepackage{textcomp} | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amsthm} | |
\usepackage{hyperref} | |
\usepackage{fancyhdr} |
<div class="index-panel-pic-post-container" id="index-panel-pic-post-container">
<div id="index-panel-pic-post-container-scrollable">
<div class="index-panel-pic-post-container-block"></div>
<div class="index-panel-pic-post-container-block"></div>
<div class="index-panel-pic-post-container-block"></div>
<div class="index-panel-pic-post-container-block"></div>
<div class="index-panel-pic-post-container-block"></div>
<div class="index-panel-pic-post-container-block"></div>
This file contains hidden or 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 Jun Zheng All Rights Reserved, this gist is licenced under Creative Common Attribute International | |
#Jun Zheng 版权所有,保留所有权利 此Gist使用Creative Common Attribute International授权 | |
import random | |
f = string.join(open("word.list").readlines()).split() | |
print(random.choice(f)) |
This file contains hidden or 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
when greenflag clicked | |
set jumping to 0 | |
set jumpFrame to 1 | |
set jMultiplier to 20 | |
set gMultiplier to 2 | |
delete all of boxCollision | |
add 50 to boxCollision | |
add 40 to boxCollision | |
forever | |
calcGrav |