Skip to content

Instantly share code, notes, and snippets.

View alper's full-sized avatar
Always coffee

Alper Cugun alper

Always coffee
View GitHub Profile
# {{date:dddd, MMMM Do, YYYY}}
### Due Today
```tasks
((due on <% tp.file.title %>) OR (due before <% tp.file.title %>)) AND NOT done
```
### Scheduled Today
@alper
alper / config.fish
Last active October 14, 2020 13:20
Fish configuration
set -x LC_ALL en_US.UTF-8
set -x LANG en_US.UTF-8
# https://github.com/oh-my-fish/theme-bobthefish
set -g theme_date_format "+%d %H:%M"
set -g theme_date_timezone Europe/Berlin
# Pyenv provided by: https://github.com/oh-my-fish/plugin-pyenv
Gemnr;Gemeente;Bev_2020;van_datum;tot_datum;Totaal_Absoluut;Totaal_inc100000;Zkh_Absoluut;Zkh_inc100000;Overleden_Absoluut;Overleden_inc100000
518;'s-Gravenhage (gemeente);545838;26-8-2020;8-9-2020;799;146,4;3;0,5;1;0,2
796;'s-Hertogenbosch;155111;26-8-2020;8-9-2020;58;37,4;0;0;1;0,6
1680;Aa en Hunze;25445;26-8-2020;8-9-2020;0;0;0;0;0;0
358;Aalsmeer;31859;26-8-2020;8-9-2020;21;65,9;0;0;0;0
197;Aalten;27121;26-8-2020;8-9-2020;7;25,8;0;0;0;0
59;Achtkarspelen;27843;26-8-2020;8-9-2020;0;0;0;0;0;0
482;Alblasserdam;20165;26-8-2020;8-9-2020;9;44,6;0;0;0;0
613;Albrandswaard;25590;26-8-2020;8-9-2020;15;58,6;0;0;0;0
361;Alkmaar;109436;26-8-2020;8-9-2020;27;24,7;0;0;0;0
@alper
alper / seating.snt
Last active October 4, 2019 09:51
Basic seating arrangement solver
array2<int> rooms;
# Each room is represented by the maximum number of people that it can seat
rooms = [2, 3, 4, 5];
# People are represented by a list of indexes of the rooms where they sit (ten people in this case)
array10<int> people;
function respectCapacity? (people, roomNumber, capacity) {
@alper
alper / prepare-commit-msg
Last active June 19, 2019 08:41
A git hook that checks whether there is an issue number in the first line of your commit message
#!/usr/bin/env python3
import sys
commit_msg_filepath = sys.argv[1]
with open(commit_msg_filepath, 'r+') as fh:
lines = fh.readlines()
if '#' not in lines[0]:
//
// Models.swift
// strw
//
// Created by Alper Cugun on 23/8/18.
// Copyright © 2018 alper. All rights reserved.
//
import Foundation
@alper
alper / Test-cmpcodesize.sh
Created January 30, 2018 13:24
Relevant commands for cmpcodesize that still need to work
#!/bin/sh
export SWIFT_OLD_BUILDDIR="/Users/alper/Documents/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64"
export SWIFT_NEW_BUILDDIR="/Users/alper/Documents/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64"
./cmpcodesize.py -a
./cmpcodesize.py -a -p > out_a.csv
./cmpcodesize.py -c
./cmpcodesize.py -c -p > out_c.csv
@alper
alper / simple-git-branching-model.md
Last active August 26, 2024 02:09 — forked from jbenet/simple-git-branching-model.md
Normative git branching model based on rebasing and best practices

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.