Skip to content

Instantly share code, notes, and snippets.

Avatar

Stavros Kefaleas skiabox

View GitHub Profile
@skiabox
skiabox / 0_reuse_code.js
Created May 4, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:2307eded3ed51d80a6a5
Stavross-MBP-2:RubymineProjects Administrator$ rails new Events2
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
@skiabox
skiabox / dabblet.css
Created Apr 27, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.box {
position: absolute;
width: 200px;
height: 200px;
}
@skiabox
skiabox / Animal.java
Created Oct 11, 2016
Animal abstract class
View Animal.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 09/10/2016.
*/
public abstract class Animal {
private String picture;
private Food food;
private int hunger;
@skiabox
skiabox / Feline.java
Created Oct 12, 2016
Feline abstract class
View Feline.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 09/10/2016.
*/
public abstract class Feline extends Animal{
//common Feline methods
public void roam() {
System.out.println("The Felines avoid each other");
@skiabox
skiabox / Canine.java
Created Oct 12, 2016
Canine abstract class
View Canine.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 10/10/2016.
*/
public abstract class Canine extends Animal{
public void roam()
{
System.out.println("The Canines move in packs");
View App2.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 10/10/2016.
*/
public class App2 {
public static void main(String[] args) {
//Separator
View Hippo.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 10/10/2016.
*/
public class Hippo extends Animal{
@Override
public void makeNoise() {
System.out.println("The hippo snarls");
@skiabox
skiabox / console1.txt
Created Oct 12, 2016
Console1 output
View console1.txt
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMa
View Wolf.java
package com.skiabox.java_apps2;
/**
* Created by administrator on 10/10/2016.
*/
public class Wolf extends Canine{
@Override
public void makeNoise() {
System.out.println("The wolf howls");
}