Skip to content

Instantly share code, notes, and snippets.

View GiacomoLaw's full-sized avatar
🦆

Giacomo Lawrance GiacomoLaw

🦆
View GitHub Profile
@roachhd
roachhd / README.md
Created December 8, 2014 23:09
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet

@timsneath
timsneath / profile.ps1
Last active October 22, 2024 12:35
PowerShell template profile: adds some useful aliases and functions
### PowerShell template profile
### Version 1.03 - Tim Sneath <[email protected]>
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
###
### As a reminder, to enable unsigned script execution of local scripts on client Windows,
@carmichaelalonso
carmichaelalonso / aircraft_ids
Created December 6, 2016 11:18
Infinite Flight Livery/Aircraft ID list for third-party developers (Dec 2016 Update)
81d9ccd4-9c03-493a-811e-8fad3e57bd05:373cc897-32d5-4e3e-84b3-96103d6cac0e:A-10:Generic:A-10:Generic
982dd974-5be7-4369-90c6-bd92863632ba:1d7dff42-46a5-4c47-a46c-bd39ab9cea8d:Airbus A318:Generic:Airbus A318:Generic
982dd974-5be7-4369-90c6-bd92863632ba:291d9656-eb0a-4608-a8dc-268ac031a448:Airbus A318:Infinite Flight (2015):Airbus A318:InfiniteFlight2015
982dd974-5be7-4369-90c6-bd92863632ba:20bcdb6b-854f-44ee-addc-b30fb5acfe05:Airbus A318:ACJ Livery 1:Airbus A318:ACJ_1
982dd974-5be7-4369-90c6-bd92863632ba:3390fa9c-61f7-4c10-97c4-d0f25a526dfd:Airbus A318:ACJ Livery 2:Airbus A318:ACJ_2
982dd974-5be7-4369-90c6-bd92863632ba:b6481163-3cbf-4212-9616-0bf99b6ac3c3:Airbus A318:ACJ Livery 3:Airbus A318:ACJ_3
982dd974-5be7-4369-90c6-bd92863632ba:268bcb25-0236-45e7-bc24-f5dd596381a7:Airbus A318:ACJ Livery 4:Airbus A318:ACJ_4
982dd974-5be7-4369-90c6-bd92863632ba:299d18dd-b248-488f-b6af-c7ef8cd426fd:Airbus A318:Air France:Airbus A318:AirFrance
982dd974-5be7-4369-90c6-bd92863632ba:6cf01d32-3c56-4007-a084-7de26b7dbe52:Airbus A3
@GiacomoLaw
GiacomoLaw / checkbox_save.js
Created March 14, 2017 14:23
Saves the status of checkboxes to your local disk
var i, checkboxes = document.querySelectorAll('input[type=checkbox]');
function save() {
for (i = 0; i < checkboxes.length; i++) {
localStorage.setItem(checkboxes[i].value, checkboxes[i].checked);
}
}
function load_() {
for (i = 0; i < checkboxes.length; i++) {
# based on https://github.com/GiacomoLaw/Python-scripts/blob/master/monzoinvest.py
import requests
url = "https://api.monzo.com/crowdfunding-investment/total"
data = requests.get(url).json()
plainnum = int(str(data["invested_amount"])[:-4])
number = "{:,}".format(int(plainnum))
print("£",number)