$ npm install -g create-react-app
$ create-react-app counter
delete everything except for index.js, registerServiceWorker.js
create components/ folder
create App.js
| # pip install fastapi "uvicorn[standard]" numpy matplotlib cairocffi | |
| # run with uvicorn index:app (--reload) | |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import io | |
| from io import BytesIO |
| require 'socket' | |
| server = TCPServer.new 2000 | |
| data = {} | |
| loop do | |
| client = server.accept | |
| client.puts "Welcome to the key-value server" |
| require 'pry' | |
| # implements https://en.wikipedia.org/wiki/Gauss%E2%80%93Legendre_algorithm | |
| def calculate_pi(iterations) | |
| a = 1.0 | |
| b = 1 / Math::sqrt(2) | |
| t = 1.0 / 4 | |
| p = 1.0 | |
| while iterations > 0 |
I hereby claim:
To claim this, I am signing this object:
| asset_analyzer_redis: | |
| image: redis:3.0.7 | |
| container_name: asset_analyzer_redis | |
| net: yggdrasil | |
| ports: | |
| - 6379 | |
| restart: "unless-stopped" | |
| asset_analyzer: | |
| image: tutum.co/timothypage/asset-analyzer:0.0.9 |
| Sequel.migration do | |
| change do | |
| create_table(:tasks) do | |
| primary_key :id | |
| String :task_name | |
| String :class_name | |
| DateTime :last_ran | |
| String :frequency # ie 4.hours | |
| end | |
| end |
| source "https://rubygems.org" | |
| gem "rack-proxy" | |
| gem "sidekiq" | |
| gem "sinatra" | |
| gem "sinatra-contrib" | |
| gem "py" |