Skip to content

Instantly share code, notes, and snippets.

View falcondai's full-sized avatar

Falcon Dai falcondai

View GitHub Profile
@falcondai
falcondai / demo.ipynb
Created September 5, 2024 19:06
Demo notebook associated the metamath primer presentation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@falcondai
falcondai / orbit-diagram.ipynb
Last active March 12, 2018 19:49
Generating orbit diagrams for iterative maps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@falcondai
falcondai / sample-NAMAS-input.txt
Created September 14, 2016 17:35
a few lines of NAMAS preprocessed dataset
TP AP Elephants no Dumbo at sums : Japanese researcher Asian elephants can do mathematics , proving their skill at addition in an experiment with their favourite food , a Japanese researcher said Monday.One elephant was # # percent correct and the other # # percent right in months of addition exercises involving single digits , according to Naoko Irie of the University of Tokyo .
TP AP Microsoft to slash Xbox # # # price in Japan ATTENTION - UPDATES with confirmation Microsoft announced Monday that it will slash the price of its Xbox # # # video game console in Japan by almost # # percent to try to boost sales amid tough competition from rivals Sony and Nintendo.The US software giant will cut the price of the Xbox # # # Arcade model to # # , # # # yen ( # # # dollars ) from # # , # # # yen , undercutting Nintendo 's Wii which has a price tag of # # , # # # yen , a Microsoft official told a press conference .
TP AP Australian current account deficit narrows sharply
@falcondai
falcondai / docker_build.sh
Last active August 14, 2016 17:52
tf: do not remove image after build
#!/usr/bin/env bash
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@falcondai
falcondai / guided_relu.py
Last active April 1, 2021 09:12
Tensorflow implementation of guided backpropagation through ReLU
import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops import gen_nn_ops
@ops.RegisterGradient("GuidedRelu")
def _GuidedReluGrad(op, grad):
return tf.select(0. < grad, gen_nn_ops._relu_grad(grad, op.outputs[0]), tf.zeros(grad.get_shape()))
if __name__ == '__main__':
with tf.Session() as sess:
@falcondai
falcondai / get_image.ipynb
Created June 28, 2016 22:39
minimal example of getting images from Baxter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@falcondai
falcondai / custom_limb.ipynb
Created June 28, 2016 22:09
using baxter custom APIs to control a limb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.