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
| %%% | |
| %%% CHICAGO BOSS PROJECT SKELETON | |
| %%% | |
| %%% This file can be modified by you to avoid you needing to reenter | |
| %%% defaults when creating new projects. For full configuration | |
| %%% details, please visit | |
| %%% https://github.com/evanmiller/ChicagoBoss/wiki/Configuration | |
| %%% When running tests, you may want to create a separate configuration file | |
| %%% "boss.test.config" which, if present, will be read instead of boss.config. |
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
| # >---------------------------------------------------------------------------< | |
| # | |
| # _____ _ _ __ ___ _ | |
| # | __ \ (_) | \ \ / (_) | | | |
| # | |__) |__ _ _| |___\ \ /\ / / _ ______ _ _ __ __| | | |
| # | _ // _` | | / __|\ \/ \/ / | |_ / _` | '__/ _` | | |
| # | | \ \ (_| | | \__ \ \ /\ / | |/ / (_| | | | (_| | | |
| # |_| \_\__,_|_|_|___/ \/ \/ |_/___\__,_|_| \__,_| | |
| # | |
| # This template was generated by RailsWizard, the amazing and awesome Rails |
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
| qs [] = [] | |
| qs (x:xs) = qs (filter (<= x) xs) ++ [x] ++ qs (filter (> x) xs) |
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 where | |
| import Text.ParserCombinators.Parsec | |
| runop :: Char -> Integer -> Integer -> Integer | |
| runop '+' firstOperand secondOperand = firstOperand + secondOperand | |
| runop '-' firstOperand secondOperand = firstOperand - secondOperand | |
| runop '*' firstOperand secondOperand = firstOperand * secondOperand | |
| runop '^' firstOperand secondOperand = firstOperand ^ secondOperand | |
| operation :: Parser Integer |
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 ChameleonBass where | |
| import Haskore.Music | |
| import Haskore.Melody | |
| import Haskore.Basic.Pitch | |
| import Haskore.Basic.Duration | |
| import Haskore.Music.GeneralMIDI | |
| import Haskore.Interface.MIDI.Render | |
| pitch_line = map (\(x,y,z) -> x (y :: Octave) z () ) |
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
| -- relational.hs | |
| import Database.HDBC | |
| import Database.HDBC.PostgreSQL | |
| import Data.List | |
| printTuples conn rel = quickQuery' conn ("SELECT DISTINCT * FROM " ++ rel) [] | |
| (⋈) = intercalate " NATURAL JOIN " | |
| (π) fields rel1 = "(SELECT " ++ (intercalate "," fields) ++ " FROM " ++ rel1 ++ ") a" |
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
| (¬) True = False | |
| (¬) False = True | |
| True ∧ x = x | |
| False ∧ x = False | |
| True ∨ x = True | |
| False ∨ x = x | |
| True → x = x |
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
| brew install erlang |
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
| wget http://www.chicagoboss.org/ChicagoBoss-0.8.7.tar.gz | |
| tar -xvf ChicagoBoss-0.8.7.tar.gz | |
| cd ChicagoBoss | |
| make |
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
| make app PROJECT=petster | |
| cd ../petster |