I hereby claim:
- I am amanelis on github.
- I am amanelis (https://keybase.io/amanelis) on keybase.
- I have a public key whose fingerprint is D8B5 3805 923F BBC3 E07E 8988 5A85 9D7E 303F 49EF
To claim this, I am signing this object:
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| puts "COVID Vaccine Finder / Fremont, California" | |
| page = Nokogiri::HTML(open(URL)) | |
| mDiv = "body > div > div.shadow-sm.p-3.mb-4.rounded > div:nth-child(8) > div" | |
| bDiv = "button" |
| pragma solidity ^0.5.0; | |
| contract EIP712 { | |
| mapping(address => uint256) public nonces; | |
| struct EIP712Domain { | |
| string name; | |
| string version; | |
| uint256 chainId; |
| # Minikube local development | |
| ################################################################################ | |
| minikube-up: minikube-start minikube-install | |
| minikube-down: minikube-uninstall minikube-delete | |
| setup_dashboard: | |
| kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml | |
| minikube-dashboard: | |
| @minikube dashboard |
| [alembic] | |
| # path to migration scripts | |
| script_location = alembic | |
| # template used to generate migration files | |
| file_template = %%(year)d%%(month).2d%%(day).2d%%(hour).2d%%(minute).2d%%(second).2d_%%(rev)s_%%(slug)s | |
| # timezone to use when rendering the date | |
| # within the migration file as well as the filename. | |
| # string value is passed to dateutil.tz.gettz() |
| import time | |
| import datetime | |
| from datetime import date | |
| from twilio.rest import Client | |
| from subprocess import call | |
| print("Garage loop, starting...") | |
| client = Client('account_sid', 'account_token') |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "sync" | |
| "time" |
I hereby claim:
To claim this, I am signing this object:
| require 'json' | |
| require 'open-uri' | |
| class Stocks | |
| def self.get_by_symbols(symbols) | |
| return symbols.inject([]) { |memo, sym| | |
| result = JSON.parse(open("http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=#{sym}").read) | |
| memo << {symbol: result['Symbol'], lastPrice: result['LastPrice']} | |
| } | |
| end |
| #!/bin/bash | |
| free_data="$(free)" | |
| mem_data="$(echo "$free_data" | grep 'Mem:')" | |
| free_mem="$(echo "$mem_data" | awk '{print $4}')" | |
| buffers="$(echo "$mem_data" | awk '{print $6}')" | |
| cache="$(echo "$mem_data" | awk '{print $7}')" | |
| total_free=$((free_mem + buffers + cache)) | |
| used_swap="$(echo "$free_data" | grep 'Swap:' | awk '{print $3}')" |
| class Examp | |
| def self.obj_count | |
| count = 0 | |
| ObjectSpace.each_object(self) do |b| | |
| count += 1 | |
| end | |
| return count | |
| end | |
| end |