This file contains hidden or 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, lib, system, ...}: | |
let | |
notBroken = (p: lib.isDerivation p && !(p.meta.broken or false)); | |
in | |
{ | |
services.hoogle = { | |
enable = true; | |
port = 8081; |
This file contains hidden or 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
import Data.Monoid | |
import Data.Foldable | |
data Tree a = Empty | |
| Node (Maybe a) | |
(Tree a) | |
(Tree a) | |
deriving (Show) | |
instance Foldable Tree where |
This file contains hidden or 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, ... }: | |
{ | |
# make a copy of this configuration, just in case | |
environment.etc.current-nixos-config.source = ./.; |
This file contains hidden or 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
❯ arm-none-eabi-gcc -v | |
Using built-in specs. | |
COLLECT_GCC=arm-none-eabi-gcc | |
COLLECT_LTO_WRAPPER=/nix/store/va47si3g9rkmp9z0606b6nx1chpvl023-gcc-arm-embedded-6-2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/lto-wrapper | |
Target: arm-none-eabi | |
Configured with: /tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/src/gcc/configure --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/install-native --libexecdir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/install-native/lib --infodir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-262_20170621_1498074986/ins |
This file contains hidden or 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
class FcmController < AppController | |
def fcm | |
result = fcm_post | |
if result.success? | |
render json: result.body | |
else | |
render json: {error: 'something failed...'} | |
end | |
end | |
This file contains hidden or 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
import ( builtins.fetchGit { | |
name = "nixpkgs-2019-08-25"; | |
url = https://github.com/nixos/nixpkgs/; | |
rev = "8d1510abfb592339e13ce8f6db6f29c1f8b72924"; | |
}) { | |
config = { | |
allowUnfree = true; | |
}; | |
} |
This file contains hidden or 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
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
# Core | |
gem 'bootsnap', '>= 1.1.0', require: false | |
gem 'date' | |
gem 'dotenv-rails' | |
gem 'fileutils', '~> 1.0.0' | |
gem 'pg', '>= 0.18', '< 2.0' | |
gem 'rails', '~> 5.2.0' |
This file contains hidden or 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 Layout (myLayoutHook) where | |
import XMonad.Layout | |
import XMonad.Layout.BinarySpacePartition | |
import XMonad.Layout.BorderResize | |
import XMonad.Layout.NoBorders | |
import XMonad.Layout.ResizableTile | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.ThreeColumns |
This file contains hidden or 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
neovim: | |
/home/jon/.config/nvim | |
/home/jon/.nix-profile/etc/xdg/nvim | |
/nix/var/nix/profiles/default/etc/xdg/nvim | |
/run/current-system/sw/etc/xdg/nvim | |
/etc/profiles/per-user/jon/etc/xdg/nvim | |
/home/jon/.local/share/nvim/site | |
/run/opengl-driver/share/nvim/site | |
/run/opengl-driver-32/share/nvim/site | |
/home/jon/.nix-profile/share/nvim/site |
This file contains hidden or 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
# in rails project | |
with (import <nixpkgs> {}); | |
let | |
rubyenv = bundlerEnv { | |
name = "cart-env"; | |
# Setup for ruby gems using bundix generated gemset.nix | |
inherit ruby_2_6; | |
gemfile = ./Gemfile; |