This file contains 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
#!/bin/bash | |
# | |
# The following script is a ugly hack. But it works, so yeah \m/ | |
# | |
# It uses awk, cut, head, tail, rem2ics and fzf (whereas this is only for the | |
# selection-process and could be replaced). | |
# | |
# Purpose: | |
# |
This file contains 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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
/etc/nixos/hardware-configuration.nix | |
]; | |
# Use the GRUB 2 boot loader. | |
boot.loader.grub.enable = true; |
This file contains 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
module Main | |
where | |
data Node = Node { chr :: Char | |
, next :: Maybe Node } | |
deriving (Show) | |
prepareInput :: String -> String | |
prepareInput str = filter (\c -> c `elem` ['(', ')']) str |
This file contains 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
1. function pointer: | |
type (*ptr)(args) | |
which would be our style, will result in | |
type (* ptr)(args) |
This file contains 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
# Uncrustify 0.60 | |
# | |
# General options | |
# | |
# The type of line endings | |
newlines = lf # auto/lf/crlf/cr | |
# The original size of tabs in the input |
NewerOlder