Skip to content

Instantly share code, notes, and snippets.

Working from home

Dave Martinez dave-martinez

Working from home
Block or report user

Report or block dave-martinez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
### Magic Square
# Define 3x3 square -- Initalized to 0
square = [[0 for x in range(3)] for x in range(3)]
def get_input():
for row in range(3):
dave-martinez /
Created Dec 17, 2015 — forked from anonymous/
Assignment for Sorting
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Runner {
public static ArrayList<Person> pList = new ArrayList<Person>();
public static Scanner scan = new Scanner(;
public static void lineBreak(){
import java.util.*;
public class infixtoprefix
public static void main(String[]args){
Stack<Character> op = new Stack<Character>();
Scanner sc = new Scanner(;
System.out.print("Enter infix Expression: ");
String infix = sc.nextLine();
String PREFIX = "";
for(int x= infix.length()-1;x>= 0; x--){
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Multiples {
public static void main(String[] args){
Queue<Integer> multiples = new LinkedList<Integer>();
Scanner scan = new Scanner(;
// Get Input
View PayrollIntroduction
Payroll is the process in which employees get paid by their employer equivalent to their work done. Every business should have a payroll system especially those bigger companies. This system will allow business owners to automatically take taxes from the paycheck while making sure that the data input is accurate and reliable. This also ensures that these taxes will go to correct government agencies.
This system organizes the information and the tasks of employee payment and tax filing. It also includes tracking of work hours, calculations of salaries, withholding of taxes and deductions, and paying checks to the government.
One of the problems that resulted in the creation of this kind of systems is the inconsistency of human calculations especially with such large data inputs. This system ensures that this problem will be solved. The operation of the system is simple. The employer will have minimal input on the system, only the employer information and all of the computations regarding the pay
View SoftEng References
View unitConverter.c
#include <stdio.h>
printf("Units converter:\n\n");
printf("[k] Kilogram (kg)\n[p] Pounds (lbs)\n[o] Ounces(o)\n");
char firstUnit = ' ';
char secondUnit = ' ';
package com.example.dave.temperatureconverter;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
from twitter import *
import re
import numpy as np
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Graph {
LinkedList<Pair> adj[];
int vertex;
boolean[] isVisited;
You can’t perform that action at this time.