Skip to content

Instantly share code, notes, and snippets.

View saRahaLi0's full-sized avatar
:octocat:
All-Projects

Sara saRahaLi0

:octocat:
All-Projects
View GitHub Profile
@saRahaLi0
saRahaLi0 / web3.clj
Created June 10, 2023 05:34 — forked from matthewdowney/web3.clj
Call a smart contract from Clojure to query data from the Ethereum blockchain.
(ns web3
"Call an Ethereum smart contract (Uniswap v2) from Clojure.
Requires https://github.com/clj-python/libpython-clj for python interop. Also
make sure to $ pip install web3."
(:require [libpython-clj2.python :as py]
[libpython-clj2.require :refer [require-python]]))
(comment ;; deps.edn
@saRahaLi0
saRahaLi0 / micrograd.clj
Created June 10, 2023 05:33 — forked from matthewdowney/micrograd.clj
karpathy's micrograd values in Clojure
(ns micrograd
"autograd engine for scalar values and operations in the style of
https://github.com/karpathy/micrograd
but with immutable values.")
; Wrap a scalar `data` with some additional context
(defrecord Value [data grad children op op-deriv])
@saRahaLi0
saRahaLi0 / CloudWatchLogsToS3.yml
Created March 3, 2023 08:09 — forked from sakamaki-kazuyoshi/CloudWatchLogsToS3.yml
Export Cloudwatch Logs data to S3 via Amazon Kinesis Data Firehose.
AWSTemplateFormatVersion: '2010-09-09'
# ------------------------------------------------------------#
# Metadata
# ------------------------------------------------------------#
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: "Kinesis Data Firehose Configuration"
Parameters: