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
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
let | |
avconv = runCommand "avconv" { | |
buildInputs = [ makeWrapper ]; | |
} '' | |
mkdir $out | |
ln -s ${ffmpeg}/* $out | |
rm $out/bin | |
mkdir $out/bin |
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
# Below patches steam with the right libraries so you can play | |
# Loop Hero. Have fun! | |
nixpkgs.config.packageOverrides = pkgs: { | |
steam = pkgs.steam.override { | |
extraPkgs = pkgs: [ | |
pkgs.openssl_1_1 | |
pkgs.libnghttp2 | |
pkgs.libidn2 | |
pkgs.rtmpdump | |
pkgs.libpsl |
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
with import <nixpkgs> {}; | |
# { stdenv, dpkg, fetchurl, glibc, gcc-unwrapped, autoPatchelfHook, pkgs }: | |
let | |
# Please keep the version x.y.0.z and do not update to x.y.76.z because the | |
# source of the latter disappears much faster. | |
version = "11.0.0"; | |
src = fetchurl { | |
url = "https://static.tibia.com/download/tibia.x64.tar.gz"; |
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, ... }: | |
{ | |
home.packages = with pkgs; [ | |
arandr | |
spotify | |
oh-my-zsh | |
transmission | |
steam | |
peek |
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
syntax on | |
filetype plugin indent on | |
" Random basic settings | |
let mapleader = "\<Space>" | |
set number " Always show line numbers | |
set nocompatible " No vi compatibility | |
set cursorline " Highlight current line | |
set so=5 |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, vim_configurable, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
filetype off | |
" Plug setup | |
call plug#begin('~/.config/nvim/plugged') | |
" Linting & completion | |
Plug 'w0rp/ale' | |
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}} |
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
dupl = [] | |
for xyz in xyz_array: | |
try: | |
i = [y[0] for y in dupl].index(xyz[:-1]) | |
except: | |
i = False | |
if not i: | |
dupl.append([xyz[:-1], xyz[2:], 1]) | |
else: | |
dupl[i][1]+=xyz[2:] |
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
data = { | |
"bills": [ | |
{ | |
"url": "http:\/\/maplight.org\/us-congress\/bill\/110-hr-195\/233677", | |
"jurisdiction": "us", | |
"session": "110", | |
"prefix": "H", | |
"number": "195", | |
"measure": "H.R. 195 (110\u003csup\u003eth\u003c\/sup\u003e)", | |
"topic": "Seniors' Health Care Freedom Act of 2007", |
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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#ifndef TYPEDEF_ENUM_BOOLEAN_DECLARED_ | |
#define TYPEDEF_ENUM_BOOLEAN_DECLARED_ | |
typedef enum{ false, true } boolean; | |
char* bool_print[] = {"no", "yes"}; | |
#endif |