Skip to content

Instantly share code, notes, and snippets.

View whitphx's full-sized avatar

Yuichiro Tachibana (Tsuchiya) whitphx

View GitHub Profile
import streamlit as st
name = st.text_input('Your name')
st.write("Hello,", name or "world")
@whitphx
whitphx / ghq-new.sh
Created March 23, 2019 07:11
ghq-new
function ghq-new() {
HUB_CREATE_OPTS=""
OPTIND_OLD=$OPTIND
OPTIND=1
while getopts "p" opt; do
case "$opt" in
p)
HUB_CREATE_OPTS="${HUB_CREATE_OPTS} -p"
;;
import { createStore } from 'redux';
import expect from 'expect';
// Reducer definition
const counterReducer = (count = 0, action) => {
switch( action.type ) {
case 'INCREMENT':
return count + 1;
default:
@whitphx
whitphx / axi_simple_read_bfm.v
Last active January 12, 2016 08:04
Simple BFMs for read/write channels of AXI bus
module axi_simple_read_bfm #(
parameter integer C_M_AXI_ID_WIDTH = 1,
parameter integer C_M_AXI_DATA_WIDTH = 32,
parameter integer C_M_AXI_ADDR_WIDTH = 32,
parameter integer QUEUE_LEN = 6
)(
input wire m_axi_aclk,
input wire m_axi_aresetn,
input wire m_axi_arvalid,
output reg m_axi_arready,