This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MethodOverriding { | |
interface A { | |
default void foo() { | |
System.out.println("Foo: A"); | |
} | |
} | |
interface B extends A { | |
@Override | |
default void foo() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
REGEX = %r{TRP.*(\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}).*(\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}).*(\d{2}:\d{2}:\d{2}).*(\d{4}\.\d{2}\.\d{2}\.\d{2}\.\d{2}\.\d{2})} | |
abort "You must enter file paths via CLI" unless ARGV.length > 0 | |
ARGV.each do |file_path| | |
File.open(file_path, "rb") do |f| | |
results = f.read.scan(REGEX) | |
if results.length != 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a GNU Make file which describes how to build the application's | |
# DLL/SO for both x86 Windows and Linux systems. | |
# | |
# | |
# To do a full compile, invoke 'make all' | |
# To build just the test executable, invoke 'make bins' | |
# | |
CC:=$(shell which cc) | |
CFLAGS=-Wall -pedantic -O3 -std=c99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC:=$(shell which cc) | |
CC_WIN_32:=$(shell which i686-w64-mingw32-gcc) | |
CC_WIN_64:=$(shell which x86_64-w64-mingw32-gcc) | |
CFLAGS= | |
DEFINES=-DDEBUG | |
CFILES=example.c | |
OUTPUT=example | |
BIN_DIR=bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mkhash(filelist) | |
hash = Hash.new() | |
hash.default = [] | |
filelist.each do |path| | |
File.open(path) do |f| | |
tmp = f.read | |
hash[tmp].push(path) | |
end | |
end | |
return hash |
NewerOlder