Skip to content

Instantly share code, notes, and snippets.

View kevinkassimo's full-sized avatar
🤕
Tried to be less stupid, but failed

Kevin (Kun) "Kassimo" Qian kevinkassimo

🤕
Tried to be less stupid, but failed
View GitHub Profile
const ColorContext = React.createContext();
class App extends React.Component {
constructor(props) {
super(props);
this.updateColor = (newColor) => this.setState({ color: newColor })
this.state = {
color: 'red',
const { provider, consumer } = createDecorator();
@provider('red')
class App extends React.Component {
render() {
return <Button />;
}
}
@consumer('color')
@kevinkassimo
kevinkassimo / My_Year_With_Deno.md
Last active November 3, 2020 21:30
MY one year with Deno

MY Year With Deno...

... and my internal struggles.

WARNING: This is a NON-technical article. Stop reading if you are here hoping to find anything useful about design of Deno.

WARNING 2: If you are an experienced software engineer, you might find this article very boring.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
use deno_core::*;
use futures::executor::block_on;
use std::option::Option;
use futures::future::FutureExt;
use futures::future;
fn main() {
let future = async_main();
block_on(future);
}
@kevinkassimo
kevinkassimo / robinhood_to_simplywallst.py
Created July 5, 2021 23:02
Export Robinhood records to CSV format that can be imported to simplywall.st
# Deps: pandas, grequests
# READ ME BEFORE START!
# Please install: pandas, grequests
# pip3 install pandas grequests
#
# Usage:
# python3 robinhood_to_simplywallst.py [source_json] [optional_custom_ticker_file]
#
# <source_json>: JSON file of your historical transactions downloaded from https://api.robinhood.com/orders/