Skip to content

Instantly share code, notes, and snippets.

#include "initalprompt.h"
#include "ui_initalprompt.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLineEdit>
#include <QCloseEvent>
#include <QMessageBox>
InitalPrompt::InitalPrompt(QWidget *parent) :
QDialog(parent),
@tlewiscpp
tlewiscpp / compile-all.sh
Last active August 21, 2016 19:11
Compiler Optimization Question
#!/bin/bash
mkdir normalBin
mkdir weirdBin
g++ -Wall -std=c++14 -O0 -S -o normalBin/normal-O0.s normal.cpp
g++ -Wall -std=c++14 -O1 -S -o normalBin/normal-O1.s normal.cpp
g++ -Wall -std=c++14 -O2 -S -o normalBin/normal-O2.s normal.cpp
g++ -Wall -std=c++14 -O3 -S -o normalBin/normal-O3.s normal.cpp
g++ -Wall -std=c++14 -Ofast -S -o normalBin/normal-Ofast.s normal.cpp
#!/bin/bash
declare -i SCREEN_WIDTH_POSITION=7
declare -i SCREEN_HEIGHT_POSITION=9
declare -i MINIMUM_SCREEN_WIDTH=1
declare -i MAXIMUM_SCREEN_WIDTH=3840
declare -i MINIMUM_SCREEN_HEIGHT=1
declare -i MAXIMUM_SCREEN_HEIGHT=2160
declare -i MOUSE_DELAY=100
declare -i numberOfXArguments=
#!/bin/bash
#Notes going forward: the "declare" statements may be
#unecessary, but they are included for completeness.
#For tests, [[ ]] is used instead of [ ] as the former allows
#complex boolean expressions (ie && and ||)
#Also, bash interprets a 0 as true and a non-zero as false
#WTF, indeed
#If the command line -d if passed when executing this shell script,
@tlewiscpp
tlewiscpp / gitrekt.sh
Created June 7, 2016 20:49
Bash shell script to clone repos
#!/bin/bash
userReply=""
GITHUB_DIR="/opt/GitHub"
GITHUB_URL="https://github.com/Pinguinsan"
GITHUB_ENDING=".git"
folderName=""
noFolderSpecifiedString="NONELOL"
function displayHelp() {