Skip to content

Instantly share code, notes, and snippets.

View jfsr's full-sized avatar
🎯
Focusing

Jacinto Filipe jfsr

🎯
Focusing
  • UFPE
  • Brazil
View GitHub Profile
@jfsr
jfsr / day12.java
Created October 19, 2017 19:30
Day 12: Inheritance
class Student extends Person{
private int[] testScores;
/*
* Class Constructor
*
* @param firstName - A string denoting the Person's first name.
* @param lastName - A string denoting the Person's last name.
* @param id - An integer denoting the Person's ID number.
* @param scores - An array of integers denoting the Person's test scores.
@jfsr
jfsr / day11.java
Created October 19, 2017 01:05
Day 11: 2D Arrays
int maximum = arr[0][0] + arr[0][1] + arr[0][2] + arr[1][1] + arr[2][0] + arr[2][1] + arr[2][2];
int tempMax = 0;
for(int x = 1; x <= 4; x++){
for(int y = 1; y <= 4; y++){
tempMax = arr[x-1][y-1] + arr[x-1][y] + arr[x-1][y+1] + arr[x][y] + arr[x+1][y-1] + arr[x+1][y] + arr[x+1][y+1];
if(tempMax > maximum){
maximum = tempMax;
}
}
@jfsr
jfsr / merge.py
Last active October 14, 2015 19:46
Python script to merge two images
#!/usr/bin/python
#===============================================================================
# FILE: merge.py
#
# USAGE: python merge.py
#
# DESCRIPTION: Makes a merge between two images
#
# OPTIONS: ---