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
foreach( $i in $args ) { | |
$figurename = $i | |
} | |
$fontface = "times" | |
$fontsize = "scriptsize" | |
$outputname = "c$figurename" | |
$outputtex = "c$figurename.tex" | |
gnuplot "$figurename" |
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
-- Implementation of Reddit /r/DailyProgrammer challenge #212 [Easy] | |
-- Rövarspråket | |
import Data.Char (isUpper, toLower) | |
type Consonants = [Char] | |
robberEncode :: Consonants -> String -> String | |
robberEncode cons = concat . map mapper | |
where mapper :: Char -> String |
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 Main (main) where | |
import Data.List (permutations) | |
import Control.Monad (forM_) | |
gridValue :: [Float] -> Float | |
gridValue xs = ((((((a + 13)*b)/c)+d + 12) * e) - f - 11 + g) * h / i | |
where a = xs !! 0 | |
b = xs !! 1 | |
c = xs !! 2 |
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
Part 1: Installing MSYS2/MinGW-W64 | |
Windows is a piece of shit so to make the projects and code interoperable between Windows and Linux | |
development environments we need to setup a Linux compatible build environment on Windows. | |
1. Go to http://msys2.github.io/ | |
2. Follow instructions 1 - 6 on the page. Make sure you remember where you installed this! | |
NB: For instruction 6 it asks you to close MSYS2, do this by pressing the X button, not | |
by typing exit (which is how you would normally do it). | |
3. Type the following command into the MSYS2 shell: |