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
function convert(num) { | |
var map = [ | |
[1, 1, 'I'], | |
[1, 5, 'V'], | |
[2, 10, 'X'], | |
[2, 50, 'L'], | |
[3, 100, 'C'], | |
[3, 500, 'D'], | |
[4, 1000, 'M'], | |
[4, 5000, ''], |
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
tridentsdk="TridentSDK" | |
trident="Trident" | |
env="Env" | |
clear | |
# Print 'header' info | |
echo "\x1b[35;1m====================================" | |
echo "== Trident Workspace Fetcher v2.0 ==" | |
echo "====================================" |
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(int argc, char* argv[]) { | |
char fileName[30]; | |
printf("Enter file name: "); | |
scanf("%s", fileName); | |
FILE* file = fopen(fileName, "r"); |
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
// | |
// colours.h | |
// COMP1917 | |
// | |
// Created by Nick Robson on 20/03/2015. | |
// Copyright (c) 2015 Nick Robson. All rights reserved. | |
// | |
#ifndef __COMP1917__colours__ | |
#define __COMP1917__colours__ |
NewerOlder