Skip to content

Instantly share code, notes, and snippets.

View junzhengca's full-sized avatar
🥼
ummm.... weird....

Jun junzhengca

🥼
ummm.... weird....
View GitHub Profile
var x, resolution, susp;
prompt = prompt ? prompt.v : "";
x = Sk.inputfun(prompt);
if (x instanceof Promise) {
susp = new Sk.misceval.Suspension();
susp.resume = function() {
return new Sk.builtin.str(resolution);
@junzhengca
junzhengca / main.c
Created June 23, 2015 20:44
Simple Linux CPU Percentage Program
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_CYAN "\x1b[36m"
#define ANSI_COLOR_RESET "\x1b[0m"
@junzhengca
junzhengca / main
Created June 15, 2015 02:45
A simple Python code to do mod operation
def find_mod(a,b):
return (a*7) % b
testNumber = -1
resultNumber = -1
while resultNumber != 1:
testNumber += 1
resultNumber = find_mod(testNumber,880)
print(str(testNumber))
@junzhengca
junzhengca / Website.md
Created October 10, 2014 18:59
Website.MD

##Canada canadian symposium on catalysis symposia ##North America North American Catalysis Society Meeting ##International International Congress on Catalysis