Skip to content

Instantly share code, notes, and snippets.

View sbrki's full-sized avatar

Stjepan Brkić sbrki

  • Zagreb
View GitHub Profile
@sbrki
sbrki / Makefile
Last active October 27, 2020 11:49
GPU=1
CUDNN=0
CUDNN_HALF=0
OPENCV=1
AVX=0
OPENMP=0
LIBSO=0
ZED_CAMERA=0
ZED_CAMERA_v2_8=0
@sbrki
sbrki / timeout.go
Created October 25, 2020 00:48
go timeout example using context
package main
import (
"context"
"fmt"
"time"
)
func routine(ctx context.Context) {
for {
@sbrki
sbrki / tmux_colors.sh
Created March 28, 2020 11:48
Tmux color codes
#!/bin/bash
for i in {0..255}; do printf "\x1b[38;5;${i}mcolor%-5i\x1b[0m" $i ; if ! (( ($i + 1 ) % 8 )); then echo ; fi ; done
@sbrki
sbrki / autotex.sh
Created December 2, 2019 20:39
Simple bash script for compiling and live previewing LaTeX
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No tex file provided"
echo "Usage: ./autotex.sh file.tex"
exit
fi
zathura $(echo $1 | sed "s/tex/pdf/") & # run the pdf viewer
% from http://sethest.dx.am/dot-paper-generator/
% spacing 7mm, size 0.15 pt
\documentclass{article}
\title{Dot Paper}
\usepackage{geometry}
\geometry{a4paper, margin=0mm}

GSoC 2018. -- Improve Core Animation implementation and integrate it into AppKit (GNU/GNUstep)

1. Project goals (taken from proposal)

Although GNUstep has an implementation of both AppKit and CoreAnimation, they are not integrated. The goal of the project would be to allow AppKit’s views to draw into Core Animation layers, and therefore to be better animatable.

>The main goal would be to implement automatic creation of CALayer tree from the existing NSView tree, as well as to implement creation of a CARenderer and OpenGL view in the appropriate place.