This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
np.seterr(all="ignore") | |
import matplotlib.ticker as ticker | |
import numpy_financial | |
# Treasury, TIPS and I-bonds - these are all bonds, which allows you to lend | |
# a $ amount (principal) to the US government. The US government promises to pay | |
# you back in time (years). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "firebase/app"; | |
import "firebase/auth"; | |
import { gql, GraphQLClient } from "graphql-request"; | |
import { SWRConfig } from "swr"; | |
import create from "zustand"; | |
import { computed } from "zustand-middleware-computed-state"; | |
const firebaseConfig = { | |
// | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some courses I think are neat and have recordings | |
Lots of deep learning, + some cs, science and math | |
Online classes in progress | |
* Stanford CS224n NLP w/ DL https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1194/ | |
Online classes todo | |
* Stanford CS224W ML with Graphs http://web.stanford.edu/class/cs224w/ | |
* Stanford CS234 RL (vids from 2019) https://web.stanford.edu/class/cs234/CS234Win2019/schedule.html https://web.stanford.edu/class/cs234/ | |
* Stanford CS330 Deep Multi-Task and Met aLearning (vids from 2019) https://cs330.stanford.edu/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Result | |
{ | |
protected Result(bool success, string message = null) : this(success, message, Enumerable.Empty<Error>()) { } | |
protected Result(bool success, string message, IEnumerable<Error> errors) | |
{ | |
Success = success; | |
Message = message; | |
Errors = errors ?? Enumerable.Empty<Error>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
int firstVisibleItem, visibleItemCount, totalItemCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
private final Context context; | |
@Inject @ClientId String clientId; | |
@Inject @ClientSecret String clientSecret; | |
@Inject ApiService apiService; | |
public AccountAuthenticator(Context context) { | |
super(context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName 192.168.33.10.xip.io | |
DocumentRoot /vagrant | |
<Directory /vagrant> | |
Options -Indexes +FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014 Google Inc. | |
* | |
* 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 |
NewerOlder