I hereby claim:
- I am tylermenezes on github.
- I am tylermenezes (https://keybase.io/tylermenezes) on keybase.
- I have a public key ASB_CIxiPtusbA25eTZuwspeRld2XrH6Dv4JvIqIgFgGOwo
To claim this, I am signing this object:
| (() => { | |
| const bookmarks = [...document.querySelectorAll('.entry')] | |
| .filter((entry) => entry.querySelector('a.title')) | |
| .map((entry) => { | |
| const title = entry.querySelector('a.title').textContent; | |
| const link = entry.querySelector('a.title').href; | |
| const subreddit = entry.querySelector('.subreddit').textContent.replace('r/', ''); | |
| return `<DT><A HREF="${link}" PRIVATE="0" TOREAD="0" TAGS="${subreddit}">${title}</A>`; | |
| }); | |
| console.log(`<!DOCTYPE NETSCAPE-Bookmark-file-1> |
I hereby claim:
To claim this, I am signing this object:
| def chunk(list, n): | |
| """Breaks a list into chunks of size n.""" | |
| return [ list[i:i+n] for i in range(0, len(list), n)] | |
| def balanceGroups(groups): | |
| """Balances a list of lists, so they are roughly equally sized.""" | |
| numPlayers = sum([len(group) for group in groups]) | |
| minGroupSize = int(numPlayers/len(groups)) | |
| groupsArr = list(enumerate(groups)) |
| #!/usr/bin/env bash | |
| JWT=$(curl -s 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=http%3A%2F%2Fvault.srnd.cloud' -H Metadata:true | jq -r '.access_token') | |
| META=$(curl -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2019-04-30") | |
| SUBSCRIPTION_ID=$(echo $META | jq -r .compute.subscriptionId) | |
| VM_NAME=$(echo $META | jq -r .compute.name) | |
| RESOURCE_GROUP_NAME=$(echo $META | jq -r .compute.resourceGroupName) | |
| JSON="{\"role\": \"nomad-server\", \"jwt\": \"$JWT\", \"subscription_id\": \"$SUBSCRIPTION_ID\", \"resource_group_name\": \"$RESOURCE_GROUP_NAME\", \"vm_name\": \"$VM_NAME\"}" | |
| echo $JSON |
| import java.util.*; | |
| public class ExampleApp | |
| { | |
| public void Start() | |
| { | |
| ListenForUserJoin("tylermenezes"); | |
| } | |
| public void ListenForUserJoin(String userToMonitor) |
| { | |
| "account" : { // Optional | |
| "email" : "...", | |
| "password" : "...", // Need to use config client | |
| "serverName" : "...", // e.g. Home, work, etc. | |
| "uid" : "...", // Need to use config client | |
| "uin" : 0 // Need to use config client | |
| }, | |
| "archive" : { | |
| "maxEventLogSize" : 10, // Max size of motion detection log, in MB |
| import voluptuous as vol | |
| from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) | |
| from homeassistant.const import ( | |
| STATE_ON, STATE_OFF, STATE_UNKNOWN, CONF_NAME, CONF_FILENAME) | |
| import homeassistant.helpers.config_validation as cv | |
| import struct | |
| import socket | |
| DOMAIN = 'esp8266_curtains' | |
| DEFAULT_NAME = 'Curtains' |
| import voluptuous as vol | |
| from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) | |
| from homeassistant.const import ( | |
| STATE_ON, STATE_OFF, STATE_UNKNOWN, CONF_NAME, CONF_FILENAME) | |
| import homeassistant.helpers.config_validation as cv | |
| import struct | |
| import socket | |
| DOMAIN = 'esp8266_blaster' | |
| DEFAULT_NAME = 'ESP8266' |
| import voluptuous as vol | |
| import logging | |
| from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) | |
| from homeassistant.const import ( | |
| STATE_ON, STATE_OFF, STATE_UNKNOWN, CONF_NAME, CONF_FILENAME) | |
| import homeassistant.helpers.config_validation as cv | |
| import http.client | |
| from base64 import b64encode | |
| from time import time |
| import voluptuous as vol | |
| import logging | |
| from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) | |
| from homeassistant.const import ( | |
| STATE_ON, STATE_OFF, STATE_UNKNOWN, CONF_NAME, CONF_FILENAME) | |
| import homeassistant.helpers.config_validation as cv | |
| from base64 import b64encode | |
| from time import time | |
| import urllib.request | |
| import urllib.parse |