Skip to content

Instantly share code, notes, and snippets.

learning stuff

Filip Miletic defphil

learning stuff
View GitHub Profile
View day5.cpp
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
std::vector<int> parse_input(std::string& in, char delimiter = ' ')
std::vector<int> result;
std::stringstream input_stream(in);
std::string parsed_number;
View fuckingDay3.cpp
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <array>
#include <algorithm>
#include <cmath>
using Lines = std::vector<std::string>;
View .Xresources-tmp
Xcursor.theme: whiteglass
Xcursor.size: 16
Xft.rgba: none
Emacs*font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso10646-1
Emacs*menubar.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*popup.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*dialog.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*foreground: grey90
Emacs*background: grey20
defphil / nixShellRust.nix
Created Nov 28, 2019
small nix script for nix-shell for Rust projects
View nixShellRust.nix
mozilla = import (builtins.fetchTarball;
nixpkgs = import <nixpkgs> { overlays = [ mozilla ]; };
with nixpkgs;
mkShell {
buildInputs = [
clang # needed for bindgen
defphil / makefilecpp
Created Mar 11, 2019
minimal makefile for cpp
View makefilecpp
CC = clang++
CXX = clang++
DEBUG = -ggdb -O1 -march=native
CXXFLAGS := $(DEBUG) -W -Wall -Wextra -std=c++17
LDLIBS := -lm
OUTPUT_OPTION = -MMD -MP -o $@ -MJ $@.json
# Modify your C++ filesuffix here:
defphil / makefile1
Created Mar 11, 2019
minimal c makefile template
View makefile1
CC = gcc
DEBUG = -ggdb -O0 -march=native
CFLAGS := $(DEBUG) -W -Wall -Wextra -Wpedantic -pedantic -ansi
LDLIBS := -lm
SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)
DEP := $(SRC:.c=.d)
-include $(DEP)
View gist:76860c2574c99182f3dacb3b473e6d37
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZEtEYRawNwcEDrsnEE4mjaG+VJNgN8Ti7jHkRw0R/kqpFYeQiyowEVGE9yiXGndemF8jLtBIbs0DK6t1MhdYZtTRzMbH0XpKCewuI83iAw4fCcuoRm2V/uv5ReLo1ZXMv7Y2YJaEgym8AGof3bsrURv1URkc31KHPCFNo/MjzjeZceti1UeCygl5OvW6JUwXmgAdgXB61DNJ1NfSNDCki1hrOoqaotdd3wH6WudirbyRGorv8/1VKrY/EPBPP8NTqiPb9Cjb89tauioO517ItGz9ePubS8iWhHmFTqZVOaMnQArtiuipy8hTPhMo1m1Q/QXnmWtCD+Zg7b4TIBSqv
View colors.txt
foreground = #AAAAB8
foreground_bold = #F7F6F2
cursor = #EF3B56
background = rgba (33,33,33)
# Black, Gray, Silver, White
color0 = #494949
color8 = #969896
color7 = #c5c8c6

Keybase proof

I hereby claim:

  • I am defphil on github.
  • I am phlm ( on keybase.
  • I have a public key whose fingerprint is CB2B 5DC1 F45D 90AC 813C 0A13 B032 F3F8 459F 3439

To claim this, I am signing this object:

View init.el
;; Don't load outdated byte code
(setq load-prefer-newer t)
;; Bootstrap 'use-package'
(require 'package))
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . ""))
You can’t perform that action at this time.