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 "share1.h" | |
#include "share2.h" | |
#include "static.h" | |
int main() { | |
printf("hello world\n"); | |
int a = 4; | |
int b = 2; | |
printf ("a: %d, b: %d\n", a, b); |
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
(define (list-add lst1 lst2) | |
(define (iter a1 a2 carry ret) | |
(cond ((and (null? a1) (null? a2)) | |
(if carry | |
(append ret '(1)) | |
ret)) | |
((null? a1) | |
(if carry | |
(iter '(1) a2 #f ret) | |
(append ret a2))) |
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/zsh | |
i=0 | |
while [ $i -le 800 ]; do | |
echo trying the $i times... | |
i=$(($i + 1)) | |
md5=$(curl http://yuyang.co/game/\?width\=$i\&k\=0eb46665addf43389ae950050f787a45 | md5sum) | |
#echo $md5 | |
if [ "$md5" != "c92e32594fd6558d6e1df9ab77daca42 -" ]; then | |
echo width is found: $i | |
break |
NewerOlder