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 <iostream> | |
using namespace std; | |
struct node{ | |
int value; | |
node *left; | |
node *right; | |
}; |
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
/* | |
* main.cpp | |
* | |
* Created on: 8 Nov 2015 | |
* Author: Alex | |
*/ | |
#include <iostream> | |
template <class T> |
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 <stdlib.h> | |
#include "base64.h" | |
static char values[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
static int indexOf(char * array, char value){ | |
int i; | |
for(i = 0; *array; ++i, ++array) | |
if(*array == value) | |
return i; |
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
/* | |
* linkedList.cpp | |
* | |
* Created on: 3 Nov 2015 | |
* Author: Alex | |
*/ | |
#include <iostream> | |
#include "linkedList.hpp" | |
using namespace std; |
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
/* | |
* xorEncryption.c | |
* | |
* Created on: 30 Oct 2015 | |
* Author: Alex | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
int main(void) |
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
package base64; | |
public class Base64 { | |
private static String CODES = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
+ "abcdefghijklmnopqrstuvwxyz" | |
+ "0123456789+/="; | |
public static String encode(byte[] input){ | |
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 String Reverse(String sentence){ | |
String normal = "abcdefghijklmnopqrstuvwxyz_,;.?!/\\'"; | |
String split = "ɐqɔpǝɟbɥıظʞןɯuodbɹsʇnʌʍxʎz‾'؛˙¿¡/\\,"; | |
normal += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
split += "∀qϽᗡƎℲƃHIſʞ˥WNOԀὉᴚS⊥∩ΛMXʎZ"; | |
normal += "0123456789"; | |
split += "0ƖᄅƐㄣϛ9ㄥ86"; |
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 int count(File root){ | |
if(root == null || !root.exists()){ | |
System.out.println("ERROR: The source drive/directory does not exist."); | |
return -1; | |
} | |
Queue<File> files = new Queue<>(); | |
files.push(root); |
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 java.io.File; | |
public class Delete { | |
public static void main(String[] args) { | |
if(args.length != 1){ | |
System.out.println("ERROR: A path must be specified."); | |
System.exit(0); | |
}else{ |
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
package backup; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.nio.channels.FileChannel; | |
public class Backup { | |
NewerOlder