- Språkvetenskap
- OOP
- concurrent programming
- paradigms
- IFP
- AFP
- Programspråk
- Allmänbildning för dataingenjörer och software engineering
- Datakommunikation
- Allmänbildning
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
public abstract class Mixologist extends Person { | |
protected static Integer numServings = 0; | |
protected static synchronized void addServing() | |
{ | |
numServings++; | |
} | |
... |
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
# comile-runna jr-program | |
function ja(){ | |
clear | |
echo "Compiling $*" | |
jrc *.jr 2>&1 | grep -v "^Note: " | |
jr $* 2>&1 | grep -v "^Note: " | |
} | |
function ja_(){ |
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
# Starta train | |
alias setc='setup_course tda381' | |
alias runt='cd ~/ConcLabbar/Lab1/Trainspotting/Trainspotting/build/classes/ && 2 "tsim bana" "java Lab1 30 20"' | |
function runt2() { | |
cd ~/ConcLabbar/Lab1/Trainspotting/Trainspotting/build/classes/ && 2 "tsim -s $1 bana" "java Lab1 10 5" | |
} | |
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
+4 -4 +5 -5 -5 -5 +4 -4 +5 +5 | |
+3 +4 +5 -4 -4 -4 -4 +4 -4 +5 +5 | |
+4 +4 -4 +5 -5 -5 -5 -5 +4 -4 +5 +5 | |
-4 -4 -4 -3 +3 -3 -4 +4 | |
textulated from http://www.harmonicaclub.com/tabs/tll/this_land_is_your_land.htm |
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
source: http://www.harmonicaclub.com/tabs/The_Flintstones_Theme.htm | |
A harmonica 1st position | |
6b 4b | |
7b 6d 6b 4b | |
6b 5d 5b 5b 5d 6b 4b 4d 5b |
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 Mailman where | |
import System.Process (readProcessWithExitCode) | |
import System.Exit (ExitCode(..)) | |
import Data.List | |
type MailingList = String | |
-- Before using this module: | |
-- Make sure you have `list_members` command available, and that you don't |
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
{-# LANGUAGE FlexibleInstances #-} | |
import Test.QuickCheck | |
newtype List a = List { unList :: [a] } | |
deriving (Show, Read, Eq, Ord) | |
data ListBind a = ListBind (a -> List a) String | |
instance Show (ListBind a) where | |
show (ListBind _ name) = name |
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 Test where | |
import Data.Time.RFC3339 | |
import Data.Time.LocalTime | |
import Data.Time.Calendar (addDays) | |
import Network.URL | |
main = do | |
putStrLn $ exportURL paramUrl | |
startTime <- getZonedTime >>= return . showRFC3339 |
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
{-# LANGUAGE ViewPatterns #-} | |
module Test where | |
import qualified Codec.Binary.UTF8.String as UTF8 | |
import Data.Time.RFC3339 | |
import Data.Time.LocalTime | |
import Data.Time.Calendar (addDays) | |
import Network.URL | |
import Network.HTTP | |
import Text.HTML.TagSoup |
OlderNewer