pacmd suspend true
- open qjackctl
- click "Setup"
- set "Interface" to your output
- set "Frames/Period" to high enough value to avoid XRuns (can be lowered later on)
- click "Start"
- open Supercollider
s.boot
Ctrl+Enter
{SinOsc.ar(1000)}.play
Ctrl+Enter
This file contains 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 RankNTypes #-} | |
import Control.Monad (forM_) | |
import GHC.Stack | |
httpCall :: HasCallStack => String -> IO () | |
httpCall url = do | |
putStrLn $ prettyCallStack callStack | |
print $ "GET " <> url <> " resolved" |
This file contains 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 RankNTypes #-} | |
import Control.Monad (forM_) | |
import GHC.Stack | |
httpCall :: HasCallStack => IO () | |
httpCall = do | |
putStrLn $ prettyCallStack $ callStack | |
print "http resolved" |
This file contains 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
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
bowerComponents = pkgs.buildBowerComponents { | |
name = "bower-test"; | |
generated = ./bower-generated.nix; | |
src = ./.; | |
}; |
This file contains 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
-- | Can pattern match on nonempty lists | |
-- | |
-- @ | |
-- import Custom.NonEmpty (head, pattern NEL) | |
-- let arr = [1,2,3] | |
-- case arr of | |
-- NEL ne -> head ne | |
-- [] -> 42 | |
-- @ | |
-- |
This file contains 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
handler1 :: String -> Handler c | |
handler1 emailToken = liftIO $ withTransaction conn $ do | |
res1 <- findEmailTokenInDB emailToken :: IO a | |
if !foundToken(res1) | |
then (throwError $ err401) -- not an IO operation | |
else (do | |
deleteToken emailToken :: IO b | |
authenticateUser :: IO c | |
) |
This file contains 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
class Observable { | |
constructor(gen) { | |
this.gen = gen; | |
} | |
subscribe(o) { | |
const observer = (o instanceof Observer) ? o : new Observer(o); | |
const cancellationFn = this.gen(observer); | |
return cancellationFn; |
This file contains 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
class Observable { | |
constructor(gen) { | |
this.gen = gen; | |
} | |
subscribe(o) { | |
const observer = (o instanceof Observer) ? o : new Observer(o); | |
const cancellationFn = this.gen(observer); | |
return cancellationFn; |
This file contains 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
diff -C 4 -r clean/wso2am-2.1.0/repository/conf/api-manager.xml wso2am-2.1.0/repository/conf/api-manager.xml | |
*** clean/wso2am-2.1.0/repository/conf/api-manager.xml 2017-02-02 14:49:16.000000000 +0100 | |
--- wso2am-2.1.0/repository/conf/api-manager.xml 2017-05-24 10:02:46.865844400 +0200 | |
*************** | |
*** 1,9 **** | |
<APIManager> | |
<!-- JNDI name of the data source to be used by the API publisher, API store and API | |
key manager. This data source should be defined in the master-datasources.xml file | |
in conf/datasources directory. --> | |
! <DataSourceName>jdbc/WSO2AM_DB</DataSourceName> |