This code now lives in its own repo https://github.com/snoyberg/kids-haskell-ide
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
""" Copy a file with callback (E.g. update a progress bar) """ | |
# based on flutefreak7's answer at StackOverflow | |
# https://stackoverflow.com/questions/29967487/get-progress-back-from-shutil-file-copy-thread/48450305#48450305 | |
# License: MIT License | |
import os | |
import pathlib | |
import shutil |
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
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo "no input file name"; | |
exit 1; | |
else | |
mp3file="$1"; | |
fi | |
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
#!/usr/bin/env stack | |
-- stack --resolver lts-8.19 script --package Cabal --package Glob | |
-- This script counts the total number of versions and revisions on Hackage. | |
-- | |
-- Usage: | |
-- 1. Download and unpack <https://hackage.haskell.org/01-index.tar.gz>. | |
-- 2. Run `./Main.hs 'path-to-unpacked-index/**/*.cabal'`. | |
-- | |
-- Example output as of 23 July 2017: |
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
#!/bin/sh | |
set +ex | |
# A script to install stack on Raspbian | |
# Use stack installer script to install stack | |
curl -sSL https://get.haskellstack.org/ | sh | |
# Use apt-get to install llvm |
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
{- | |
stack | |
--resolver lts-7 | |
--install-ghc | |
runghc | |
--package aeson | |
--package bytestring | |
--package containers | |
-- | |
-Wall |
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
{- stack | |
--resolver lts-7 | |
--install-ghc | |
runghc | |
--package containers | |
--package filepath | |
--package http-client | |
--package http-client-tls | |
--package tar | |
--package time |
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
[ /Title (Elementary Differential Equations) | |
/Author (Edwards & Penney) | |
/DOCINFO pdfmark | |
[ /Title (Contents) | |
/Page 6 | |
/OUT pdfmark | |
[ /Count -8 | |
/Title (1. First-Order Differential Equations) |