Skip to content

Instantly share code, notes, and snippets.

View ShayBox's full-sized avatar
🐧
Noot Noot

Shayne Hartford ShayBox

🐧
Noot Noot
View GitHub Profile
@andreiagmu
andreiagmu / FastPlatformSwitcher.cs
Last active December 14, 2022 14:47
Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions), for Asset Database v1
// Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions)
// For Asset Database v1
// by Andy Miira (Andrei Müller), October 2019
//
// Based on:
// Unity – fast build platform switcher script! (by Aymeric - Da Viking Code)
// https://davikingcode.com/blog/unity-fast-build-platform-switcher-script/
//
// A simple fast platform switcher for Unity (by Waldo Bronchart)
// https://gist.github.com/waldobronchart/b3cb789c028c199e2855
@kandhan-kuhan-t
kandhan-kuhan-t / 1password_1pux_to_csv.py
Created October 14, 2020 13:44
This converts the json file (you'll have to extract 'export.data' file from '*.1pux' file) exported from 1password (linux app) to .csv
#! /usr/bin/python3
import json
import csv
# extract export.data from .1pux file using archive manager
# extract.data is a json file
json_file_path = './export.data'
# output file path
@quasoft
quasoft / pyqt4_systray_icon-example.py
Created October 15, 2016 20:25
Example on creating a cross platform system tray application in Python and Qt4
#!/usr/bin/env python3
import sys
from PyQt4 import QtGui
class SystemTrayIcon(QtGui.QSystemTrayIcon):
def __init__(self, icon, parent=None):
self.event_play_click = None
self.event_pause_click = None
self.event_exit_click = None
import discord
import asyncio
import requests
import json
client = discord.Client()
def check_psn(psn):
response = requests.post('https://accounts.api.playstation.com/api/v1/accounts/onlineIds', json={"onlineId": psn, "reserveIfAvailable": False})
return response.status_code != 401 and response.status_code != 400