Skip to content

Instantly share code, notes, and snippets.

View ntakouris's full-sized avatar
🤖
Building robots

Theodoros Ntakouris ntakouris

🤖
Building robots
View GitHub Profile
@ntakouris
ntakouris / TwentyPercent.java
Last active August 29, 2015 14:07
Flevas this is yours
import java.util.Scanner;
public class Main {
public static void main(String[] args){
System.out.println("Insert price here:");
Scanner s = new Scanner(System.in);
@ntakouris
ntakouris / TwentyPercent.scala
Created September 28, 2014 18:37
Dis is yours fleva
object main {
def main(args: Array[String]){
println("Insert price here:");
val price = Console.readInt;
println("20% of inserted price is: " + (price * 20 / 100))
}
@ntakouris
ntakouris / DayTest.scala
Last active August 29, 2015 14:07
im swag
object main {
def main(args: Array[String]){
val days = List("Deftera" , "Triti" , "Tetarti" , "Pempti" , "Paraksevi" , "Savato" , "Kiriaki")
println("Insert day id here:");
val day_id = normalizeInteger(Console.readInt);
println("You chose day: " + days(day_id))
@Override
public void onDraw(Canvas canvas, Rect bounds) {
/* draw your watch face */
// Update the time
mTime.setToNow();
int width = bounds.width();
int height = bounds.height();
// Find the center. Ignore the window insets so that, on round watches
//Load the image from file
Image<Bgr, Byte> img = new Image<Bgr, byte>(fileNameTextBox.Text).Resize(400, 400, true);
//Convert the image to grayscale and filter out the noise
Image<Gray, Byte> gray = img.Convert<Gray, Byte>().PyrDown().PyrUp();
Gray cannyThreshold = new Gray(180);
Gray cannyThresholdLinking = new Gray(120);
Gray circleAccumulatorThreshold = new Gray(120);
@ntakouris
ntakouris / kickingasses
Created January 23, 2015 09:55
Best game dev code i have written
void Update () {
angle = 0;
bool up = false;
bool down = false;
bool right = false;
bool left = false;
bool vert = false;
bool hor = false;
Windows 7 Professional 64-bit SP1
CPU
Intel Core i5 2400 @ 3.10GHz 33 °C
Sandy Bridge 32nm Technology
RAM
4,00GB Single-Channel DDR3 @ 665MHz (9-9-9-24)
Motherboard
ASRock B75 Pro3 (CPUSocket) 25 °C
Graphics
S27C570 (1920x1080@60Hz)
Memory slots
Total memory slots 4
Used memory slots 2
Free memory slots 2
Memory
Type DDR3
Size 4096 MBytes
Channels # Single
DRAM Frequency 665,1 MHz
CAS# Latency (CL) 9 clocks
@ntakouris
ntakouris / gist:49238c499236a4e789dc
Created March 15, 2015 08:18
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.180
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
#NaeNae Official Song Drop That NaeNae!!!by-@WeareToonz.mp3
#SELFIE (Official Music Video) - The Chainsmokers.mp3
'Boxed Off - Patrick Topping.mp3
'Forget' - Patrick Topping.mp3
12?? ??????? -H µ??a??? st? pe??d??µ??.mp3