Skip to content

Instantly share code, notes, and snippets.

View OrthoDex's full-sized avatar
🎯
Focusing

Ishaan Malhi OrthoDex

🎯
Focusing
View GitHub Profile
@OrthoDex
OrthoDex / Code.gs
Last active October 14, 2019 00:50
Apps Script to create date wise sheets
/**
* A special function that runs when the spreadsheet is open, used to add a
* custom menu to the spreadsheet.
*/
function onOpen() {
var spreadsheet = SpreadsheetApp.getActive();
var menuItems = [
{name: 'Copy from Main Sheet', functionName: 'loadHTML'}
];
@karpathy
karpathy / min-char-rnn.py
Last active July 7, 2024 10:14
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
// These two need to be declared outside the try/catch
// so that they can be closed in the finally block.
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
// Will contain the raw JSON response as a string.
String forecastJsonStr = null;
try {
// Construct the URL for the OpenWeatherMap query