This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
** | |
** Copyright (C) 2016 The Qt Company Ltd. | |
** Contact: https://www.qt.io/licensing/ | |
** | |
** This file is part of the QtCore module of the Qt Toolkit. | |
** | |
** $QT_BEGIN_LICENSE:BSD$ | |
** Commercial License Usage | |
** Licensees holding valid commercial Qt licenses may use this file in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Adapted from https://www.mathworks.com/help/matlab/ref/fft.html | |
function retval = fftandplot (filename, tStart, tEnd) | |
Fs = audioinfo(filename).SampleRate; | |
X = audioread(filename); | |
# Convert to mono | |
X = X(:,1); | |
# Convert times to sample indexes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Tropico 4 Betterizer - jahabrewer edition | |
; | |
; This is a modified version of an ahk script I found on steam. I've added the | |
; ability to set game speed directly with 1,2,3 and reversed the Q,E rotation to | |
; be what I expected. I got my feel for Q,E rotation from XCOM. | |
; | |
; I got really used to the control scheme of Rimworld, and I love Tropico 4. | |
; I stumbled across an AHK script written years ago, and decided to improve it. | |
; License: Public domain. | |
; Author: Kamerad ggppjj on Steam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import csv | |
import sys | |
import hashlib | |
from Crypto.Hash import SHA256, HMAC | |
import binascii | |
salt = '2hiy2EMaM693EEpwGXqZssSd2yCOABYWCB' | |
pbkdf_rounds = 100000 |