Implement a circular queue. If you haven’t used that before, a circular queue is a data structure in which the operations are performed based on the “First In First Out” principle, and the last position is connected back to the first position to make a circle.
class Accessory: | |
aid: int | |
services: list = [] | |
class Service: | |
type: str | |
iid: int | |
characteristics: list = [] | |
hidden: bool |
- Download and install emulator - https://www.visualstudio.com/vs/msft-android-emulator/
- Download commandline tools (see bottom of page) - https://developer.android.com/studio/index.html
- Unzip archive to
C:\Program Files (x86)\Android SDK
- Go to
C:\Program Files (x86)\Android SDK\tools\bin
and run.\sdkmanager.exe "platform-tools"
(it will installadb
required by react native) - Specify SDK path:
04188659672389fd06e1b4d0e35a22d610911c1779f6d815b3cc736f154828e0735e48bcb1a185b0b2e9817014d3cf3b5efe8e7f859e6982d60bcf5d3effff4889 |
I put my sampling analysis into a spreadsheet with charts
It looks like when there are 10 cards in play, the probabilities for three of a kind, flushes, and straights all converge. However, when there are between 6 and 9 cards in play, the probabilities match standard poker rules, so statistically, it's best to avoid flushes before 10 cards in play.
Also interesting to note, there's almost always a pair among the cards in play, even in a 6-card game.
#!/usr/bin/perl | |
# | |
# PackageApplication | |
# | |
# Copyright (c) 2009-2012 Apple Inc. All rights reserved. | |
# | |
# Package an iPhone Application into an .ipa wrapper | |
# | |
use Pod::Usage; |
Truths and realities
- I am good at software development
- I have received excellent mentorship from many people
- I have benefitted from the privilege of being a white, cis het male in Tech
Desires and passions
- Sharing awesome things with people
- Getting others excited about tech
- Seeing my friends make awesome stuff
- Seeing my friends enjoy what they do
Thanks to the super-useful PyiCloud module by @picklepete, this script is a way to download all of your photos from iCloud Photos.
On OS X (macOS?), use the icloud
utility to save your iCloud password to your keyring. (This keeps it out of the script.) Update the script with your Apple ID email address and run it to download your photos to the current directory.
var fs = require('fs'); | |
var fileName = process.argv[2]; | |
var barcodes = readFile(fileName, 'utf8') | |
.then(data => data.split(/\r\n/g)) | |
.then(lines => lines | |
.slice(1) | |
.map(line => line.split(/,/g)) | |
.map(a => { | |
return { |