Unofficial R2 notes
Cost
https://developers.cloudflare.com/r2/platform/pricing/
up to 10,000,000 read operations + $0.36 per 1,000,000 operations
$3.60 free
up to 1,000,000 write operations + $4.50 per 1,000,000 operations
https://developers.cloudflare.com/r2/platform/pricing/
up to 10,000,000 read operations + $0.36 per 1,000,000 operations
$3.60 free
up to 1,000,000 write operations + $4.50 per 1,000,000 operations
hs.hotkey.bind(modShiftHyper, "W", function() | |
-- local tracking = false | |
local startingMousePosition = hs.mouse.getAbsolutePosition() | |
local max = hs.screen.mainScreen():fullFrame() | |
local maxCanvas = hs.canvas.new{x=max.x, y=max.y, h=max.h, w=max.w} | |
maxCanvas:clickActivating(false) | |
maxCanvas:canvasMouseEvents(true, true, false, true) | |
maxCanvas:mouseCallback(function(_, event, id, x, y) | |
local currentMousePosition = hs.mouse.getAbsolutePosition() |
import { graphql } from 'overmind-graphql'; | |
import { SubscriptionClient } from 'subscriptions-transport-ws'; | |
// Query & Mutation GQL Tags | |
import * as queries from './queries'; | |
import * as mutations from './mutations'; | |
// Subscription GQL Tags | |
import { UsersUpdatedQuery } from './generated/api'; |
This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:
Table Name | Columns | Foreign Keys |
---|---|---|
User | id, name, email | |
Organization User | id, user_id, organization_id | user_id -> user.id, organization_id -> organization.id |
Organization | id, name |
let toggle = false | |
const attachHandler = () => | |
document | |
.getElementById("message-composer-input") | |
.addEventListener("change", function() { | |
if(!toggle) { |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
import cv2 | |
import numpy as np | |
# read and scale down image | |
# wget https://bigsnarf.files.wordpress.com/2017/05/hammer.png #black and white | |
# wget https://i1.wp.com/images.hgmsites.net/hug/2011-volvo-s60_100323431_h.jpg | |
img = cv2.pyrDown(cv2.imread('2011-volvo-s60_100323431_h.jpg', cv2.IMREAD_UNCHANGED)) | |
# threshold image | |
ret, threshed_img = cv2.threshold(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY), |
Permalink: git.io/vps
Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
---|
local alert = require("hs.alert") | |
local timer = require("hs.timer") | |
local eventtap = require("hs.eventtap") | |
local events = eventtap.event.types | |
local module = {} | |
-- timeout for ctrol key | |
module.timeFrame = .25 |