Skip to content

Instantly share code, notes, and snippets.

View jkyletreman's full-sized avatar

Kyle jkyletreman

  • 1800Flowers
  • NYC
View GitHub Profile
@jkyletreman
jkyletreman / apple-bluetooth-keyboard-windows-10-bootcamp.md
Created January 19, 2018 20:19 — forked from mcandre/apple-bluetooth-keyboard-windows-10-bootcamp.md
How to fix Apple Bluetooth Wireless Keyboard (Windows 10)

The driver situation with Apple Bluetooth wireless keyboards and Windows 10 is horrible, even with the latest BootCamp drivers. Fortunately, a workaround is available, if you're patient.

Pair keyboard once

  1. Turn on the keyboard.
  2. Press and hold Command + w until the keyboard light begins blinking, indicating the keyboard is ready to pair.
  3. Use Windows Bluetooth settings to pair the keyboard, entering the same code (e.g. 123456 Enter) on both internal and external keyboards.

Pairing the keyboard is very trial and error. 9/10 times, Windows will complain that the keyboard is not available for pairing. Just keep trying.

@jkyletreman
jkyletreman / binary_search.py
Created January 26, 2018 20:34
Binary Search in Python
# iterative implementation of binary search in Python
def binary_search(a_list, item):
"""Performs iterative binary search to find the position of an integer in a given, sorted, list.
a_list -- sorted list of integers
item -- integer you are searching for the position of
"""