Skip to content

Instantly share code, notes, and snippets.

View axsddlr's full-sized avatar
🎯
Focusing

Andre Saddler axsddlr

🎯
Focusing
View GitHub Profile
@axsddlr
axsddlr / mp4-proj.cpp
Last active May 21, 2018 00:33
mp4-proj created by Ayysir - https://repl.it/@Ayysir/mp4-proj
asaddler@debian9VM:~$ g++ mp4-proj.cpp -o mp4
asaddler@debian9VM:~$ ./mp4
> 7 3 10 2 5 8 11 4 -1
> > > > > > > >
2
3
4
5
7
#include <stdio.h>
#include <stdbool.h>
#define MAX 9
int intArray[MAX] = {1, 3, 9, 4, 11, 34, 2, 8, 10};
void printline(int count) {
int i;
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
class Shape {
public:
virtual float calculateArea() = 0;
virtual ~Shape(){};
std::string name;
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
class Shape {
public:
virtual float calculateArea() = 0;
virtual ~Shape(){};
std::string name;
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
using namespace std;
// check for keywords
int isKeyword(char buffer[]) {
char keywords[32][10] = {
@axsddlr
axsddlr / Circle.java
Last active May 19, 2018 03:30
Project 2 - Revised created by Ayysir - https://repl.it/@Ayysir/Project-2-Revised
public class Circle extends Shape {
private final double radius;
final double pi = Math.PI;
public Circle() {
this(1);
}
public Circle(double radius) {
this.radius = radius;
}
@axsddlr
axsddlr / Circle.java
Last active May 18, 2018 17:16
Project 2 created by Ayysir - https://repl.it/@Ayysir/Project-2
//Circle class inherited from the shape
//class with implementation to the methods.
public class Circle extends Shape {
private int radius;
public Circle(int radius) {
this.radius = radius;
#!/bin/bash
# Flush out the list before we begin
ipfw -q -f flush
# Set rules command prefix
cmd="ipfw -q add"
vpn="tun0"
# allow all local traffic on the loopback interface
$cmd 00001 allow all from any to any via lo0
#include <iostream>
using namespace std;
long int factorial(int n);
int main() {
int n;
cout << "Enter Number ";
cin >> n;
@axsddlr
axsddlr / threesum_fixed_i_think.c
Created March 29, 2017 03:47
Fixed (I think) threesum
/*
* threesum.c
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>