Skip to content

Instantly share code, notes, and snippets.

View gggordon's full-sized avatar
💭
How can we make lives better today 🤔?

Gilroy Gordon gggordon

💭
How can we make lives better today 🤔?
View GitHub Profile
@gggordon
gggordon / install-apt-get-linux-unattended.sh
Created October 12, 2017 23:07
Installing Python 3 With Apt-Get for Linux
#!/usr/bin/env bash
# @author ggordon
# @created 1.10.2017
# @license MIT
# @description Install Python 3 (Unattended) Linux using apt-get
# Not for ubuntu 16, only older versions
echo "====Getting updates"
sudo add-apt-repository ppa:fkrull/deadsnakes
package animals;
public class Bird extends Animal{
//class Bird : public Animal {
public Bird() {
super();
}
public Bird(String name) {
/*
@gggordon
gggordon / Driver.java
Last active October 9, 2017 15:40
Animal Driver
package driver;
import animals.Animal;
import animals.Bird;
public class Driver {
public static void main(String[] args) {
// https://goo.gl/DRCisd <-- today's lab resource
//object created using default constructor
package animals;
public class Animal {
private String name;
protected String tag;
public Animal(){
//https://goo.gl/DRCisd <-- today's lab resource
/**
@gggordon
gggordon / MyStopWatch.java
Last active October 8, 2017 14:13
Stopwatch Timer in Java
/**
* @author ggordon
* @created 4.10.2017
* @description A Timer - Every moment counts
* */
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Panel;
@gggordon
gggordon / aws-tier-pricing-overview.js
Created August 29, 2017 21:27
AWS EC2 Tier Pricing Overview Script
/**
* @author gggordon
* @created 29.8.2017
* @description Get tier pricing overview for month (s).
* Updates pricing column to contain
* actual/monthly/monthly * num of months prices
* @license MIT
*/
var $ = jQuery,
@gggordon
gggordon / r-unattended-install-ubuntu-16-04.sh
Last active May 13, 2017 18:52
R unattended install Ubuntu 16.04
# R Unattended install on ubuntu 16.04
# @author ggordon
echo "Adding external repository maintained by CRAN to trusted"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
echo "Adding debian repository and updating"
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
@gggordon
gggordon / Laravel PHP7 LEMP AWS.md
Created December 7, 2016 02:59 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 14.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@gggordon
gggordon / er-project.conf
Created October 21, 2016 03:54
er-project.conf
/*
* Copyright (c) 2013, Institute for Pervasive Computing, ETH Zurich
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@gggordon
gggordon / Car.sol
Last active September 13, 2016 08:28
Car Drive Training Demo #Ethereum #Solidity
/*
* @author gggordon
* @license MIT
* @copyright gggordon 2016
* @description Car Drive Training Demo
* @file Car.sol
*/
pragma solidity ^0.4.0;