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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js" ></script> | |
</head> | |
<body> | |
<input id="txtValue" type="text" placeholder='Type your RGB code here!'/> | |
<div id="testValidation" ></div> | |
<script> | |
//JQuery keyPress event for validation |
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
@echo off | |
echo Made by https://gist.github.com/Phuseos | |
echo Preparing to download the FTP full tree. | |
:: Set the dir to the dir where the BAT file is located | |
pushd %~dp0 | |
:: Show the current file location for dubble checking | |
echo Current location: %cd% |
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
REM Auto download all files from a single FTP directory | |
REM Made with help from https://gist.github.com/lyze237 | |
@echo off | |
REM Make sure we have a dedicated folder to write to | |
if not exist "C:\Users\User\Desktop\FTP" mkdir "C:\Users\User\Desktop\FTP" | |
REM CD to the folder | |
cd C:\Users\User\Desktop\FTP |
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
public static List<string> InfoReturner(List<string> infoToReturn) | |
{//Load in data based on the string in the List<string> | |
List<string> ReturnedInfo = new List<string>(); | |
/* | |
How this works: Create a list that holds the info you want to have. | |
The list with info obtained will be returned so you can use it like below: | |
System.Collections.Generic.List<string> GetUserInfo = new System.Collections.Generic.List<string>(); | |
GetUserInfo.Add("Email"); |
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
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<clear/> | |
<rule name="Redirect to https" stopProcessing="true"> | |
<match url="(.*)"/> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true"/> |
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
@ECHO OFF | |
:: Navigate to the default VirtualBox install directory | |
C: | |
cd C:\Program Files\Oracle\VirtualBox | |
:: Run the VM Headless | |
start /wait VBoxManage.exe startvm "YourVMName" | |
:: The loop, find the task, keep looping until a not found error is thrown | |
:LOOP | |
tasklist | find /i "VirtualBox" >nul 2>&1 |
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
:: 'Interactive' FizzBuzz in BAT | |
:: Start off with clearing the terminal | |
CLS | |
:: Give a little welcome message | |
ECHO "Fizzbuzz in BAT". | |
:: Turn off echo, allow variables to expand at execution time | |
@ECHO OFF & SETLOCAL ENABLEDELAYEDEXPANSION | |
:: Start looping | |
:START | |
ECHO "To what number should FizzBuzz run?" |
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
<HEAD> | |
<Script type="text/javascript" src="RPS.js"></Script> | |
</HEAD> | |
<BODY> | |
<p> Welcome to rock, paper, scissors. To play, type 'r' for rock, 'p' for paper and 's' for scissors.</p> | |
<p> | |
Your choice: <input type="text" id="playTxt"> | |
<input type="submit" value="Submit" id="btnPlay" onclick="playGame()"> | |
</p> | |
<p id="pInfoUser"></p> |
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
# Made for Python version 2.7 and up | |
import sys | |
import random | |
# Rock, paper scissors | |
# Declare global | |
# Program will run until this global has a value of 1 | |
glob_WinLose = 0 |
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
# Made by Phuseos | |
# https://gist.github.com/Phuseos/ | |
# Thanks for playing! | |
# Runs best using Python 2.7 and up | |
# ToFix : inventory doesn't work yet, repeat commmands crash | |
import sys # General usage | |
import math # Used for calculations (duh) | |
#import pdb | |
#pdb.set_trace() |
NewerOlder