Skip to content

Instantly share code, notes, and snippets.

View frankchn's full-sized avatar

Frank Chen frankchn

  • Mountain View, CA
View GitHub Profile
import React from "react";
import "./styles.css";
import ReactMarkdown from "react-markdown";
export default function App() {
function showAllLanguages() {
for (var e1 of document.getElementsByClassName("language-specific")) {
e1.setAttribute("style", "display:inline");
}
}
@frankchn
frankchn / HospitalKarel.py
Created April 16, 2020 01:48
HospitalKarel
from karel.stanfordkarel import *
def main():
while front_is_clear():
if beepers_present():
build_hospital()
if front_is_clear():
move()
import tensorflow as tf
from tensorflow.contrib import tpu
def computation(a, x, y):
return a * x + y
inputs = [
3.0,
tf.random_uniform([3, 3], 0, 1, tf.float32),
tf.random_uniform([3, 3], 0, 1, tf.float32),
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
int min(int a, int b) {
if (a < b) return a; else return b;
}
int i2base(char* buf, int n, unsigned int val, int width, int MAX_WIDTH, void (*f)(void *, char *)) {

Keybase proof

I hereby claim:

  • I am frankchn on github.
  • I am frankchn (https://keybase.io/frankchn) on keybase.
  • I have a public key whose fingerprint is 6079 963D F17E 0B1C 63F3 7903 F1BE 8846 128B 1538

To claim this, I am signing this object: