In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |
-- This is going to be on Hackage soon! https://github.com/gatlin/surely | |
{-# LANGUAGE BangPatterns #-} | |
-- | | |
-- Module : AI.Surely | |
-- Copyright : 2012 Gatlin Johnson | |
-- License : LGPL 3.0 | |
-- Maintainer : rokenrol@gmail.com | |
-- Stability : experimental |
- Haskell Mergesort | |
- Copyright (C) 2014 by Kendall Stewart | |
First we define a couple of helper functions that | |
will be useful in splitting the list in half: | |
> fsthalf :: [a] -> [a] | |
> fsthalf xs = take (length xs `div` 2) xs |
Various blog posts related to Nix and NixOS
configuration.nix
example.project=$(basename "$(pwd)") | |
# build dependencies | |
build_deps="stack build $project --fast --pedantic --dependencies-only --interleaved-output" | |
# restart on changes in other packages | |
restarts=$(find ../. -maxdepth 1 -type d \ | |
-not -name "$project" \ | |
-not -name .stack-work \ | |
-not -name . \ |
module RuntimeTypes where | |
open import Function | |
open import Data.Unit | |
open import Data.Bool | |
open import Data.Integer | |
open import Data.String as String | |
open import Data.Maybe hiding (All) | |
open import Data.List | |
open import Data.List.All |
module Main | |
%default total | |
data Format | |
= FInt -- %d | |
| FString -- %s | |
| FOther Char -- [a-zA-Z0-9] | |
format : List Char -> List Format |
-- Problem 3 of @Hillelogram's Great Theorem Prover Showdown. | |
-- https://www.hillelwayne.com/post/theorem-prover-showdown | |
-- | |
-- Implemented using current stable-2.5 branch of Agda | |
-- (https://github.com/agda/agda/tree/08664ac) and the agda-prelude | |
-- library (https://github.com/UlfNorell/agda-prelude/tree/d193a94). | |
module Fulcrum where | |
open import Prelude hiding (_≤?_) |