_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
f9ceb19e740bc254301b642ea580c33b87f097ca91cfa040a657c9b3abdc5410
Opetushallitus/aipal
asetukset.clj
Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus ;; This program is free software : Licensed under the EUPL , Version 1.1 or - as soon as they will be approved by the European Commission - subsequent versions of the EUPL ( the " Licence " ) ; ;; ;; You may not use this work except...
null
https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal/src/clj/aipal/asetukset.clj
clojure
You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at: / This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus This program is free software : Licensed under the EUPL , Version 1.1 or - as soon as they will be approved by the European Commission - subsequent versions European Union Public Licence for more details . (ns aipal.asetukset (:r...
a8c865a7f8e5734725304c0b465485bac032ac5481131baa0952df1cbb8a668b
kushidesign/kushi
component_section.cljs
(ns ^:dev-always kushi.playground.component-section (:require [clojure.edn :refer [read-string]] [clojure.walk :as walk] [markdown-to-hiccup.core :as md->hc] [applied-science.js-interop :as j] [clojure.string :as string] [kushi.core :refer (sx merge-attrs)] [kushi.ui.collapse.core :refer (collaps...
null
https://raw.githubusercontent.com/kushidesign/kushi/095f9852d426d0b58ec0cdc06fb278dbdf05353b/src/kushi/playground/component_section.cljs
clojure
Only use if you have a fixed top-nav style this ... display only on mobile at call site :ref (fn [el] (dom/observe-intersection {:element el :f #(let [focused-component-is-visible? (contains? @state/*visible-sections @stat...
(ns ^:dev-always kushi.playground.component-section (:require [clojure.edn :refer [read-string]] [clojure.walk :as walk] [markdown-to-hiccup.core :as md->hc] [applied-science.js-interop :as j] [clojure.string :as string] [kushi.core :refer (sx merge-attrs)] [kushi.ui.collapse.core :refer (collaps...
75fdf7f445f10223ee299b44d2565568abf3ebc0f9afe1528e3b057372e57f6f
LukaKurnjek/plutus-pioneer-program-book
monitor.hs
# LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} module Main ( main ) where import Control.Concurrent (threadDelay) import Control.Exception (throwIO) import Control.Monad (when) import Data.Aeson ...
null
https://raw.githubusercontent.com/LukaKurnjek/plutus-pioneer-program-book/0e69b2719dc7412a412a546825a002be5209e733/code/week06/app/monitor.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NumericUnderscores # module Main ( main ) where import Control.Concurrent (threadDelay) import Control.Exception (throwIO) import Control.Monad (when) import Data.Aeson (FromJSON (..)) import Data.Aeso...
f3f621df09fc79fa5f3772e69d007180dbc977ad6c0d59d321d1c011e0cd973b
fpco/ide-backend
Program.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Program Copyright : 2006 , 2007 - 2009 -- -- Maintainer : -- Portability : portable -- -- This provides an abstraction which deals with configuring and running -- programs. A 'Program'...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.22.0.0/Distribution/Simple/Program.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.Program Maintainer : Portability : portable This provides an abstraction which deals with configuring and running programs. A 'Program' is a static notion of a known program. A 'ConfiguredProgra...
Copyright : 2006 , 2007 - 2009 finding its version . There is also a ' ProgramConfiguration ' type which holds actions elsewhere in Cabal that need to look up and run programs . If we had a Cabal monad , the ' ProgramConfiguration ' would probably be a reader or The module also defines all the known ...
560da663797d9bbe431143716b0c273e97affc311162f3b16a66abac1773747f
travelping/ergw
gtp_v1_u.erl
Copyright 2015 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(gtp_v1_u). -beh...
null
https://raw.githubusercontent.com/travelping/ergw/1b6cc3ee89eea4cf9df1d7de612744f0a850dfd9/apps/ergw_core/src/gtp_v1_u.erl
erlang
This program is free software; you can redistribute it and/or API ==================================================================== API ==================================================================== =================================================================== =========================================...
Copyright 2015 , Travelping GmbH < > modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(gtp_v1_u). -behaviour(gtp_protocol). -export([gtp_msg_type/1, build_response/...
4098a25169cb3cc1a18cc532cea0c1f0335785eaa27af85466dbfe6abe75c0d3
Functional-AutoDiff/STALINGRAD
probabilistic-lambda-calculus-F-scmutils.scm
(define (make-constant-expression value) (list 0 value)) (define (constant-expression? expression) (d= (first expression) 0)) (define (constant-expression-value expression) (second expression)) (define (make-variable-access-expression variable) (list 1 variable)) (define (variable-access-expression? expression) (d=...
null
https://raw.githubusercontent.com/Functional-AutoDiff/STALINGRAD/8a782171872d5caf414ef9f8b9b0efebaace3b51/examples/examples2009/probabilistic-lambda-calculus-F-scmutils.scm
scheme
(define (make-constant-expression value) (list 0 value)) (define (constant-expression? expression) (d= (first expression) 0)) (define (constant-expression-value expression) (second expression)) (define (make-variable-access-expression variable) (list 1 variable)) (define (variable-access-expression? expression) (d=...
9a48331d5957d6a305e95f1c31909f25b0ee8570234ad3cf0650438d84caeee2
Lelio-Brun/Obelisk
test.ml
let exe = ref "" let mlys = ref [] let width = ref 0 let amount = ref 0 let tmp = "tmp" let prefix = "my_prefix42" let verbose = ref false let command cmd = Sys.command (cmd ^ if !verbose then "" else "> /dev/null 2>&1") = 0 let has_pdflatex = command "command -v pdflatex" let is_on_mac = let ic = Unix.open_process_i...
null
https://raw.githubusercontent.com/Lelio-Brun/Obelisk/ab8ab94f1974caca8a164768634fa171cfe47503/tests/test.ml
ocaml
let exe = ref "" let mlys = ref [] let width = ref 0 let amount = ref 0 let tmp = "tmp" let prefix = "my_prefix42" let verbose = ref false let command cmd = Sys.command (cmd ^ if !verbose then "" else "> /dev/null 2>&1") = 0 let has_pdflatex = command "command -v pdflatex" let is_on_mac = let ic = Unix.open_process_i...
42fd5d72b114b32a793194f2582dfada97fb9612e85dda16c2288532a695a324
mhaemmerle/entitas_erl
es_component.erl
-module(es_component). -include("../include/es.hrl"). -export([type/1]). type(#component{type = CType}) -> CType.
null
https://raw.githubusercontent.com/mhaemmerle/entitas_erl/8d7632e0901a48955d23181c3dc8177ca579ef6b/src/es_component.erl
erlang
-module(es_component). -include("../include/es.hrl"). -export([type/1]). type(#component{type = CType}) -> CType.
8f29524c9e8decab9e41af6c7bae591fc19766054cdbcee9de29182e84e1b039
jackfirth/syntax-warn
base.rkt
#lang racket/base (provide (for-label (all-from-out racket/base racket/contract syntax/warn)) config-tech config-tech-definition document-syntax-parameter kind-tech kind-tech-definition package-nam...
null
https://raw.githubusercontent.com/jackfirth/syntax-warn/f17fdd3179aeab8e5275a24e7d091d3ca42960a9/syntax-warn-doc/base.rkt
racket
#lang racket/base (provide (for-label (all-from-out racket/base racket/contract syntax/warn)) config-tech config-tech-definition document-syntax-parameter kind-tech kind-tech-definition package-nam...
8359c25bf94621cbe60c76739e3a1526139461d723bae37e26343fdb8e96753c
kyleburton/sandbox
scratch.clj
(ns graph-services.scratch (:require [clojurewerkz.neocons.rest :as nr] [clojurewerkz.neocons.rest.nodes :as nn] [clojurewerkz.neocons.rest.relationships :as nrl] [clojurewerkz.neocons.rest.cypher :as cy] [graph-services.config :as cnf :refer [config]] ...
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/neo4j/graph-services/src/graph_services/scratch.clj
clojure
TODO: uri escape the username & password surprise! nothing matches this query??? need to coerce flight.distance to an interger Ok, so this must change the state of the database update the cancelled to a boolean then you can query cancelled as a bool import a larger dataset ... the above w/data conversion OR ...
(ns graph-services.scratch (:require [clojurewerkz.neocons.rest :as nr] [clojurewerkz.neocons.rest.nodes :as nn] [clojurewerkz.neocons.rest.relationships :as nrl] [clojurewerkz.neocons.rest.cypher :as cy] [graph-services.config :as cnf :refer [config]] ...
bd33f8f2f1885c495e53495b70d50ba8f1d95e575006759af1afe8a205dd9ae7
CodeIntelligenceTesting/jazzer-clj
core.clj
(ns com.code-intelligence.jazzer-clj.core (:require [clojure.spec.alpha :as s] [clojure.string :as str]) (:import (com.code_intelligence.jazzer.api FuzzedDataProvider))) (def ^:no-doc fuzzer-test-one-input-signature (quote ^:static [fuzzerTestOneInput [com.code_intelligence.jazzer.api.FuzzedDataProvi...
null
https://raw.githubusercontent.com/CodeIntelligenceTesting/jazzer-clj/18061349c20013f29fdb59cba81bc415885dce89/src/com/code_intelligence/jazzer_clj/core.clj
clojure
(ns com.code-intelligence.jazzer-clj.core (:require [clojure.spec.alpha :as s] [clojure.string :as str]) (:import (com.code_intelligence.jazzer.api FuzzedDataProvider))) (def ^:no-doc fuzzer-test-one-input-signature (quote ^:static [fuzzerTestOneInput [com.code_intelligence.jazzer.api.FuzzedDataProvi...
454240a75824a0e52dae457f1ac28978c6be57ff6e5eb104ebcd0054774fef9f
mbj/stratosphere
CaptureContentTypeHeaderProperty.hs
module Stratosphere.SageMaker.EndpointConfig.CaptureContentTypeHeaderProperty ( CaptureContentTypeHeaderProperty(..), mkCaptureContentTypeHeaderProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.Resou...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/EndpointConfig/CaptureContentTypeHeaderProperty.hs
haskell
module Stratosphere.SageMaker.EndpointConfig.CaptureContentTypeHeaderProperty ( CaptureContentTypeHeaderProperty(..), mkCaptureContentTypeHeaderProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.Resou...
1d58283b94175cf540f8d5a3c56d00ba1ad820a65f0e7c3dc869f6fd75e388eb
input-output-hk/marlowe-cardano
Types.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE StrictData #-} module Language.Marlowe.Runtime.Indexer.Types where import Cardano.Api (CardanoMode, EraHistory, SystemStart) import Control.Applicative (empty) import Control.Monad (guard, mfilter, unless, when) imp...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/e0b4fa12179e4d26f15f04e2a453de934b644ae2/marlowe-runtime/indexer/Language/Marlowe/Runtime/Indexer/Types.hs
haskell
# LANGUAGE GADTs # # LANGUAGE StrictData # | Information about an unspent contract transaction output. ^ The version of the contract. ^ The unspent output. ^ The hash of the payout validator. MarloweUTxO. ^ The BlockHeader of the block. ^ The set of transactions in the block. ^ The current MarloweUTxO Runs the...
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # module Language.Marlowe.Runtime.Indexer.Types where import Cardano.Api (CardanoMode, EraHistory, SystemStart) import Control.Applicative (empty) import Control.Monad (guard, mfilter, unless, when) import Control.Monad.Except (MonadError(throwError), r...
9c4efc618b7dcfdfdddffbe32cafaba32323d5ecce1aa2fe21efa5f700bbedb3
mhaemmerle/excel-to-json
gui.clj
(ns excel-to-json.gui (:gen-class) (:require [clojure.core.async :refer [go chan <! >! put!]] [seesaw.core :as sc] [seesaw.bind :as sb] [seesaw.chooser :as sch] [seesaw.mig :as sm] [excel-to-json.core :as c] [excel-to-json.cli :as cli]) (:imp...
null
https://raw.githubusercontent.com/mhaemmerle/excel-to-json/1ddbe9e48519cdeb095b849f6bc74499262f2694/src/excel_to_json/gui.clj
clojure
(ns excel-to-json.gui (:gen-class) (:require [clojure.core.async :refer [go chan <! >! put!]] [seesaw.core :as sc] [seesaw.bind :as sb] [seesaw.chooser :as sch] [seesaw.mig :as sm] [excel-to-json.core :as c] [excel-to-json.cli :as cli]) (:imp...
c76d16b1512c69f238b20cfd10245530d3a158ef90022ebcd4cdeb39ffc91309
gheber/kenzo
combinations-test.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (in-package :kenzo-test-9) (in-suite :kenzo-9) (test f-cmpr (is (equal (cat-9:f-cmpr 1 2) :less)) (is (equal (cat-9:f-cmpr 2 2) :equal)) (is (equal (cat-9:f-cmpr 3 2) :greater)) (is (equal (cat-9:f-cmpr 123 789) :less)) (...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/test/kenzo-9/combinations-test.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - *
(in-package :kenzo-test-9) (in-suite :kenzo-9) (test f-cmpr (is (equal (cat-9:f-cmpr 1 2) :less)) (is (equal (cat-9:f-cmpr 2 2) :equal)) (is (equal (cat-9:f-cmpr 3 2) :greater)) (is (equal (cat-9:f-cmpr 123 789) :less)) (is (equal (cat-9:maplexico #'cat-9:f-cmpr '(1 2 3) '(1 3)) :less))...
3026965f73ea3db78525720825b78378882236d84aa6c32aa3ecebf4fbc31440
mejgun/haskell-tdlib
SearchChatMembers.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SearchChatMembers where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatMembersFilter as ChatMembersFilter import qualified Utils as U -- | Searches for a specified query in the first name , last name and u...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/d9868e9231a4ec23e4bcbf7f6627ff9f43acea21/src/TD/Query/SearchChatMembers.hs
haskell
# LANGUAGE OverloadedStrings # | | | The type of users to search for; pass null to search among all chat members | Query to search for | Chat identifier
module TD.Query.SearchChatMembers where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatMembersFilter as ChatMembersFilter import qualified Utils as U Searches for a specified query in the first name , last name and usernames of the members of a specified chat ....
488a1437b1e88409c59222dde33f5b59b78cf8607e3dc564baddd81eb3ed4856
nicolov/cs61as-racket-homework
hw7.rkt
(load "~cs61as/lib/obj.scm") ; 1 - Modify the person class. (define-class (person name) (method (say stuff) stuff) (method (ask stuff) (ask self 'say (se '(would you please) stuff))) (method (greet) (ask self 'say (se '(hello my name is) name)))) ; 2 - Determine which definition works as intended. ; In pa...
null
https://raw.githubusercontent.com/nicolov/cs61as-racket-homework/31f6e1855305838d7fe3824017164e234ee9e20c/hw7.rkt
racket
1 - Modify the person class. 2 - Determine which definition works as intended. In particular, make sure the repeat method works. Definition number ?? works as intended. Your explanation here. For compatibility with the autograder, make sure that you display error messages. That means you should say: (display "...
(load "~cs61as/lib/obj.scm") (define-class (person name) (method (say stuff) stuff) (method (ask stuff) (ask self 'say (se '(would you please) stuff))) (method (greet) (ask self 'say (se '(hello my name is) name)))) (define-class (double-talker name) (parent (person name)) (method (say stuff) (se (us...
d6e79a048d453785a7afd4eeca5211edc940a945666f591b103438e78e46782f
ghc/nofib
Preds.hs
module Preds(into,onto) where import Numbers import Vectors import EdgePlate import Geometric -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ section 9 : Predicates p ` onto ` l < = > proj(p ) is member of set proj(l ) onto :: Vector -> Edge -> Bool p`onto`l | vertical l = proj(p)==proj(s(...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/hidden/Preds.hs
haskell
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ v `into` ls means that proj(v) is inside (including the border of) proj(ls).
module Preds(into,onto) where import Numbers import Vectors import EdgePlate import Geometric section 9 : Predicates p ` onto ` l < = > proj(p ) is member of set proj(l ) onto :: Vector -> Edge -> Bool p`onto`l | vertical l = proj(p)==proj(s(l)) | otherwise = v ||| w && 0<=v`inpr`w && v`inpr`w<=w`inpr`w whe...
f4265f8105e0cd030e616cd94c7ce6b5ab2c002c0c4adca73910d84186b0e01a
racket/typed-racket
bad-prop-procedure9.rkt
#; (exn-pred #rx".*expected: Number\n.*given: Any") #lang typed/racket/base (struct adder^ ([num : Number]) #:property prop:procedure (λ ([this : adder^]) (+ (adder^-num this) 21))) (add1 ((adder^ 42)))
null
https://raw.githubusercontent.com/racket/typed-racket/8b7bd594c66e53beba3d2568ca5ecb28f61c6d96/typed-racket-test/fail/bad-prop-procedure9.rkt
racket
(exn-pred #rx".*expected: Number\n.*given: Any") #lang typed/racket/base (struct adder^ ([num : Number]) #:property prop:procedure (λ ([this : adder^]) (+ (adder^-num this) 21))) (add1 ((adder^ 42)))
b8a577f0fd570b579241a0f4cde9c5dfb025f0d4bcda977d6e8df1a26eae422f
janestreet/core_kernel
limiter.mli
* Implements a token - bucket - based throttling rate limiter . This module is useful for limiting network clients to a sensible query rate , or in any case where you have jobs that consume a scarce but replenishable resource . In a standard token bucket there is an infinite incoming supply of token...
null
https://raw.githubusercontent.com/janestreet/core_kernel/5d5af9a4a7c412c1d92d0e0f1d169511e7888e5e/limiter/src/limiter.mli
ocaml
* Implements a basic token-bucket-based rate limiter. Users of the throttle must successfully call [try_take] before doing work. * A [Token_bucket.Starts_full.t] is a [Token_bucket.t] that is statically guaranteed to have been called with [initial_bucket_level] equal to [burst_size]. The advantage...
* Implements a token - bucket - based throttling rate limiter . This module is useful for limiting network clients to a sensible query rate , or in any case where you have jobs that consume a scarce but replenishable resource . In a standard token bucket there is an infinite incoming supply of token...
93ea4f3f33583ff189f98fc101c15a4515c1074de245d0bad9c2b19d2220ab84
ocramz/sparse-linear-algebra
LibSpec.hs
# LANGUAGE FlexibleContexts , TypeFamilies # {-# language ScopedTypeVariables, FlexibleInstances #-} # OPTIONS_GHC -Wno - missing - signatures # ----------------------------------------------------------------------------- -- | Copyright : ( C ) 2016 -- License : GPL-3 (see LICENSE) -- Maintainer : zocc...
null
https://raw.githubusercontent.com/ocramz/sparse-linear-algebra/77f14ebc5c545cb665cdd840149a021f3df07183/test/LibSpec.hs
haskell
# language ScopedTypeVariables, FlexibleInstances # --------------------------------------------------------------------------- | License : GPL-3 (see LICENSE) Maintainer : zocca.marco gmail Stability : provisional Portability : portable -----------------------------------------------------------------...
# LANGUAGE FlexibleContexts , TypeFamilies # # OPTIONS_GHC -Wno - missing - signatures # Copyright : ( C ) 2016 module LibSpec where import Control.Exception.Common import Data.Sparse.Common import Numeric.LinearAlgebra.Sparse import Numeric . LinearAlgebra . Class import Control.Monad.Catch import Control...
4394549a86045bb2fced6b9b8a1f6ac79f5e07860fd1cc8f1295678a72bf3897
facebookincubator/hsthrift
BufferTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . # OPTIONS_GHC -fno - warn - orphans # module BufferTest (main) where import Control.Monad.ST import Control.Monad.ST.Unsafe import Data.ByteString (ByteString) import qualified Data.ByteString as BS import qualified Data.ByteString.Unsafe as BS import Data.Word (...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/tests/BufferTest.hs
haskell
Copyright ( c ) Facebook , Inc. and its affiliates . # OPTIONS_GHC -fno - warn - orphans # module BufferTest (main) where import Control.Monad.ST import Control.Monad.ST.Unsafe import Data.ByteString (ByteString) import qualified Data.ByteString as BS import qualified Data.ByteString.Unsafe as BS import Data.Word (...
195a370b888dd7711d4293cad1a1cb90310a020f6d92ba9ed4cc7feb937ebe96
directrix1/DuplicateBridgeTeamSteele
Mbasiclex.lisp
The first four lines of this file were added by . They tell that this is a Dracula Modular ACL2 program . Leave these lines unchanged so that DrScheme can properly load this file . #reader(planet "reader.ss" ("cce" "dracula.plt") "modular" "lang") (require "../interfaces/Ibasiclex.lisp") (module Mbasiclex ...
null
https://raw.githubusercontent.com/directrix1/DuplicateBridgeTeamSteele/0f0d0312569fb1d26d568e2b87d66ac160ac60c3/timpl/dropbox/modules/Mbasiclex.lisp
lisp
ds = delimiters to look for (list) xs = object to search in (list) where before = longest prefix of xs with no values from ds (list) at+ = rest of xs (list) ps = list of signals to pass by (no constraints on signals) xs = list of signals (no constraints on signals) ps = prefix to look for (list)...
The first four lines of this file were added by . They tell that this is a Dracula Modular ACL2 program . Leave these lines unchanged so that DrScheme can properly load this file . #reader(planet "reader.ss" ("cce" "dracula.plt") "modular" "lang") (require "../interfaces/Ibasiclex.lisp") (module Mbasiclex ...
67b6112c7996386fc01a32a059c3fdeec84db9e066233fc12690eff22de0514f
alwx/luno-react-native
ui.cljs
(ns luno.ios.ui (:require [reagent.core :as r])) (set! js/IOSButton (js/require "react-native-button")) (def navigator (r/adapt-react-class (.-NavigatorIOS js/React))) (def tab-bar (r/adapt-react-class (.-TabBarIOS js/React))) (def tab-bar-item (r/adapt-react-class (.-TabBarIOS.Item js/React))) (def button ...
null
https://raw.githubusercontent.com/alwx/luno-react-native/34f9f8b01c1248cf64f40be9638e8352fd8fd448/src/luno/ios/ui.cljs
clojure
(ns luno.ios.ui (:require [reagent.core :as r])) (set! js/IOSButton (js/require "react-native-button")) (def navigator (r/adapt-react-class (.-NavigatorIOS js/React))) (def tab-bar (r/adapt-react-class (.-TabBarIOS js/React))) (def tab-bar-item (r/adapt-react-class (.-TabBarIOS.Item js/React))) (def button ...
3fac010e0f1dbb0781786cd9869ee0118b28ec225c1e8023e348646937c929cd
Gopiandcode/gopcaml-mode
text_region.mli
open Generic_types module Diff : sig type t val of_pair : line:int -> col:int -> t val combine : t -> t -> t val to_string : t -> string val add_newline_with_indent: indent:int -> t -> t val negate : t -> t val update_lexing_position : Lexing.position -> t -> Lexing.position end type t val of_locatio...
null
https://raw.githubusercontent.com/Gopiandcode/gopcaml-mode/0bdb8419453dc1a74414c633fe76bf2e49b65b95/text_region.mli
ocaml
open Generic_types module Diff : sig type t val of_pair : line:int -> col:int -> t val combine : t -> t -> t val to_string : t -> string val add_newline_with_indent: indent:int -> t -> t val negate : t -> t val update_lexing_position : Lexing.position -> t -> Lexing.position end type t val of_locatio...
f331620d3f7af7997424ed48d6b13b2c36c2cd41ff6b9d4f0986ad5cebec6628
well-typed-lightbulbs/ocaml-esp32
null.ml
(* TEST *) let () = let ic = open_in Filename.null in match input_char ic with | exception End_of_file -> close_in ic | _ -> assert false
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-filename/null.ml
ocaml
TEST
let () = let ic = open_in Filename.null in match input_char ic with | exception End_of_file -> close_in ic | _ -> assert false
950ad800475f352221c7ae3acd6c129eb0741adaed0ec96323c4ab666c2aa491
hopv/MoCHi
fair_termination_type.mli
type state = string type fairness = (state * state) list type rank_fun = {coeffs:int list; const:int}
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/src/fair_termination_type.mli
ocaml
type state = string type fairness = (state * state) list type rank_fun = {coeffs:int list; const:int}
a7cea5567d0f683ad6ef567fc36c0a46936794b3aa681b520075bcf90924dc99
nikita-volkov/rebase
Profiling.hs
module Rebase.GHC.Profiling ( module GHC.Profiling ) where import GHC.Profiling
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/Profiling.hs
haskell
module Rebase.GHC.Profiling ( module GHC.Profiling ) where import GHC.Profiling
4fb63fbb1112d3b3832c16926eeb274dca89fe46aa28dbe9e7c8063563021077
kiranlak/austin-sbst
baseObjFunc.ml
open Solution class virtual baseObjFunc = object(this) method virtual initialize : string list -> int list -> unit method virtual evaluate : candidateSolution -> int -> unit method virtual compare : candidateSolution -> candidateSolution -> int end
null
https://raw.githubusercontent.com/kiranlak/austin-sbst/9c8aac72692dca952302e0e4fdb9ff381bba58ae/AustinOcaml/searchMethods/objectives/baseObjFunc.ml
ocaml
open Solution class virtual baseObjFunc = object(this) method virtual initialize : string list -> int list -> unit method virtual evaluate : candidateSolution -> int -> unit method virtual compare : candidateSolution -> candidateSolution -> int end
66c2b2a6817bb5d9ed3ca924e9c785b56a5c3caf9fe5466096ac8c9f5ec63ff2
alanz/ghc-exactprint
T9938.hs
module Main where import Control.Monad import Control.Monad.Trans.State solve :: Int -> StateT () [] () solve carry | carry > 0 = do guard (0 == carry) solve (carry -1) solve 0 = mzero main :: IO () main = return ()
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T9938.hs
haskell
module Main where import Control.Monad import Control.Monad.Trans.State solve :: Int -> StateT () [] () solve carry | carry > 0 = do guard (0 == carry) solve (carry -1) solve 0 = mzero main :: IO () main = return ()
e01f0768e7348ad00d1ae115b7ee240e1b0bb5681864c4175e4fd3d4877a8183
esilkensen/yaml
tokens.rkt
;;;;;; tokens.rkt - YAML tokens. -*- Mode: Racket -*- #lang typed/racket (require "errors.rkt" "struct.rkt") (provide (all-defined-out)) (yaml-struct: token ([start : mark] [end : mark])) (token: directive ([name : String] [value : (Option (U (Pairof String String) ...
null
https://raw.githubusercontent.com/esilkensen/yaml/b60a1e4a01979ed447799b07e7f8dd5ff17019f0/yaml/tokens.rkt
racket
tokens.rkt - YAML tokens. -*- Mode: Racket -*-
#lang typed/racket (require "errors.rkt" "struct.rkt") (provide (all-defined-out)) (yaml-struct: token ([start : mark] [end : mark])) (token: directive ([name : String] [value : (Option (U (Pairof String String) (Pairof Integer Integer)))])) (token: document-start) (to...
62c4f3a578fb1d52ee7ed70f9244ad77ef79548dd12f799bf087baf754a180b6
geophf/1HaskellADay
Exercise.hs
# LANGUAGE QuasiQuotes # module Y2018.M02.D09.Exercise where - Along the way we 've been accumulating data . That 's what you do in data stores , accumulate data . But what happens when data ages out and is no longer useful ? When , it 's not going to ride off into the sunset itself . You have to do that cle...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M02/D09/Exercise.hs
haskell
} read in the out-dated data. so, for example: logging with that instance we can create a IxValue (Stamped LogEntry) set clause that returns only the out-dated rows. Now save off the old rows and the stamped type univ, too: and the indexed type a univ: Now delete those old rows from the database - BONUS -------...
# LANGUAGE QuasiQuotes # module Y2018.M02.D09.Exercise where - Along the way we 've been accumulating data . That 's what you do in data stores , accumulate data . But what happens when data ages out and is no longer useful ? When , it 's not going to ride off into the sunset itself . You have to do that cle...
566fe46e3952781c2ccae386fcf4d8f80f581a554d055623e513f5f23347a1a8
samrocketman/home
shrek-text.scm
Shrek text Copyright ( c ) 2004 < > ; ; Based on iText tutorial by ; ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ; (at your option) any late...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/shrek-text.scm
scheme
This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTIC...
Shrek text Copyright ( c ) 2004 < > Based on iText tutorial by it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . Updsated to work with Gimp2.4 ( 11 - 2007 ) (...
366261b71190fb66ca24616427c90bcdd922957468839582228496b3b7d4bd2b
Convex-Dev/convex-web
specs.cljc
(ns convex-web.specs (:require [clojure.spec.alpha :as s] [clojure.string :as str])) (s/def :convex-web/non-empty-string (s/and string? (complement str/blank?))) (s/def :convex-web/blob-string (s/and :convex-web/non-empty-string #(some-> % (str/starts-with? "0x")))) (s/def :convex-web/address (s/or :i...
null
https://raw.githubusercontent.com/Convex-Dev/convex-web/243860ff52c1d187a83b27ea7f72208d9c4e711e/src/main/clojure/convex_web/specs.cljc
clojure
-- Config Secrets -- Config Peer -- Config Web Server -- Config -- Runtime -- Ajax If the failure had a valid response, it will be stored in the :response key. If the error is :parse then the raw text of the response will be stored in :original-text. Finally, if the server returned an error, and that then fail...
(ns convex-web.specs (:require [clojure.spec.alpha :as s] [clojure.string :as str])) (s/def :convex-web/non-empty-string (s/and string? (complement str/blank?))) (s/def :convex-web/blob-string (s/and :convex-web/non-empty-string #(some-> % (str/starts-with? "0x")))) (s/def :convex-web/address (s/or :i...
ca6938868e5c3e12c06c84ce5d70d564da553d41072a0480a007edd0aed9a8e6
headwinds/reagent-reframe-material-ui
component.cljs
(ns reagent.impl.component (:require [create-react-class :as create-react-class] [react :as react] [reagent.impl.util :as util] [reagent.impl.batching :as batch] [reagent.ratom :as ratom] [reagent.interop :refer-macros [$ $!]] [reagent.debug :ref...
null
https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/reagent/impl/component.cljs
clojure
Argv access avoid circular dependency: this gets set from template.cljs Rendering Log errors, without using try/catch (and mess up call stack) Method wrapping Don't care about nextstate here, we use forceUpdate when only when state has changed anyway.
(ns reagent.impl.component (:require [create-react-class :as create-react-class] [react :as react] [reagent.impl.util :as util] [reagent.impl.batching :as batch] [reagent.ratom :as ratom] [reagent.interop :refer-macros [$ $!]] [reagent.debug :ref...
bfadf3e9f08c111a66fd0eb7ca6e481c79bdc9bfe37ab25d55de3737aa0001a2
omnyway-labs/re-frame-template
re_com.clj
(ns clj.new.re-frame-template.options.re-com (:require [clj.new.re-frame-template.options.helpers :as helpers])) (def option "+re-com") (defn assets [data] [["resources/public/vendor/css/re-com.css" (helpers/render "resources/public/vendor/css/re-com.css" data)] ["resources/public/vendor/css/" (helpers/render ...
null
https://raw.githubusercontent.com/omnyway-labs/re-frame-template/2638a9e50e14cfe79b5cad43a11e6d797d5bf28f/src/clj/new/re_frame_template/options/re_com.clj
clojure
(ns clj.new.re-frame-template.options.re-com (:require [clj.new.re-frame-template.options.helpers :as helpers])) (def option "+re-com") (defn assets [data] [["resources/public/vendor/css/re-com.css" (helpers/render "resources/public/vendor/css/re-com.css" data)] ["resources/public/vendor/css/" (helpers/render ...
fd444ed708b32c5bdfc8ada28d0c9fedea08d4433e56d31819ea2f68aa240e16
gelisam/frp-zoo
GlossInterface.hs
module GlossInterface where import Data.IORef import Graphics.Gloss (Color, Display, Picture) import qualified Graphics.Gloss.Interface.IO.Game as G import Reactive.Bacon type InputEvent = G.Event playBacon :: Display -> Color -> Int -> (EventStream Float -> EventStream InputEvent -> IO (Property Picture)) ...
null
https://raw.githubusercontent.com/gelisam/frp-zoo/1a1704e4294b17a1c6e4b417a73e61216bad2321/reactive-bacon-example/GlossInterface.hs
haskell
module GlossInterface where import Data.IORef import Graphics.Gloss (Color, Display, Picture) import qualified Graphics.Gloss.Interface.IO.Game as G import Reactive.Bacon type InputEvent = G.Event playBacon :: Display -> Color -> Int -> (EventStream Float -> EventStream InputEvent -> IO (Property Picture)) ...
c70073b13ae490dff49dc82164a78fb3f5d42bdc916c203e0c614ccce1a1d428
rlepigre/subml
munu.ml
(* Generator for examples with mixed induction and co-induction. *) let size = try int_of_string Sys.argv.(1) with _ -> Printf.eprintf "Usage: %s <n>\n%!" Sys.argv.(0); exit 1 let lowercase = Array.init 26 (fun i -> Char.chr (Char.code 'a' + i)) let uppercase = Array.init 26 (fun i -> Char.chr (Char.code '...
null
https://raw.githubusercontent.com/rlepigre/subml/d410898910399b3286e80b129656bd7b3bc208c5/tests/munu.ml
ocaml
Generator for examples with mixed induction and co-induction.
let size = try int_of_string Sys.argv.(1) with _ -> Printf.eprintf "Usage: %s <n>\n%!" Sys.argv.(0); exit 1 let lowercase = Array.init 26 (fun i -> Char.chr (Char.code 'a' + i)) let uppercase = Array.init 26 (fun i -> Char.chr (Char.code 'A' + i)) let type_constr name size = let aux i = Printf.sprintf "...
5633ce92e11db2622c23a601e8c083d02a51f1cefde130b895ce36be143e32a1
BitGameEN/bitgamex
run_role.erl
%%%-------------------------------------------------------- @Module : run_role %%% @Description: 自动生成 %%%-------------------------------------------------------- -module(run_role). -export([init/0, load_one/1, get_one_locally/1, get_one/1, set_one/1, set_field/3, del_one/1, del_one/2, syncdb/1, reload_one/1, clean_al...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/data/run_role.erl
erlang
-------------------------------------------------------- @Description: 自动生成 -------------------------------------------------------- do not insert ets
@Module : run_role -module(run_role). -export([init/0, load_one/1, get_one_locally/1, get_one/1, set_one/1, set_field/3, del_one/1, del_one/2, syncdb/1, reload_one/1, clean_all_cache/1, cache_key/1]). -include("common.hrl"). -include("record_run_role.hrl"). init() -> ets:new(run_role, [{keypos, #run_role.key_id}, n...
5d3a385c83d08b1c36bdbe1f99e3691a0ac4d1b1e2367b8b69b83a3724458198
illbexyz/advent-of-code-2020
day09.ml
open Base open Stdio let list_slice list start finish = List.filteri list ~f:(fun idx _ -> idx >= start && idx < finish) let gen_possible_sums nums = List.cartesian_product nums nums |> List.filter ~f:(fun (x, y) -> x <> y) |> List.map ~f:(fun (x, y) -> x + y) let phase_1 preamble_size nums = List.fold_unt...
null
https://raw.githubusercontent.com/illbexyz/advent-of-code-2020/dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1/day09/day09.ml
ocaml
open Base open Stdio let list_slice list start finish = List.filteri list ~f:(fun idx _ -> idx >= start && idx < finish) let gen_possible_sums nums = List.cartesian_product nums nums |> List.filter ~f:(fun (x, y) -> x <> y) |> List.map ~f:(fun (x, y) -> x + y) let phase_1 preamble_size nums = List.fold_unt...
0b7fd6412caad82e677a09e4c5d34c5b89090572b5881fa92d44fe801f78e22a
juliannagele/ebso
stack_index.ml
Copyright 2019 and under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distributed under ...
null
https://raw.githubusercontent.com/juliannagele/ebso/8e516036fcb98074b6be14fc81ae020f76977712/lib/stack_index.ml
ocaml
Copyright 2019 and under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distributed under ...
edddaf3994ef3d29bdeb0c91a4a4305e688ae06a9c1265831f1f84b2a0ca0b6d
akira08280/programming-in-haskell
compiler2.hs
Compiler example from chapter 17 of Programming in Haskell , , Cambridge University Press , 2016 . data Expr = Val Int | Add Expr Expr eval :: Expr -> Int eval (Val n) = n eval (Add x y) = eval x + eval y type Stack = [Int] data Code = HALT | PUSH Int Code | ADD Code deriving Show comp :: Expr ...
null
https://raw.githubusercontent.com/akira08280/programming-in-haskell/4067f729145429604aa7f3c8eee59b409addc685/Code/compiler2.hs
haskell
Compiler example from chapter 17 of Programming in Haskell , , Cambridge University Press , 2016 . data Expr = Val Int | Add Expr Expr eval :: Expr -> Int eval (Val n) = n eval (Add x y) = eval x + eval y type Stack = [Int] data Code = HALT | PUSH Int Code | ADD Code deriving Show comp :: Expr ...
15680bbd2190a30ee0f62332d96a891bafdbeebff1a7d0140902602cdff6cbf3
discus-lang/ddc
KiConFlow.hs
module DDC.Core.Flow.Prim.KiConFlow ( readKiConFlow , kRate , kProc ) where import DDC.Core.Flow.Prim.Base import DDC.Core.Flow.Exp.Simple.Exp import DDC.Data.Pretty import Control.DeepSeq instance NFData KiConFlow where rnf !_ = () instance Pretty KiConFlow where ppr con = case con of ...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Prim/KiConFlow.hs
haskell
| Read a kind constructor name. Compounds ------------------------------------------------------------------
module DDC.Core.Flow.Prim.KiConFlow ( readKiConFlow , kRate , kProc ) where import DDC.Core.Flow.Prim.Base import DDC.Core.Flow.Exp.Simple.Exp import DDC.Data.Pretty import Control.DeepSeq instance NFData KiConFlow where rnf !_ = () instance Pretty KiConFlow where ppr con = case con of ...
b6fe5ef5b21e62816858d2712d571a4f75518636549efa3202df3cc97d23467b
docker-in-aws/docker-in-aws
list_table_form.cljs
(ns material.component.list-table-form (:require [material.component :as cmp] [material.component.form :as form] [material.icon :as icon])) (defn textfield [props] (cmp/vtext-field (merge props {:style {:width "100%"}}))) (defn selectfield [props & childs] (cmp/select-...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/material/component/list_table_form.cljs
clojure
(ns material.component.list-table-form (:require [material.component :as cmp] [material.component.form :as form] [material.icon :as icon])) (defn textfield [props] (cmp/vtext-field (merge props {:style {:width "100%"}}))) (defn selectfield [props & childs] (cmp/select-...
01492164043d66416deed31fc13513aee5857b5dff630b082d4cd0b579dfc78a
darius/cant
problems.scm
Miasma : x86 Scheme Assembler . Copyright ( C ) 2000 , , , Refer to legal / License.txt ; eax/ax register (#xA8 TEST %al imm8 "Logical compare") (#xA9 TEST %eax imm32 "Logical compare") (#x9A CALL ptr16:32 "Call far, absolute") (#xFF /3 CALL m16:32 "Call far, absolute indirect...
null
https://raw.githubusercontent.com/darius/cant/e80756894905a98eefd434cd61b656c80aa026ab/examples/miasma-x86-toolkit/tables/problems.scm
scheme
eax/ax register wtf is this? ahem! above is inconsistent with below the above r32/m16 is exactly what the manual says. ugh! Consider just ignoring it... the manual doesn't mention /r -- I assume an oversight.
Miasma : x86 Scheme Assembler . Copyright ( C ) 2000 , , , Refer to legal / License.txt (#xA8 TEST %al imm8 "Logical compare") (#xA9 TEST %eax imm32 "Logical compare") (#x9A CALL ptr16:32 "Call far, absolute") (#xFF /3 CALL m16:32 "Call far, absolute indirect") (#xEA JMP ...
13f22915155ff2473892404cb585e98c4cbd488ca92e90699ade3b98c6e9d1ed
nuvla/api-server
notification.cljc
(ns sixsq.nuvla.server.resources.spec.notification (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (s/def ::message (-> (st/spec ::core/...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/notification.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.notification (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (s/def ::message (-> (st/spec ::core/...
0c9b297e7638bea4b90c1005b5db715d94c0d27e35d34e9c19c654f54ce93ce6
Frama-C/Frama-C-snapshot
options.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/studia/options.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
5ec0b9a99c002490d544d5296d8a27f3af4e7850fe1d4594a40b45a1f24d58dd
lojic/LearningRacket
prob-005.rkt
#lang racket ;; ---------------------------------------------------------------------- Problem 5 : Smallest multiple ;; 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder . ;; What is the smallest positive number that is evenly divisible by all of the n...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/project-euler/prob-005.rkt
racket
---------------------------------------------------------------------- What is the smallest positive number that is evenly divisible by ---------------------------------------------------------------------- over the specified list of integers.
#lang racket Problem 5 : Smallest multiple 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder . all of the numbers from 1 to 20 ? Answer : 232792560 This solution simply folds the lcm ( least common multiple ) function The lcm of 1 & 2 is 2 ...
5970b1ee6aef6035d28fd92563f105b285272ba846147ebbe2c84cafd622f361
expipiplus1/vulkan
VK_NV_compute_shader_derivatives.hs
{-# language CPP #-} -- | = Name -- -- VK_NV_compute_shader_derivatives - device extension -- -- == VK_NV_compute_shader_derivatives -- -- [__Name String__] -- @VK_NV_compute_shader_derivatives@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 202 -- -- [__Revision__]...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_NV_compute_shader_derivatives.hs
haskell
# language CPP # | = Name VK_NV_compute_shader_derivatives - device extension == VK_NV_compute_shader_derivatives [__Name String__] @VK_NV_compute_shader_derivatives@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] ...
202 1 - Requires support for Vulkan 1.0 - 2018 - 07 - 19 < GL_NV_compute_shader_derivatives > - , NVIDIA This extension adds Vulkan support for the The SPIR - V extension provides two new execution modes , both of which over a 2x2 group of shader invocat...
4d392561f54b54de8f3ac0a1397cce66e4c80b8120725b3c67e0866dc19e7f8e
aycanirican/hweblib
Rfc7230.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} -- | Module : Network . Copyright : Aycan iRiCAN 2010 - 2020 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- Hypertext Transfer Protocol ...
null
https://raw.githubusercontent.com/aycanirican/hweblib/e0031eee26cb83f131ca2ccadf58456856b4c641/src/Network/Parser/Rfc7230.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # | License : BSD3 Maintainer : Stability : experimental Portability : unknown Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing <> ^ hostname port ^ token >>> parse httpVersion "HTTP/1.1" 3.1.2. Status Line | >>>...
# LANGUAGE DeriveGeneric # Module : Network . Copyright : Aycan iRiCAN 2010 - 2020 module Network.Parser.Rfc7230 where import Control.Applicative (optional, Alternative (many, (<|>))) import Control.Monad (join) import Data.Attoparsec.ByteString ( Parser, count, inClass, many1,...
cf9f536b09c97d99bfeeb113c728a39e089ec36eca3b8dfcab4f6b58ee9f297b
ocsigen/js_of_ocaml
target_env.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2021 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of th...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/54e6659d95849d1ab9f153ae93252802fafd93ca/compiler/tests-compiler/target_env.ml
ocaml
Js_of_ocaml compiler * / * Copyright ( C ) 2021 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of th...
685182262622489259a3900b37a987c15d4d726bdaac269134e81f336172da81
purescript/purescript
Externs.hs
-- | -- This module generates code for \"externs\" files, i.e. files containing only -- foreign import declarations. -- module Language.PureScript.Externs ( ExternsFile(..) , ExternsImport(..) , ExternsFixity(..) , ExternsTypeFixity(..) , ExternsDeclaration(..) , externsIsCurrentVersion , moduleToExternsF...
null
https://raw.githubusercontent.com/purescript/purescript/02bd6ae60bcd18cbfa892f268ef6359d84ed7c9b/src/Language/PureScript/Externs.hs
haskell
| This module generates code for \"externs\" files, i.e. files containing only foreign import declarations. | The data which will be serialized to an externs file be checked for its version independent of the remaining format ^ Module name ^ List of module exports ^ List of module imports ^ List of operators ...
module Language.PureScript.Externs ( ExternsFile(..) , ExternsImport(..) , ExternsFixity(..) , ExternsTypeFixity(..) , ExternsDeclaration(..) , externsIsCurrentVersion , moduleToExternsFile , applyExternsFileToEnvironment , externsFileName ) where import Prelude import Codec.Serialise (Serialise) ...
366f84595e98a5779768147f75a58969db7eed36729c1bdd17d2b6b2612ebb86
VMatthijs/CHAD
SourceLanguage.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE TypeOperators #-} -- | Definition of the source language module SourceLanguage where import Data.Vector.Unboxed.Sized as V (map, replicate, sum) import GHC.TypeNat...
null
https://raw.githubusercontent.com/VMatthijs/CHAD/755fc47e1f8d1c3d91455f123338f44a353fc265/src/SourceLanguage.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE TypeOperators # | Definition of the source language | Terms of the source language | Evaluate the source language
# LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # module SourceLanguage where import Data.Vector.Unboxed.Sized as V (map, replicate, sum) import GHC.TypeNats (KnownNat) import Env import Operation import Types data STerm env a where SVar :: LT2 a => Idx env a -> STerm env a SLambda :...
a137165449ddaabf0c7bdb13f3adfc227e7a19a08fa29765bcde2e477309d90f
parof/wstat
PrettyPrinter.hs
module SyntacticStructure.PrettyPrinter (prettyPrint) where import Interfaces.AbstractStateDomain import Interfaces.AbstractValueDomain import Semantic.EquationSolver import SyntacticStructure.ControlFlowGraph import SyntacticStructure.WhileGrammar import Tools.StateTransitions import Tools.MonadicBuilder -----------...
null
https://raw.githubusercontent.com/parof/wstat/369cf5d1d92ef235049c29ad2f1cc6fd53747754/src/SyntacticStructure/PrettyPrinter.hs
haskell
------------------------------------------------------------------------------ Pretty Printer Costant ------------------------------------------------------------------------------ now we define format constant to print in a pretty way the program with program points associated this const de...
module SyntacticStructure.PrettyPrinter (prettyPrint) where import Interfaces.AbstractStateDomain import Interfaces.AbstractValueDomain import Semantic.EquationSolver import SyntacticStructure.ControlFlowGraph import SyntacticStructure.WhileGrammar import Tools.StateTransitions import Tools.MonadicBuilder ppsLineSt...
3a81fadbb75b72edf1b933b5422b7b8983d1324f2813f62d9a72e8c3465add30
clojure-expectations/lein-autoexpect
sample_expectations.clj
(ns lein2.sample-expectations (:use expectations lein2.core)) (expect 1 1) (expect 2 (add-1 1)) ;; uncomment to test failures ( expect 3 4 ) ;; uncomment to test failures to reload code ( expect 3 ( what ) )
null
https://raw.githubusercontent.com/clojure-expectations/lein-autoexpect/6545dc5b337292c4be94f6ff5f9663bc59d9e0d1/sample-project/test/lein2/sample_expectations.clj
clojure
uncomment to test failures uncomment to test failures to reload code
(ns lein2.sample-expectations (:use expectations lein2.core)) (expect 1 1) (expect 2 (add-1 1)) ( expect 3 4 ) ( expect 3 ( what ) )
5b270ea800b608c85b846aa49b104632f20199a0e634c2c2a091fdff0e10914d
tud-fop/vanda-haskell
Extra.hs
----------------------------------------------------------------------------- -- | Module : Control . Monad . Extra Copyright : ( c ) Technische Universität Dresden 2016 -- License : BSD-style -- -- Maintainer : -- Stability : unknown -- Portability : portable ------------------------------...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Control/Monad/Extra.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : unknown Portability : portable --------------------------------------------------------------------------- | An if-then-else where the predicate is a monadic action. ^ predicate...
Module : Control . Monad . Extra Copyright : ( c ) Technische Universität Dresden 2016 module Control.Monad.Extra where ifM :: Monad m -> m b ifM predicateM thn els = do b <- predicateM if b then thn else els
7cfaeaf19c26975bb03d5e6e240b8178107bda382152f1f07501494db5799039
argp/bap
dGraphTreeModel.ml
(**************************************************************************) (* *) (* This file is part of OcamlGraph. *) (* *) Copyright...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocamlgraph/dgraph/dGraphTreeModel.ml
ocaml
************************************************************************ This file is part of OcamlGraph. ...
Copyright ( C ) 2009 - 2010 CEA ( Commissariat à ) Lesser General Public License as published by the Free Software Foundation , version 2.1 , with a linking exception . ( ) ...
548c5c6e9519d9daeae5641329c5efae9a0f70b5ea4809573f09c473fc4705cf
spechub/Hets
Formatting.hs
module PGIP.Output.Formatting where import Common.Utils import Logic.Logic import Logic.Comorphism import Proofs.AbstractState import Data.Char internalProverName :: ProverOrConsChecker -> String internalProverName pOrCc = case pOrCc of Prover pr -> getProverName pr ConsChecker cc -> getCcName cc showComorph ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/PGIP/Output/Formatting.hs
haskell
module PGIP.Output.Formatting where import Common.Utils import Logic.Logic import Logic.Comorphism import Proofs.AbstractState import Data.Char internalProverName :: ProverOrConsChecker -> String internalProverName pOrCc = case pOrCc of Prover pr -> getProverName pr ConsChecker cc -> getCcName cc showComorph ...
e491ab5a5bcf4708a383bb0bd83ff1eac603a0e5485aa85ee483b88c4645ac50
AppsFlyer/aerospike-clj
protocols.clj
(ns aerospike-clj.protocols (:refer-clojure :exclude [update])) (defprotocol AerospikeReadOps "Read operations of a single Aerospike record." (get-single [this index set-name] [this index set-name conf] [this index set-name conf bin-names] "Returns a single record: `(transcoder AerospikeRecord)`....
null
https://raw.githubusercontent.com/AppsFlyer/aerospike-clj/d669b64aec10e46e84364fc4c4c71b5eefe4c5be/src/main/clojure/aerospike_clj/protocols.clj
clojure
(ns aerospike-clj.protocols (:refer-clojure :exclude [update])) (defprotocol AerospikeReadOps "Read operations of a single Aerospike record." (get-single [this index set-name] [this index set-name conf] [this index set-name conf bin-names] "Returns a single record: `(transcoder AerospikeRecord)`....
0f6cacc2da89ec9c318f31d05daabe7dceca9e7c10b383c5565c71a66fe6bd5e
clojure-interop/java-jdk
BasicBorders$ButtonBorder.clj
(ns javax.swing.plaf.basic.BasicBorders$ButtonBorder (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.basic BasicBorders$ButtonBorder])) (defn ->button-border "Constructor. shadow - `java.awt.Color` dark-shadow - `java.awt.Color` highlight - `java.awt.Color` light-highlight - ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/basic/BasicBorders%24ButtonBorder.clj
clojure
(ns javax.swing.plaf.basic.BasicBorders$ButtonBorder (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.basic BasicBorders$ButtonBorder])) (defn ->button-border "Constructor. shadow - `java.awt.Color` dark-shadow - `java.awt.Color` highlight - `java.awt.Color` light-highlight - ...
684cfe37a668b39e948b4141f0e9fdb1ccc06c500f825228998fca200371e95e
Autodesk-AutoCAD/AutoLispExt
formatedBasefile5.lsp
(defun format_bug_test (/ *error* cen dpr ent lst ocs ofe off tmp vpe vpt ) (defun *error* (msg) (if (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*")) (princ (strcat "\nError: " msg)) ) (princ) ) )
null
https://raw.githubusercontent.com/Autodesk-AutoCAD/AutoLispExt/dca1ab19d57ac38d6f805ca28e9b510e9a514f82/extension/src/test/Baseline/formatedBasefile5.lsp
lisp
(defun format_bug_test (/ *error* cen dpr ent lst ocs ofe off tmp vpe vpt ) (defun *error* (msg) (if (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*")) (princ (strcat "\nError: " msg)) ) (princ) ) )
9a3037d72d9b7dfa99402310ad799e0fb175978dcc26911ceb778a0dc967af11
VMatthijs/CHAD
Count.hs
{-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # -- | Utilities for occurrence counting in functional languages. module Count where import Numeric.Natural -- | A @Layout t a@ is a tree that counts usages of a variable of type @t@, -- split out over components of nested pairs. The count is expressed using the ...
null
https://raw.githubusercontent.com/VMatthijs/CHAD/755fc47e1f8d1c3d91455f123338f44a353fc265/src/Count.hs
haskell
# LANGUAGE GADTs # | Utilities for occurrence counting in functional languages. | A @Layout t a@ is a tree that counts usages of a variable of type @t@, split out over components of nested pairs. The count is expressed using the whereas the occurrence of @x@ in @f (fst x)@ would count as | Either a finite number ...
# LANGUAGE StandaloneDeriving # module Count where import Numeric.Natural type For example , the occurrence of @x@ in @f x@ would count as @'LyLeaf ' 1@ , @'LyPair ' ( ' LyLeaf ' 1 ) ( ' LyLeaf ' 0)@. data Layout t a where LyLeaf :: a -> Layout t a LyPair :: Layout t1 a -> Layout t2 a -> Layout (t1, t2) ...
1b90e63ff54ef4361c90391bf108be79c0a478e73fcd916f4f7ba80e8178a311
GaloisInc/HaLVM
ErrorCodes.hs
Copyright 2013 Galois , Inc. This software is distributed under a standard , three - clause BSD license . -- Please see the file LICENSE, distributed with this software, for specific -- terms and conditions. -- |Error codes / exceptions for various HaLVM functions. module Hypervisor.ErrorCodes(ErrorCode(..), GrantE...
null
https://raw.githubusercontent.com/GaloisInc/HaLVM/3ec1d7e4b6bcb91304ba2bfe8ee280cb1699f24d/src/HALVMCore/Hypervisor/ErrorCodes.hs
haskell
Please see the file LICENSE, distributed with this software, for specific terms and conditions. |Error codes / exceptions for various HaLVM functions. directly or thrown as an exception. is no documentation as to which ones these are). ^ (not used; just to get enum aligned right) ^ Operation not permitted ^ No...
Copyright 2013 Galois , Inc. This software is distributed under a standard , three - clause BSD license . module Hypervisor.ErrorCodes(ErrorCode(..), GrantErrorCode(..)) where import Control.Exception import Data.Typeable import GHC.Generics |Error codes returned from hypervisor calls . These errors are either ...
bbfce7e766fa6bb031ebcc88403a81a667d750a1c06db7bf032ba3c70bf07a69
bobatkey/CS316-2022
Intro.hs
module Intro where {- WELCOME TO CS316 FUNCTIONAL PROGRAMMING -} In this course , you will : - Learn more about Functional Programming ( in Haskell ) ( Typed ) Functional Programming is - Defining Datatypes To Represent Problems - Defini...
null
https://raw.githubusercontent.com/bobatkey/CS316-2022/ce4ed0d1ff2bfe1072ee0e7eb90a33da0767165a/lecture-notes/Intro.hs
haskell
WELCOME TO CS316 FUNCTIONAL PROGRAMMING IFPCASG decides this is 'Red' public static Colour colourOfSuit(Suit s) colourOfSuit _ = Black Computing the ordering between card values by: 1. Translating from card values to Integers not allowed For you to do: numericOfSuit :: Suit -> I...
module Intro where In this course , you will : - Learn more about Functional Programming ( in Haskell ) ( Typed ) Functional Programming is - Defining Datatypes To Represent Problems - Defining Functions To Create New Data From Old a.k.a " Value - orient...
d6a6d0d3a1166b63ce075dacbd2b1aea3053e0c7f0aa898e48b07430271ea737
janestreet/memtrace
memtrace.mli
* If the MEMTRACE environment variable is set , begin tracing to the file it specifies , and continue tracing until the process exits . The context is an arbitrary string , which is logged in the trace . It may be useful to identify trace files . The sampling_rate is the proportion of allocate...
null
https://raw.githubusercontent.com/janestreet/memtrace/f9b7b3cddf17575373b855d1bab46fd54d42a628/src/memtrace.mli
ocaml
* Tracing can also be manually started and stopped. * Manually start tracing * Manually stop tracing * [alloc ~bytes] reports an allocation of a given number of bytes. If tracing is enabled, a small fraction of the calls to this function will return [Some tok], where [tok] should be passed to [free] whe...
* If the MEMTRACE environment variable is set , begin tracing to the file it specifies , and continue tracing until the process exits . The context is an arbitrary string , which is logged in the trace . It may be useful to identify trace files . The sampling_rate is the proportion of allocate...
350c3242f8645462625f529725cd624d0e8d2dbe34ecd9d0e80b8814a86a1126
anuyts/menkar
FreeMonad.hs
module Menkar.Syntax.FreeMonad where import Data.Maybe data Term_ t = App t t | Lam (Binding_ t) deriving (Functor, Foldable, Traversable) data Term v = Var v | Term_ (Term v) data Binding_ t = Binding_ (Type_ t) (Maybe t) deriving (Functor, Foldable, Traversable) newtype Type_ t = Type_ {unType :: t} deriving (Fun...
null
https://raw.githubusercontent.com/anuyts/menkar/1f00e9febd1e9ed70c138ae8232b1c72a17d31da/menkar/obsolete/Menkar/Syntax/FreeMonad.hs
haskell
module Menkar.Syntax.FreeMonad where import Data.Maybe data Term_ t = App t t | Lam (Binding_ t) deriving (Functor, Foldable, Traversable) data Term v = Var v | Term_ (Term v) data Binding_ t = Binding_ (Type_ t) (Maybe t) deriving (Functor, Foldable, Traversable) newtype Type_ t = Type_ {unType :: t} deriving (Fun...
d5a5a2226df891a3a7d1322fdd93105f868ed36c0eb39eb804b77ffe07af42be
annenkov/unmix
xaraa.rkt
#lang racket (require racket/mpair) (require "x-misc.rkt") (define (uaraa:analyze-parameter-access! prog types) (define types-modified? #f) (define (collect-acc-prog!) (for-each (lambda (fundef) (let ((body (cadddr fundef)) (parlist (cadr fundef)) (fname (ca...
null
https://raw.githubusercontent.com/annenkov/unmix/e156fb706e52994f86029ac512a79c737d7ee0d8/xaraa.rkt
racket
conveting back to regular pairs
#lang racket (require racket/mpair) (require "x-misc.rkt") (define (uaraa:analyze-parameter-access! prog types) (define types-modified? #f) (define (collect-acc-prog!) (for-each (lambda (fundef) (let ((body (cadddr fundef)) (parlist (cadr fundef)) (fname (ca...
b96eb9591864b6b2944b24e40ad7ee83b4e192eab7cefe2629f3b89a4205a508
Kakadu/fp2022
demostdlib.ml
* Copyright 2022 - 2023 , * SPDX - License - Identifier : CC0 - 1.0 open Ocaml_pv_lib let _ = let tenv, ienv = Utils.load_stdlib Inferencer.empty Interpret.empty Stdlib.std_lib in let program = Stdio.In_channel.input_all Caml.stdin in Ocaml_pv_lib.Printer.print_program ~env_ty:tenv ~env_inter:ienv program ;;...
null
https://raw.githubusercontent.com/Kakadu/fp2022/0850371c9cdb43564719d2fe937c3e9bce5f41fc/OCamlPV/demos/demostdlib.ml
ocaml
* Copyright 2022 - 2023 , * SPDX - License - Identifier : CC0 - 1.0 open Ocaml_pv_lib let _ = let tenv, ienv = Utils.load_stdlib Inferencer.empty Interpret.empty Stdlib.std_lib in let program = Stdio.In_channel.input_all Caml.stdin in Ocaml_pv_lib.Printer.print_program ~env_ty:tenv ~env_inter:ienv program ;;...
78748031499c92ed322f2eeb09a55b5506bfef3394f1d1d91a530165368e4f27
e-bigmoon/haskell-blog
Tips1.hs
#!/usr/bin/env stack {- stack repl --resolver lts-15.4 --package text --package yesod -} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} import Data.Text import Yesod data App = App mkYesod "App" [parseRoutes| / HomeR GET...
null
https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/tips/Tips1.hs
haskell
stack repl --resolver lts-15.4 --package text --package yesod # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies #
#!/usr/bin/env stack # LANGUAGE TemplateHaskell # import Data.Text import Yesod data App = App mkYesod "App" [parseRoutes| / HomeR GET |] instance Yesod App getHomeR :: Handler Html getHomeR = defaultLayout $ do let name = "bigmoon" :: Text [whamlet| #{name} |] toWidget [julius| #{name} |] m...
5f907b2d21890709a37b987c9640007eb73624726d48dc5d43fefb0206279d18
shirok/Gauche
singleton.scm
;;; ;;; singleton.scm - implements singleton mixin ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain t...
null
https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/lib/gauche/mop/singleton.scm
scheme
singleton.scm - implements singleton mixin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (define-module gauche.mop.singleton (use g...
341299cc0c909dc3fb7486bdafa65ec7c6450b8d25902a45166773809ed06f7b
robert-strandh/SICL
docstrings-english-assertions.lisp
(cl:in-package #:portable-condition-system) (setf (documentation 'case-failure 'function) (format nil "Signals a CASE-FAILURE error using the provided datum,~@ the name of the case operator, complex type specifier,~@ and the case keys which were not matched.")) (setf (documentation...
null
https://raw.githubusercontent.com/robert-strandh/SICL/fee7e7d71081aba814f2c0d96e9c534678cd8aca/Code/Conditions/Portable-condition-system/docstrings-english-assertions.lisp
lisp
if yes,~@
(cl:in-package #:portable-condition-system) (setf (documentation 'case-failure 'function) (format nil "Signals a CASE-FAILURE error using the provided datum,~@ the name of the case operator, complex type specifier,~@ and the case keys which were not matched.")) (setf (documentation...
859877007edee42a379df29b3aaedc474e41a358e3ba9a03247513d67e919b06
bishboria/learnyouahaskell
14_logNumber.hs
import Control.Monad.Writer logNumber :: Int -> Writer [String] Int logNumber x = writer (x, ["Got number: " ++ show x]) multWithLog :: Writer [String] Int multWithLog = do a <- logNumber 3 b <- logNumber 5 return (a*b) -- runWriter multWithLog ( 15,["Got number : 3","Got number : 5 " ] ) multWithLog...
null
https://raw.githubusercontent.com/bishboria/learnyouahaskell/d8c7b41398e9672db18c1b1360372fc4a4adefa8/14/14_logNumber.hs
haskell
runWriter multWithLog runWriter multWithLog'
import Control.Monad.Writer logNumber :: Int -> Writer [String] Int logNumber x = writer (x, ["Got number: " ++ show x]) multWithLog :: Writer [String] Int multWithLog = do a <- logNumber 3 b <- logNumber 5 return (a*b) ( 15,["Got number : 3","Got number : 5 " ] ) multWithLog' :: Writer [String] Int ...
cc72142506d8d93b8c9068c598ad8c1f6b39514acfcb856997925b4c11ef6f8f
binaryage/chromex
webcam_private.clj
(ns chromex.app.webcam-private "Webcam Private API. * available since Chrome 40" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps_private/chromex/app/webcam_private.clj
clojure
-- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------------------------------------------------------------------------------------- -- API TABLE --------------------------------------------------------...
(ns chromex.app.webcam-private "Webcam Private API. * available since Chrome 40" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (...
184b7318ed632f0d2097e6f06a28d2f794e11d5c9f1df15363c7504cee46c8c2
bsaleil/lc
etape1-add1.scm
(println (+ 7 3)) (println (+ -7 3)) (println (+ 7 -3)) (println (+ -7 -3)) 10 ;-4 4 ;-10
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/unit-tests/IFT3065/1/etape1-add1.scm
scheme
-4 -10
(println (+ 7 3)) (println (+ -7 3)) (println (+ 7 -3)) (println (+ -7 -3)) 10 4
3aaad2d4a79f857e73b89406f805384e72026b6382566b66a2a13709b834b612
ghc/testsuite
T3018.hs
# LANGUAGE OverlappingInstances , UndecidableInstances , EmptyDataDecls # # LANGUAGE RankNTypes , KindSignatures , MultiParamTypeClasses , FlexibleInstances # -- Works with new constraint solver module T3018 where import Control.Monad minimal Data / Rep classes data Rep (ctx :: * -> *) a class Data (ctx :: * -> ...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/T3018.hs
haskell
Works with new constraint solver ----- Version A : failed in 6.12.3 ----------- Substitution class substitute [a -> t] t'. ----- Version B : passed in 6.12.3 ----------- Substitution class substitute [a -> t] t'. generic instance ( 1 ) ( 2 ) (1) (2)
# LANGUAGE OverlappingInstances , UndecidableInstances , EmptyDataDecls # # LANGUAGE RankNTypes , KindSignatures , MultiParamTypeClasses , FlexibleInstances # module T3018 where import Control.Monad minimal Data / Rep classes data Rep (ctx :: * -> *) a class Data (ctx :: * -> *) a where rep :: Rep ctx a class ...
96917fa0c7c78aa3886b49c8f0d9a0dc1677e7d585ddb019b66fd853eaeeda01
slyrus/abcl
print-unreadable-object.lisp
print-unreadable-object.lisp ;;; Copyright ( C ) 2003 - 2005 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any la...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/print-unreadable-object.lisp
lisp
This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details...
print-unreadable-object.lisp Copyright ( C ) 2003 - 2005 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston...
cec1d5ea0022381a299050fd002b71c95e2b186626de2b7770e6982f200f70bf
vraid/earthgen
planet-renderer.rkt
#lang racket (require vraid/opengl "tile-renderer.rkt" "river-renderer.rkt" "planet-data.rkt") (provide planet-renderer) (define ((planet-renderer transform) data climate?) (let* ([tile-renderer ((tile-renderer transform) data)] [river-renderer (if climate? ((river-renderer tran...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/renderer/planet-renderer.rkt
racket
#lang racket (require vraid/opengl "tile-renderer.rkt" "river-renderer.rkt" "planet-data.rkt") (provide planet-renderer) (define ((planet-renderer transform) data climate?) (let* ([tile-renderer ((tile-renderer transform) data)] [river-renderer (if climate? ((river-renderer tran...
cfde0199f62ae41fe54a6dec12634ff9c64a3af692830ccc13814e470952f802
prikhi/crypto-portfolio
Styles.hs
module Styles where import Brick (AttrMap, attrMap) import qualified Graphics.Vty as V import Table (tableHeaderAttr, tableFooterAttr) -- | The Style Map for the Application. -- -- Currently we only use the terminal's default values. attributeMap :: AttrMap attributeMap = attrMap V.defAttr [ ( tableHead...
null
https://raw.githubusercontent.com/prikhi/crypto-portfolio/2b4722daa969b766434840bc53c888ad835234c6/src/Styles.hs
haskell
| The Style Map for the Application. Currently we only use the terminal's default values.
module Styles where import Brick (AttrMap, attrMap) import qualified Graphics.Vty as V import Table (tableHeaderAttr, tableFooterAttr) attributeMap :: AttrMap attributeMap = attrMap V.defAttr [ ( tableHeaderAttr, V.withStyle V.defAttr V.bold ) , ( tableFooterAttr, V.withStyle V.defAttr V.bold ) ...
b67cec5380a486ce7d8de4967ac06e021fb8cd387c5278dca68844e25a43fed0
haskell-suite/haskell-src-exts
TypeListCons.hs
{-# LANGUAGE DataKinds, TypeOperators #-} module TypeListCons where type List1 a = a ': '[] type List2 a b = a ': '[] type List3 a b c = a ': b ': c ': '[]
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/TypeListCons.hs
haskell
# LANGUAGE DataKinds, TypeOperators #
module TypeListCons where type List1 a = a ': '[] type List2 a b = a ': '[] type List3 a b c = a ': b ': c ': '[]
14123fbad6a1668945190c492554e33b833350616000de1e5765cb9ddaef89f3
cedlemo/OCaml-GI-ctypes-bindings-generator
Cell_renderer_text_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Cell_renderer_text_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Cell_renderer_text_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Cell_renderer_text_private"
2c00bd4f9f11c2a4aadda486023670a1333b38980de806f13f514f33e5d85a37
maranget/hevea
version.ml
(***********************************************************************) (* *) (* HEVEA *) (* *) , projet PARA , INR...
null
https://raw.githubusercontent.com/maranget/hevea/6e1dadcd6a61388fe822abab89829c448a69cc69/version.ml
ocaml
********************************************************************* HEVEA ...
, projet PARA , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . let real_version = "2.36" let release_date = "2022-06-15" let version = try let _ = String.index real_vers...
2926740d9e8346a3ef52d6ab2940cb79e98145d58eb5cfb2c8f66907884f4609
skanev/playground
49.scm
SICP exercise 5.49 ; ; As an alternative to using the explicit-control evaluator's read-eval-print ; loop, design a register machine that performs a read-compile-execute-print ; loop. That is, the machine should run a loop that reads an expression, ; compiles it, assembles and executes the resulting code, and prints ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/49.scm
scheme
As an alternative to using the explicit-control evaluator's read-eval-print loop, design a register machine that performs a read-compile-execute-print loop. That is, the machine should run a loop that reads an expression, compiles it, assembles and executes the resulting code, and prints the result. This is easy ...
SICP exercise 5.49 (load-relative "showcase/compiler/helpers.scm") (define (compile-in-machine exp) (assemble (statements (compile-exp exp 'val 'return)) eceval)) (define cm-operations (append cm-operations `((compile ,compile-in-machine)))) (define explicit+compile-text '(read-eval-print-loop (perfor...
2b3693e6b346b563137c3c0417bd5b2e2699a23df78f0658a17093fddab936a2
wardle/hermes
core.clj
Copyright 2020 and Eldrix Ltd ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/wardle/hermes/edbe869e38e3bf9bb98e98fdac6afc1a383d8958/src/com/eldrix/hermes/core.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2020 and Eldrix Ltd distributed under the License is distributed on an " AS IS " BASIS , (ns com.eldrix.hermes.core "Provides a terminology service, wrapping the SNOMED store and search implementations as a single unified service." (:require [clojure.core.async :as a] [clojure.edn :a...
44ebdac6adb2dbd01b2dd228f55431ee92c948544aa1e7aea417b0ba21f27bc7
qfpl/reflex-workshop
Frontend.hs
module Frontend where import Reflex.Dom import Util.Bootstrap import UI import Workshop frontend :: (StaticWidget x (), Widget x ()) frontend = mkApp [] [] $ ui workshop
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Frontend.hs
haskell
module Frontend where import Reflex.Dom import Util.Bootstrap import UI import Workshop frontend :: (StaticWidget x (), Widget x ()) frontend = mkApp [] [] $ ui workshop
aa334c41b12e8bab73dc3ff4dec9189db394065f25d459e7e5a9af066e55a705
tdietert/haskell-blockchain-workshop
PeerDiscovery.hs
module Main where import Protolude hiding (toList) import Control.Distributed.Process (NodeId) import qualified Control.Distributed.Process.Node as DP import Data.List (nub) import qualified Data.List.NonEmpty as NEL import qualified Data.Text as T import Data.Map (Map, insert, delete, keys, toList, fromList) impo...
null
https://raw.githubusercontent.com/tdietert/haskell-blockchain-workshop/e7258ebc962b849b0bac5f0dff04c79074555373/test/p2p/discovery/PeerDiscovery.hs
haskell
module Main where import Protolude hiding (toList) import Control.Distributed.Process (NodeId) import qualified Control.Distributed.Process.Node as DP import Data.List (nub) import qualified Data.List.NonEmpty as NEL import qualified Data.Text as T import Data.Map (Map, insert, delete, keys, toList, fromList) impo...
5dd0113d201ea7c95f54012cda2223eb49f6ca4a04d06db559f85bc845d3dcd9
glennsl/bs-json
Json_encode_test.ml
open Jest open Expect open! Json.Encode let _ = test "null" (fun () -> expect null |> toEqual @@ Obj.magic Js.null); test "string" (fun () -> expect @@ string "foo" |> toEqual @@ Obj.magic "foo"); test "float" (fun () -> expect @@ float 1.23 |> toEqual @@ Obj.magic 1.23); test "int" ...
null
https://raw.githubusercontent.com/glennsl/bs-json/1350d3f416a7a6486950411bb5b09e6905d32f25/__tests__/Json_encode_test.ml
ocaml
open Jest open Expect open! Json.Encode let _ = test "null" (fun () -> expect null |> toEqual @@ Obj.magic Js.null); test "string" (fun () -> expect @@ string "foo" |> toEqual @@ Obj.magic "foo"); test "float" (fun () -> expect @@ float 1.23 |> toEqual @@ Obj.magic 1.23); test "int" ...
da01b8f7b44c8b562de08454beed237b283986cb0e9bfcf69c243aafdaaafe3b
rmloveland/scheme48-0.53
vm-tables.scm
; -*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- Copyright ( c ) 1993 - 1999 by and . See file COPYING . String hash tables for managing three tables : ; the symbol table : string -> symbol ; exported-bindings : string -> shared-binding ; imported-bindings : string -> shared-binding ; Size of the h...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/vm/vm-tables.scm
scheme
-*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- the symbol table : string -> symbol exported-bindings : string -> shared-binding imported-bindings : string -> shared-binding Size of the hash vectors (is this a reasonable size?). All hash table values are required to have their own link fields. All buck...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . String hash tables for managing three tables : (define hash-table-slots 1024) (define hash-table-size (vm-vector-size hash-table-slots)) (define hash-table-entry-size 0) (define (hash-table-index string) (bitwise-and (vm-string-hash string) ...
96c357d204d036fd9ee271f288a79fe64d729f7ca42648746178535bf1071122
intermine/bluegenes
subs.cljs
(ns bluegenes.pages.developer.subs (:require [re-frame.core :as re-frame :refer [reg-sub]])) (reg-sub ::panel (fn [db] (get-in db [:debug-panel]))) (reg-sub ::tools-path (fn [db] (get-in db [:tools :path])))
null
https://raw.githubusercontent.com/intermine/bluegenes/417ea23b2d00fdca20ce4810bb2838326a09010e/src/cljs/bluegenes/pages/developer/subs.cljs
clojure
(ns bluegenes.pages.developer.subs (:require [re-frame.core :as re-frame :refer [reg-sub]])) (reg-sub ::panel (fn [db] (get-in db [:debug-panel]))) (reg-sub ::tools-path (fn [db] (get-in db [:tools :path])))
718065f771390d20307b6e2465d58186948e2c071f5d4f5f5316f637bd0baa50
babashka/sci.configs
cljs_bean.cljs
(ns sci.configs.mfikes.cljs-bean (:require [cljs-bean.core :as bean] [sci.core :as sci])) (def bns (sci/create-ns 'cljs-bean.core nil)) (def cljs-bean-namespace {'bean (sci/copy-var bean/bean bns) 'bean? (sci/copy-var bean/bean? bns) 'object (sci/copy-var bean/object bns) '->js (sci/copy-var bean/-...
null
https://raw.githubusercontent.com/babashka/sci.configs/7a72912ab50ac03a25a4a7629924932ddef2e9a9/src/sci/configs/mfikes/cljs_bean.cljs
clojure
(ns sci.configs.mfikes.cljs-bean (:require [cljs-bean.core :as bean] [sci.core :as sci])) (def bns (sci/create-ns 'cljs-bean.core nil)) (def cljs-bean-namespace {'bean (sci/copy-var bean/bean bns) 'bean? (sci/copy-var bean/bean? bns) 'object (sci/copy-var bean/object bns) '->js (sci/copy-var bean/-...
9925210fa64a7c289da14e025b244039c320442c78e98a9e6d75acb2e3f6c957
metabase/metabase
util.clj
(ns macros.metabase.test.util) (defmacro with-temp-env-var-value [bindings & body] `((constantly nil) ~@(map second (partition-all 2 bindings)) ~@body)) (defmacro with-temporary-raw-setting-values [bindings & body] `((constantly nil) ~@(map second (partition-all 2 bindings)) ~@body))
null
https://raw.githubusercontent.com/metabase/metabase/905f888326356e3c933860920addb4b92c5638c6/.clj-kondo/macros/metabase/test/util.clj
clojure
(ns macros.metabase.test.util) (defmacro with-temp-env-var-value [bindings & body] `((constantly nil) ~@(map second (partition-all 2 bindings)) ~@body)) (defmacro with-temporary-raw-setting-values [bindings & body] `((constantly nil) ~@(map second (partition-all 2 bindings)) ~@body))
db31cbaf74d714fd278c676c215be6d347af5dfbe4f5a00c1e2ed3b978387757
Eduap-com/WordMat
numericalio.lisp
Copyright 2005 by ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License . ;; This program has NO WARRANTY, not even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (in-package :maxima) ;; Read functions...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/numericalio/numericalio.lisp
lisp
This program is free software; you can redistribute it and/or This program has NO WARRANTY, not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Read functions: read_binary_matrix (source, M) A : read_binary_array (source) read_binary_array (source, A) L: read_binar...
Copyright 2005 by modify it under the terms of the GNU General Public License . (in-package :maxima) M : read_matrix ( source , sep_ch_flag ) read_matrix ( source , M , sep_ch_flag ) A : read_array ( source , sep_ch_flag ) read_array ( source , A , sep_ch_flag ) read_hashed_array ( sourc...
f5668f64bff0e49bf5e5304fb95e54d1bacb97d7e181ef68e38eb20c84c3d13c
joyofclojure/book-source
sql_test.clj
(ns joy.sql-test (:require [joy.sql :as sql] [clojure.test :refer (deftest is testing)])) (deftest test-sql (testing "That the SQL examples from chapter 1 work properly" (is (= (sql/query 9) ["SELECT a, b, c FROM X LEFT JOIN Y ON (X.a = Y.b) WHERE ((a < 5) AND (b < ?))" [9]]))))
null
https://raw.githubusercontent.com/joyofclojure/book-source/b76ef15248dac88c7b1c77c2d461f3aa522a1461/test/joy/sql_test.clj
clojure
(ns joy.sql-test (:require [joy.sql :as sql] [clojure.test :refer (deftest is testing)])) (deftest test-sql (testing "That the SQL examples from chapter 1 work properly" (is (= (sql/query 9) ["SELECT a, b, c FROM X LEFT JOIN Y ON (X.a = Y.b) WHERE ((a < 5) AND (b < ?))" [9]]))))
74cd3e5931e28a4089615bd1fd8649991b1037649ef4995924a24b1a989c3474
BumblebeeBat/FlyingFox
packer.erl
We should add some rules about which atoms can be used with tuples . If peers can trick us into decoding new atoms , they can overflow erlang with too many atoms . -module(packer). -export([pack/1,unpack/1,test/0, untup/1, unpack_helper/1]). -define(KEY, -6). untup(X) when is_tuple(X) -> lists:map(fun(Z) ->untup(Z) end...
null
https://raw.githubusercontent.com/BumblebeeBat/FlyingFox/0fa039cd2394b08b1a85559f9392086c6be47fa6/src/consensus/packer.erl
erlang
untup(X) when is_binary(X) -> X; %bad bad New = ["unlock2",24001,1,[["signed",["channel_block",0,3,-9500,3,[-6],24001,false,259,0,0,0],"TUVZQ0lRQzlwVkxjQ0hReXhpWE0zOU43bVFOS1pTV01WS0MxMkNUYjUwZSs4MkRnd3dJaEFPZG1lWlp0VXdjUXU0UjQzazhRWkREd29tb1BuQ05TWlhDSEl0QU5PemRj",[-6],[-6]],0]],
We should add some rules about which atoms can be used with tuples . If peers can trick us into decoding new atoms , they can overflow erlang with too many atoms . -module(packer). -export([pack/1,unpack/1,test/0, untup/1, unpack_helper/1]). -define(KEY, -6). untup(X) when is_tuple(X) -> lists:map(fun(Z) ->untup(Z) end...
98a88ec4a91daa640d6e875bb67635bf686f2a4d834d5f0c471b91bbe60b8986
defaultxr/cl-collider-tutorial
pmosc.lisp
(in-package #:sc) (defun pm-osc.ar (car-freq mod-freq &optional (pm-index 0.0) (mod-phase 0.0) (mul 1.0) (add 0.0)) (sin-osc.ar car-freq (sin-osc.ar mod-freq mod-phase pm-index) mul add)) (defun pm-osc.kr (car-freq mod-freq &optional (pm-index 0.0) (mod-phase 0.0) (mul 1.0) (add 0.0)) (sin-osc.kr car-freq (sin-...
null
https://raw.githubusercontent.com/defaultxr/cl-collider-tutorial/266ae3e6aaa16d35695266ec884c30626fc8e38d/cl-collider/ugens/pmosc.lisp
lisp
(in-package #:sc) (defun pm-osc.ar (car-freq mod-freq &optional (pm-index 0.0) (mod-phase 0.0) (mul 1.0) (add 0.0)) (sin-osc.ar car-freq (sin-osc.ar mod-freq mod-phase pm-index) mul add)) (defun pm-osc.kr (car-freq mod-freq &optional (pm-index 0.0) (mod-phase 0.0) (mul 1.0) (add 0.0)) (sin-osc.kr car-freq (sin-...
6b17958490cf8157bd61bb482c9e473b85ceca97ea1a77ae5bb7e6e7bf8eb497
rvl/flatris
Network.hs
# LANGUAGE RecursiveDo , FlexibleContexts , TypeFamilies , RecordWildCards # module Network where import Data.Time.Clock (UTCTime, NominalDiffTime, diffUTCTime) import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import Control.Monad.Fix (MonadFix) import Reflex import Board import Game newGame10 :: IO Flatris new...
null
https://raw.githubusercontent.com/rvl/flatris/f5f099e5b67a6d745280bee869f2c76d9f101737/app-reflex/Network.hs
haskell
^ Initial game state ^ Start new game ^ Regular update event ^ Rotation direction ^ Place piece at current position ^ Board coords of mouse hover ^ Keyboard move ^ Current game state ^ Hovering piece to show ^ Board coords of hover piece repeat something on an interval limit number of events fired
# LANGUAGE RecursiveDo , FlexibleContexts , TypeFamilies , RecordWildCards # module Network where import Data.Time.Clock (UTCTime, NominalDiffTime, diffUTCTime) import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import Control.Monad.Fix (MonadFix) import Reflex import Board import Game newGame10 :: IO Flatris new...
2ae8c929987f9dfbdc1c5c0b658a39e949cefdbe173d0c3981fcbd76eec6459a
lisp/de.setf.resource
vocabulary.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : common - lisp - user ; -*- ;;; from #<doc-node #x30C6BA0E> (common-lisp:in-package :common-lisp-user) (common-lisp:defpackage "/" (:use) (:nicknames "rel") (:export "acquaintanceOf" "ambivalentOf" "ancestorOf" "antagonistOf" ...
null
https://raw.githubusercontent.com/lisp/de.setf.resource/27bf6dfb3b3ca99cfd5a6feaa5839d99bfb4d29e/namespaces/purl-org/vocab/relationship/vocabulary.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : common - lisp - user ; -*- from #<doc-node #x30C6BA0E>
(common-lisp:in-package :common-lisp-user) (common-lisp:defpackage "/" (:use) (:nicknames "rel") (:export "acquaintanceOf" "ambivalentOf" "ancestorOf" "antagonistOf" "apprenticeTo" "childOf" "closeFriendOf" "collaboratesWith" "colleagueOf" "descendantOf" "employedBy" "employe...
36baac4c3bf0bde79f1490a911ade5ff62418646f1fee296d9ce467a3c105535
pelle/clauth
project.clj
(defproject clauth "1.0.0-rc17" :description "OAuth2 based authentication library for Ring" :url "" :dependencies [[org.clojure/clojure "1.5.1"] [crypto-random "1.1.0"] [commons-codec "1.6"] [ring/ring-core "1.2.0"] [cheshire "5.2.0"] ...
null
https://raw.githubusercontent.com/pelle/clauth/6f33d256e7cd5be72334ea58d6122395c7e305ca/project.clj
clojure
(defproject clauth "1.0.0-rc17" :description "OAuth2 based authentication library for Ring" :url "" :dependencies [[org.clojure/clojure "1.5.1"] [crypto-random "1.1.0"] [commons-codec "1.6"] [ring/ring-core "1.2.0"] [cheshire "5.2.0"] ...
60c6a157ff0822182b0f2a4918228b859eae2a77b8a3fc8f99be29ba241e4b9d
blindglobe/clocc
section4.lisp
;;; types -*- mode: lisp -*- (in-package :cl-user) (proclaim '(special log)) ;;coerce (check-for-bug :section4-legacy-7 (coerce '(a b c) 'vector) #(A B C)) (check-for-bug :section4-legacy-11 (coerce '(a b c) 'list) (A B C)) (check-for-bug :section4-legacy-15 (coerce '(#\A #\B #\C) 'string) "ABC") (chec...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/tools/ansi-test/section4.lisp
lisp
types -*- mode: lisp -*- coerce true, true ;or false, false true, true ;or false, false type-of OR=> (CONS FIXNUM FIXNUM) OR=> (INTEGER 1099511627776 1099511627776) OR=> SYSTEM::TWO-WORD-BIGNUM OR=> FIXNUM typep To understand this next example, you might need to refer to Section 12.1.5.3 (Rule of Canon...
(in-package :cl-user) (proclaim '(special log)) (check-for-bug :section4-legacy-7 (coerce '(a b c) 'vector) #(A B C)) (check-for-bug :section4-legacy-11 (coerce '(a b c) 'list) (A B C)) (check-for-bug :section4-legacy-15 (coerce '(#\A #\B #\C) 'string) "ABC") (check-for-bug :section4-legacy-19 (coerc...
b272dd94417bd2c693b175dbdc680c06bce4560591aea4b2167c642299832219
xmonad/xmonad-contrib
CycleWorkspaceByScreen.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Actions . CycleWorkspaceByScreen -- Description : Cycle workspaces in a screen-aware fashion. Copyright : ( c ) 2017 -- License : BSD3-style (see LICENSE) -- Maintainer : -- Stability :...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/a790c816d247a8909ba2e8d51c1de800c6b3ffb7/XMonad/Actions/CycleWorkspaceByScreen.hs
haskell
--------------------------------------------------------------------------- | Description : Cycle workspaces in a screen-aware fashion. License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable Cycle through previously viewed workspaces in the order they were viewed most recent...
Module : XMonad . Actions . CycleWorkspaceByScreen Copyright : ( c ) 2017 Maintainer : module XMonad.Actions.CycleWorkspaceByScreen ( cycleWorkspaceOnScreen , cycleWorkspaceOnCurrentScreen , handleKeyEvent , repeatableAction ) where import Data.IORef import X...
2b5ac2fa7fe0bc088759979434566ec9e0469833c891f2c8e6619d6257568d18
bvaugon/ocapic
simul1.ml
(*************************************************************************) (* *) (* OCaPIC *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/tests/serial3/simul1.ml
ocaml
*********************************************************************** OCaPIC ...
This file is distributed under the terms of the CeCILL license . open Serial;; type t = | Clear | Moveto of int * int | Int of int | Int32 of int32 | Int64 of int64 | Float of float | Floats of float array | Text of string let (chan : (t, (int...