Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sjfloat
sjfloat / nix.csh
Last active July 29, 2021 04:19
port of nix.sh
set NIX_LINK="$HOME/.nix-profile"
# Set the default profile.
test -L "$NIX_LINK"
if ( $status != 0 ) then
echo "creating $NIX_LINK" >&2
set _NIX_DEF_LINK=/nix/var/nix/profiles/default
/nix/store/rznhi2hyzcgckk7yb2662lr57sb906ps-coreutils-8.24/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
endif
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, ZHANG Weiyi <dochang@gmail.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@sjfloat
sjfloat / install-ghcjs-for-stack.hs
Created November 29, 2015 13:52 — forked from 3noch/install-ghcjs-for-stack.hs
Install GHCJS for Stack
#!/usr/bin/env stack
-- stack --install-ghc runghc --package turtle --package wreq
{-# LANGUAGE OverloadedStrings #-}
import qualified Control.Foldl as Fold
import Control.Lens ((^.))
import Control.Monad (when)
import Data.ByteString.Lazy (hPut)
import Data.Maybe (fromMaybe)
@sjfloat
sjfloat / learning-lens.md
Last active September 11, 2015 08:41 — forked from taksuyu/learning-lens.md
A list of material that helped me learn the lens package.

Learning Lens

I tend to focus on core concepts quite a bit more than actual examples, so that the fundamental understanding of what the examples are trying to teach me is building on skills I already have just haven't figured out how to use yet.

tl;dr Your mileage may vary. I learn kind of counterintuitively for others.

Since this seemed to be popular, I decided to make a repository for content about haskell topics that you can find here new materials for lens will be put here

@sjfloat
sjfloat / README.md
Last active August 29, 2015 14:26 — forked from timyates/README.md
Generating terminal gifs on OS X the free way

Didn't work any of this out, I just stuck things together that I found on the web

First, install the things:

brew install imagemagick
brew install ffmpeg

Then, I have a small (600px wide) iTerm window with a big font. Load Quicktime, and record screen (just the area of the terminal)

Trim and save the mov somewhere (lets say ~/Documents/term.mov)

#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
# Install the Homebrew package manager if you don't already use it; see source http://brew.sh