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 DataKinds #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE ExplicitForAll #-} | |
| import GHC.TypeLits | |
| data Proxy (a :: Nat) = Proxy |
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
| Name: ATLAS2011 | |
| Class: TopLevel | |
| Description: ATLAS 2011 detector description | |
| Reference: arXiv:xxxx.yyyy | |
| Comment: extracted the efficiencies from the plot 3,4,5 in the reference | |
| ValidationInfo: Validated on 2014/02 | |
| Object: | |
| Electron: | |
| Import: Electron_Loose_ATLAS | |
| Photon: |
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
| #include <boost/optional.hpp> | |
| #include <boost/bind.hpp> | |
| #include <boost/preprocessor/slot/counter.hpp> | |
| #include <iostream> | |
| #include <ostream> | |
| using namespace std; | |
| template<unsigned ID,typename Functor> | |
| boost::optional<Functor> &get_local() | |
| { |
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 Foreign.C.Types | |
| import Foreign.Ptr | |
| foreign import ccall "wrapper" | |
| wrap :: (CDouble -> CDouble) -> IO (FunPtr (CDouble -> CDouble)) | |
| foreign import ccall "callerback.h twice" | |
| twice :: FunPtr (CDouble -> CDouble) -> CDouble -> IO CDouble |
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
| import Control.Applicative | |
| import Control.Arrow | |
| import Control.Comonad | |
| import Control.Comonad.Trans.Store | |
| cget :: Store Int a -> Int | |
| cget = pos | |
| cput :: Store Int Int -> Store Int Int | |
| cput wf = seek (extract wf) wf |
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 ScopedTypeVariables #-} | |
| import Data.Monoid (mempty) | |
| import System.FilePath ((</>)) | |
| import System.Directory (getCurrentDirectory) | |
| import Text.StringTemplate hiding (render) | |
| -- | |
| import FFICXX.Generate.Code.Cabal | |
| import FFICXX.Generate.Code.Cpp | |
| import FFICXX.Generate.Code.Dependency |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script language="javascript" src="lib.js"></script> | |
| <script language="javascript" src="rts.js"></script> | |
| <script language="javascript" src="lib1.js"></script> | |
| <script language="javascript" src="out.js"></script> | |
| </head> | |
| <body> | |
| <canvas id="mycanvas" width="600" height="400"></canvas> |
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
| <!-- The top level combination spec --> | |
| <!-- OutputFilePrefix: Prefix to the output root file to be created (inspection histograms) --> | |
| <!-- Mode: Type of the analysis --> | |
| <!ELEMENT Combination (Function*,Input+,Measurement*)> | |
| <!ATTLIST Combination | |
| OutputFilePrefix CDATA #REQUIRED | |
| Mode CDATA #IMPLIED | |
| > |
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 A where | |
| import {-# SOURCE #-} B | |
| data Atyp = Atyp Btyp | |
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 OverloadedStrings #-} | |
| {-# LANGUAGE RecordWildCards #-} | |
| -- | Hello World in PDF :) | |
| -- | |
| -- Right now there are no high level tools for PDF generating. | |
| -- This example is very low level. Nothing more then proof | |
| -- of concept. | |
| module Main |