Skip to content

Instantly share code, notes, and snippets.

Eleni Maria Stea hikiko

Block or report user

Report or block hikiko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hikiko
hikiko / Makefile
Last active Apr 21, 2019
name it MakefileSimple put it in VKDF_HOME, builds the lib and the data/spirv shaders, generates framework/config.h To run it see the comments.
View Makefile
src = $(filter-out %-sdl.cpp %-glfw.cpp, $(wildcard framework/*.cpp))
obj = $(src:.cpp=.o)
dep = $(obj:.o=.d)
lib_so = libvkdf.so
spv = $(patsubst %.input,%.spv,$(wildcard data/spirv/*.input)) \
$(patsubst %.frag,%.frag.spv,$(wildcard data/spirv/*.frag)) \
$(patsubst %.vert,%.vert.spv,$(wildcard data/spirv/*.vert))
dbg = -g
@hikiko
hikiko / hours-validator.pl
Last active Apr 11, 2019
Perl script that searches a dir for valid csv reports, parses the ones found and prints the total hours per project when no story is available.
View hours-validator.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
my $report;
my $dir;
my $help;
@hikiko
hikiko / report-validator.pl
Last active Apr 11, 2019
parses a csv with info on projects and hours and counts the hours that correspond to each project
View report-validator.pl
use strict;
use warnings;
use Getopt::Long;
my $report;
my $help;
GetOptions("r=s", => \$report,
"h" => \$help);
@hikiko
hikiko / Makefile
Last active Apr 19, 2019
Android makefile (not for apk). Just a reminder for adb stuff, compiler selection etc
View Makefile
obj = main.o
bin = test
toolchain_prefix = armv7a-linux-androideabi28-
CC = $(toolchain_prefix)clang
CFLAGS = -pedantic -Wall -g -O0
$(bin): $(obj)
$(CC) -o $@ $(obj) $(LDFLAGS)
@hikiko
hikiko / toc.pl
Last active Apr 11, 2019
creates a toc.html file with links to each file of a given directory, inside the directory.
View toc.pl
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use Getopt::Long;
my $dir = ".", my $help;
GetOptions("d=s" => \$dir,
@hikiko
hikiko / pc-notify.pl
Last active Apr 27, 2019
perl client for: https://github.com/jtsiomb/phoneline/tree/master/phonelined prints desktop notifications when someone calls at home and allows me to hang up the call from my laptop :D
View pc-notify.pl
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use Getopt::Long;
use Gtk2::Notify -init, "pc-notify";
use Socket;
@hikiko
hikiko / greeklish.pl
Last active Mar 16, 2019
old script - not tested recently - convert greek to latin fnames (?)
View greeklish.pl
#!/usr/bin/perl
use strict;
use Encode;
use File::Copy;
my $dir;
my @files;
my $file;
my $initfile;
@hikiko
hikiko / thumbs.pl
Last active Mar 16, 2019
old script - supposed to create thumbs from images and thumbs.html file (not tested recently)
View thumbs.pl
#!/usr/bin/perl
use strict;
use File::Path qw(rmtree);
use File::Copy;
use File::MimeInfo;
use Image::Magick;
my @files;
@hikiko
hikiko / minandmax.pl
Created Jan 24, 2019
reads v x y z values from obj (supposing 1 model) to find the bounding sphere radius
View minandmax.pl
#!/usr/bin/perl
use strict;
use warnings;
use POSIX;
use List::Util qw[min max];
my $fname = $ARGV[0];
if(not defined $fname) {
die "You must set the vectors filename.\n";
@hikiko
hikiko / ext_snippets.pl
Last active Mar 16, 2019
greps the extension related code snippets from Vulkan-Docs (ifdef VK_EXT_... to #endif)
View ext_snippets.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
my $dir;
my $extname;
my $help;
You can’t perform that action at this time.