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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# for Adam Hartwell |
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
#include <avr/sleep.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial blueSerial(3, 9); // RX, TX pins | |
int relayActive = false; | |
int relayPin = 7; | |
void setup() { | |
blueSerial.begin(9600); // Set baud rate | |
pinMode(relayPin, OUTPUT); |
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
#include <windows.h> | |
#include <stdio.h> | |
#include <conio.h> | |
int main(void) { | |
char port[] = "COM6", buffer[100]; | |
int i; | |
DCB dcb; | |
HANDLE hCOM; | |
DWORD bytesRead; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main() { | |
char c, inFileName[100], outFileName[100], type[20], arrayName[50]; | |
FILE *fin, *fout; | |
int position; | |
printf("CSV to 1D lookup table suitable for use in C/C++ v0.1\n"); | |
printf("Prints out to a file as a single line even if CSV is multiline\n\n"); |
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
x = 1; | |
signX = (x >= 0) - (0 > x); |
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
■(&@) | |
■(&&@@) | |
■(&&&@@@) |
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
// Calculate positioning of rectangles by using a 2D array with a one-one mapping to the environmenet where a 1 indicates a | |
// potential mappable square and a 0 represents an unmappable square. Squares are 4mx4m | |
// Find rectangles by sweeping up then right to find the max possible rectangle for each section | |
// Adam Hartwell 2014, Idea shamelessly taken from post of the best algorithms for this challenge | |
var tileSize = 4; | |
var grid = this.getNavGrid().grid; | |
var gridArr = []; | |
var row, counter, x, y; | |
// Create an array with grid size 4m and each square being 1 to indicate free and 0 otherwise |
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
// constants ------------------------------------------------------------------- | |
var alliedTypes = { | |
peasant: 'peasant', | |
soldier: 'soldier', | |
knight: 'knight', | |
librarian: 'librarian', | |
griffinRider: 'griffin-rider', | |
captain: 'captain' | |
}; |
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
<?php | |
$headers = 'From: ' . "\r\n"; | |
$to = ""; | |
$subject = ""; | |
$body = ""; | |
mail($to, $subject, $body, $headers); | |
?> |
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
<div id="overlay"> | |
<div id="messageBox"></div> | |
</div> | |
<script type="text/javascript"> | |
function popUp(message) { | |
document.getElementById("overlay").style.visibility = "visible"; | |
} | |
function closePopUp() { |
NewerOlder