Skip to content

Instantly share code, notes, and snippets.

View chenjiayi8's full-sized avatar

Jiayi Chen chenjiayi8

View GitHub Profile
@globalpolicy
globalpolicy / index.html
Created July 7, 2020 09:01
Large matrix multiplication with GPU.js
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/gpu.js@latest/dist/gpu-browser.min.js"></script>
</head>
<body>
<script src="main.js"></script>
</body>
</html>
@okld
okld / multipage_settings_app.py
Last active July 11, 2024 23:55
Streamlit - Settings page with session state
import streamlit as st
from persist import persist, load_widget_state
def main():
if "page" not in st.session_state:
# Initialize session state.
st.session_state.update({
# Default page.
"page": "home",
@drcharris
drcharris / app.js
Last active February 3, 2023 01:14
Fetch Evernote notes from a notebook using javascript
var async = require('async'); //async library to allow macro-wokr over async methods
var Evernote = require('evernote').Evernote; //the evernote client
var _ = require('lodash'); //handy utility function
/**
* @param token the authorisation token returned from your Evernote authentication
* @param bookGuid the unique identifier of the notebook
*/
function getNotesFromEvernote(token, bookGuid) {
//an evernote client object