Skip to content

Instantly share code, notes, and snippets.

View HamishWHC's full-sized avatar

Hamish Cox HamishWHC

View GitHub Profile
@HamishWHC
HamishWHC / gist:a12aff18c79afe74095e6d87293d0d4f
Created August 15, 2020 06:06
Check that channel ID is part of game.
var game = {
otherKeys: "values",
channel: 187382131313,
channels: {
controlChannel: 311313123123,
otherChannel: 13131313123,
channelList1: [
12112321313,
12312312311
],
@HamishWHC
HamishWHC / python-cheatsheet.md
Created February 17, 2024 00:43
Python Cheatsheet

Useful Python Knowledge

Data Types

Strings

s = "abc"

s.startswith("ab") # True, abc starts with a
s.endswith("bc") # True, abc ends with c
s.count("ab") # counts how many times "ab" appears