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
// ==UserScript== | |
// @name ChoiceScriptSavePluginInjector | |
// @author AbrahamAriel | |
// @description Injects ChoicescriptIDE/ChoiceScriptSavePlugin into any CoG games. | |
// @version 1.8.0 | |
// @license MIT | |
// @namespace https://gist.github.com/AbrahamAriel/7a8d7cea1d8cbcd82700d67a09942a47 | |
// @updateURL https://gist.githubusercontent.com/AbrahamAriel/6b777529d4558f9f45839f825348ee68/raw/ChoiceScriptSavePluginInjector.meta.js | |
// @downloadURL https://gist.githubusercontent.com/AbrahamAriel/7a8d7cea1d8cbcd82700d67a09942a47/raw/ChoiceScriptSavePluginInjector.user.js | |
// @match http://choiceofgames.com/* |
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
/** | |
* ChoiceScriptSavePluginInjector | |
* | |
* --- | |
* | |
* Licensed under the MIT License. | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without restriction, |
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
{- | |
Supermarket Billing. | |
Use produceBill to output the complete receipt. | |
eg. produceBill [1234, 4719, 3814, 1112, 1113, 1234, 0000, 666] | |
-} | |
-- Hide lookup from Prelude so we can use our own. | |
import Prelude hiding (lookup) |
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 turtle | |
# Name: Window name | |
# Colour: Background Colour | |
# Width and Height: Width and Height of Window | |
def makeWindow(name="MY_WINDOW", colour="white", width=800, height=600): | |
scr = turtle.Screen() | |
scr.title(name) | |
scr.bgcolor(colour) |
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 <dirent.h> | |
#include <string.h> | |
#include <limits.h> | |
void listFiles(char* path, char* str) { | |
DIR *dr = opendir(path); | |
if(dr != NULL) { | |
struct dirent *de; |
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 <dirent.h> | |
#include <string.h> | |
int main(void) { | |
FILE *input, *output; // Two files, input and output | |
char ch; // ch is used to assign characters from input file which will then be copied into the output file | |
char *txt = ".txt"; // TXT file extension | |
struct dirent *de; |
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
/** | |
* | |
* PrettyColours for Euro Truck Simulator 2 | |
* By acrox999 (https://forum.scssoft.com/memberlist.php?mode=viewprofile&u=26762) | |
* | |
* Requires ReShade 3.X | |
* Revision: 31/07/2017 | |
* | |
* Support and Updates: https://forum.scssoft.com/viewtopic.php?f=34&t=244725 | |
* |