_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
5286945aa9dbd3dc6a451cf94330df9a5753529dc360b9e94ebbdcf6ff541b94
sheyll/newtype-zoo
Single.hs
-- | Indicate that something contains only a `Single` part of something. module NewtypeZoo.Single ( Single(Single) , _theSingle , theSingle ) where import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import Data.Bits ...
null
https://raw.githubusercontent.com/sheyll/newtype-zoo/0e67717cbcd9233d9c26b6aacb4c6f8bba6ef5f7/src/NewtypeZoo/Single.hs
haskell
| Indicate that something contains only a `Single` part of something. # INLINE _theSingle #
module NewtypeZoo.Single ( Single(Single) , _theSingle , theSingle ) where import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import Data.Bits (Bits,FiniteBits) import Data.Copointed (Copointed) import...
9122916fa6ca3fb7ab463e5891794a0bf8b06e5522905e811dc4ba208426d43c
haskell-webgear/webgear
Model.hs
module Model where import Control.Monad.IO.Class (MonadIO (..)) import Data.Aeson (FromJSON, ToJSON) import Data.Hashable (Hashable) import Data.IORef (IORef, modifyIORef, newIORef, readIORef) import Data.Maybe (isJust) import Data.Text (Text) import Data.Time.Calendar (Day) import GHC.Generics (Generic) import quali...
null
https://raw.githubusercontent.com/haskell-webgear/webgear/52e90e28d81e4ce6d7c8e63b3f9769f6629b031f/webgear-benchmarks/src/users/Model.hs
haskell
------------------------------------------------------------------------------ Model for users ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ An in-memory store and associated operations for users ----------...
module Model where import Control.Monad.IO.Class (MonadIO (..)) import Data.Aeson (FromJSON, ToJSON) import Data.Hashable (Hashable) import Data.IORef (IORef, modifyIORef, newIORef, readIORef) import Data.Maybe (isJust) import Data.Text (Text) import Data.Time.Calendar (Day) import GHC.Generics (Generic) import quali...
a0d6b9958bd39ac2f430ec02a7e008657f8706190da414a391e374df6eee8297
froggey/Mezzano
xp-printers.lisp
(in-package :mezzano.xp) (defun fn-call (xp list) (funcall (formatter "~:<~W~^ ~:I~@_~@{~W~^ ~_~}~:>") xp list)) ;Although idiosyncratic, I have found this very useful to avoid large ;indentations when printing out code. (defun alternative-fn-call (xp list) (if (> (length (symbol-name (car list))) 12) (fun...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/system/xp-printers.lisp
lisp
Although idiosyncratic, I have found this very useful to avoid large indentations when printing out code. THE FOLLOWING STUFF SETS UP THE DEFAULT *PRINT-PPRINT-DISPATCH* that does not just get printed out like an ordinary function call (i.e., most special forms and many macros). This of course does not cover anything ...
(in-package :mezzano.xp) (defun fn-call (xp list) (funcall (formatter "~:<~W~^ ~:I~@_~@{~W~^ ~_~}~:>") xp list)) (defun alternative-fn-call (xp list) (if (> (length (symbol-name (car list))) 12) (funcall (formatter "~:<~1I~@{~W~^ ~_~}~:>") xp list) (funcall (formatter "~:<~W~^ ~:I~@_~@{~W~^ ~_~}~:>")...
72db9f1550399aa541c8f3f2705bdc18ce6987abccdeb33f69b0497856c3605f
alephcloud/hs-aws-lambda
UpdateFunctionConfiguration.hs
Copyright ( c ) 2013 - 2014 PivotCloud , Inc. -- -- Aws.Lambda.Commands.UpdateFunctionConfiguration -- -- Please feel free to contact us at with any -- contributions, additions, or other feedback; we would love to hear from -- you. -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may --...
null
https://raw.githubusercontent.com/alephcloud/hs-aws-lambda/df10334bf419384db254d71da06c801849571c1e/src/Aws/Lambda/Commands/UpdateFunctionConfiguration.hs
haskell
Aws.Lambda.Commands.UpdateFunctionConfiguration Please feel free to contact us at with any contributions, additions, or other feedback; we would love to hear from you. 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 a...
Copyright ( c ) 2013 - 2014 PivotCloud , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , WITHOUT # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUA...
899d9c6968a76391f1a8ef5de4e5b6d6a22c3951dd27c7e6b613ee3b371791b4
originrose/cortex
tensor.clj
(ns cortex.tensor "Tensor library used to implement the basic math abstraction in cortex. This abstraction is meant to provide a language in which to implement new things but that explicitly avoids access to certain parts of the compute ecosystem that the engine driving the ecosystem is expected to manage. Cl...
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/src/cortex/tensor.clj
clojure
the check is that the remainder is Stream is dynamically bound at execution time presumably by an entity outside of the context of this file. Due to this clients of this file should not be manipulating stream. Similar to stream, the engine will set this variable and clients should not set the variable themselves. Ten...
(ns cortex.tensor "Tensor library used to implement the basic math abstraction in cortex. This abstraction is meant to provide a language in which to implement new things but that explicitly avoids access to certain parts of the compute ecosystem that the engine driving the ecosystem is expected to manage. Cl...
0f2e85be7e56f8e9f7e91a21ec94c23b809531a997b162fea1b4472f124d1075
fetburner/Coq2SML
leminv.mli
open Util open Names open Term open Glob_term open Proof_type open Topconstr val lemInv_gen : quantified_hypothesis -> constr -> tactic val lemInvIn_gen : quantified_hypothesis -> constr -> identifier list -> tactic val lemInv_clause : quantified_hypothesis -> constr -> identifier list -> tactic val inversion_lemm...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/tactics/leminv.mli
ocaml
open Util open Names open Term open Glob_term open Proof_type open Topconstr val lemInv_gen : quantified_hypothesis -> constr -> tactic val lemInvIn_gen : quantified_hypothesis -> constr -> identifier list -> tactic val lemInv_clause : quantified_hypothesis -> constr -> identifier list -> tactic val inversion_lemm...
9e9dbed7980bf7d6df3a7ef4532f9bc09098c509f8ac976f0dbae03a4abf88f4
input-output-hk/cardano-prelude
Prelude.hs
module Test.Cardano.Prelude ( module X, ) where import Test.Cardano.Prelude.Base16 as X import Test.Cardano.Prelude.Gen as X import Test.Cardano.Prelude.Golden as X import Test.Cardano.Prelude.Helpers as X import Test.Cardano.Prelude.Orphans () import Test.Cardano.Prelude.QuickCheck.Arbitrary as X import Test.Cardan...
null
https://raw.githubusercontent.com/input-output-hk/cardano-prelude/94b37483937cfb7c07d69a708c950a090bb9670f/cardano-prelude-test/src/Test/Cardano/Prelude.hs
haskell
module Test.Cardano.Prelude ( module X, ) where import Test.Cardano.Prelude.Base16 as X import Test.Cardano.Prelude.Gen as X import Test.Cardano.Prelude.Golden as X import Test.Cardano.Prelude.Helpers as X import Test.Cardano.Prelude.Orphans () import Test.Cardano.Prelude.QuickCheck.Arbitrary as X import Test.Cardan...
533d1af8fcaceaff377868edeedace01a8037808f9740b7f72e64b73e6eedc20
janestreet/core_bench
run_config.mli
* A module internal to [ Core_bench ] . Please look at { ! Bench } . open! Core type t = { verbosity : Verbosity.t ; no_compactions : bool ; quota : Quota.t ; sampling_type : [ `Geometric of float | `Linear of int ] ; stabilize_gc_between_runs : bool ; fork_each_benchmark : bool ; thin_overhead : int opt...
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/internals/run_config.mli
ocaml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . open! Core type t = { verbosity : Verbosity.t ; no_compactions : bool ; quota : Quota.t ; sampling_type : [ `Geometric of float | `Linear of int ] ; stabilize_gc_between_runs : bool ; fork_each_benchmark : bool ; thin_overhead : int opt...
42a7a137cb2cbb5cd542559be43253de44f4f985e4c606956e7bd384613c4102
nikita-volkov/rerebase
Julian.hs
module Data.Time.Calendar.Julian ( module Rebase.Data.Time.Calendar.Julian ) where import Rebase.Data.Time.Calendar.Julian
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Time/Calendar/Julian.hs
haskell
module Data.Time.Calendar.Julian ( module Rebase.Data.Time.Calendar.Julian ) where import Rebase.Data.Time.Calendar.Julian
ede2c6824bb72f0a0f88b78eb8c240a357b9e2342b44382da85eb5b186c7ff44
icm-yairiny/cljs-idxdb
core.clj
(ns cljs-idxdb.core) (defmacro request-db "Request a reference to a db. If an upgrade is needed, executes body within the version change transaction. Returns a tuple with the request, and a subscribable chan, that publishes to the following topics on events: - :success - :error" [name version db-binding & b...
null
https://raw.githubusercontent.com/icm-yairiny/cljs-idxdb/b6d46c8645efc895dbf5e64a1582f6864fd55316/src/clj/cljs_idxdb/core.clj
clojure
(ns cljs-idxdb.core) (defmacro request-db "Request a reference to a db. If an upgrade is needed, executes body within the version change transaction. Returns a tuple with the request, and a subscribable chan, that publishes to the following topics on events: - :success - :error" [name version db-binding & b...
81d3ec8311fd180175c0428e3e181a5f2605e11838fcfd7e2a73207786297410
lnfiniteMonkeys/TimeLines-hs
TimeLines.hs
module Sound.TimeLines.TimeLines where import qualified Sound.File.Sndfile as SF import Sound.TimeLines.Types import Sound.TimeLines.Util import Sound.TimeLines.OSC import Sound.TimeLines.Globals (globalSessionRef) import System.Random import Control.Concurrent (forkIO) import Control.Concurrent.Async (mapConcurrent...
null
https://raw.githubusercontent.com/lnfiniteMonkeys/TimeLines-hs/c5f61e12ee945dbb999a090cec23bc135e0df91a/src/Sound/TimeLines/TimeLines.hs
haskell
import qualified Data.Map.Strict as Map INTERFACE FUNCTIONS fork session wrappers? | A session in which the window is explicit and static | A session in which time constantly and infinitely | increases (with the option of resetting it at any point) | Interface function that groups params into Synths | Ignores a...
module Sound.TimeLines.TimeLines where import qualified Sound.File.Sndfile as SF import Sound.TimeLines.Types import Sound.TimeLines.Util import Sound.TimeLines.OSC import Sound.TimeLines.Globals (globalSessionRef) import System.Random import Control.Concurrent (forkIO) import Control.Concurrent.Async (mapConcurrent...
50adf70ab4cd842ea0bf69a570811da1e969fe85e5ddd9ba6656ecdb1aa58d91
srdqty/talc-3.0
compile.mli
val f : Program.t list -> string
null
https://raw.githubusercontent.com/srdqty/talc-3.0/df83dd5ff0e2b189b13280ddae233d8277199350/apps/gml/plclub/src/compile.mli
ocaml
val f : Program.t list -> string
103d4f09a02051178cba80320107a8d48b332827b845355e52b4a7108f29a4e1
apache/couchdb-mochiweb
websocket.erl
-module(websocket). To run : erlc websocket.erl & & erl -pa .. / .. /ebin -s websocket The MIT License ( MIT ) Copyright ( c ) 2012 Zadane.pl sp . %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal...
null
https://raw.githubusercontent.com/apache/couchdb-mochiweb/d3c47a9e8833cd878c9227093e30a2341ee32900/examples/websocket/websocket.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice an...
-module(websocket). To run : erlc websocket.erl & & erl -pa .. / .. /ebin -s websocket The MIT License ( MIT ) Copyright ( c ) 2012 Zadane.pl sp . in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all ...
2e582373697388c18e547bdb1275796f54b064b9ad9f2850967f3da3511fd8f8
ndmitchell/catch
BDD.hs
module Data.Proposition.BDD(BDD, propRebuildBDD) where import Data.Proposition.Internal import qualified Data.Map as Map propRebuildBDD :: (Prop p, PropLit a) => p a -> BDD a propRebuildBDD = propRebuild data BDD a = AtomTrue | AtomFalse | Choice a (BDD a) (BDD a) -- false, true ...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/proposition/Data/Proposition/BDD.hs
haskell
false, true ------------------------------------------------------------------- ------------------------------------------------------------------- MAPPING replace all occurances of AtomTrue/AtomFalse with the given predicate ------------------------------------------------------------------- FOLDING some special ...
module Data.Proposition.BDD(BDD, propRebuildBDD) where import Data.Proposition.Internal import qualified Data.Map as Map propRebuildBDD :: (Prop p, PropLit a) => p a -> BDD a propRebuildBDD = propRebuild data BDD a = AtomTrue | AtomFalse deriving (Eq, Ord) instance Prop BDD where prop...
364d1d7f04e24a45cc2a750cc4ca3ba1ef8585af80721e8b1e77f0fcbb9e86eb
aws-beam/aws-erlang
aws_simspaceweaver.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc Amazon Web Services ( ) is a managed %% service that you can use to build and operate large-scale spatial %% simulations in the Amazon Web Services Cloud. %% %% For example, you can create a digital twin of a city, crow...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_simspaceweaver.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! service that you can use to build and operate large-scale spatial simulations in the Amazon Web Services Cloud. For example, you can create a digital twin of a city, crowd simulations This API reference describes the API operations and data types that you =============...
See -beam/aws-codegen for more details . @doc Amazon Web Services ( ) is a managed with millions of people and objects , and massilvely - multiplayer games with hundreds of thousands of connected players . For more information about , see the Amazon Web Services . can use to communicate directly ...
a37e6979d1cddf5b8f6abc8661efc1cc628d829d9fbc24f47d2672e92be7a7c1
ShamoX/cash
sexp.mli
(***********************************************************************) (* Cash *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ShamoX/cash/aa97231154c3f64c9d0a62823e1ed71e32ab8718/sexp.mli
ocaml
********************************************************************* Cash under the terms of the GNU Lesser Gene...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed Cash is based on , by . type sexp 'a = [ Bool of bool | Char of char | Eo...
9b77d98aff4080f60d3ce3dbb169707a9b56bffa7368aa3c8031edc3e94fb974
parenthesin/microservice-boilerplate-malli
database.clj
(ns integration.parenthesin.util.database (:require [parenthesin.components.database :as db] [state-flow.api :as state-flow.api] [state-flow.core :as state-flow :refer [flow]])) (defn execute! [commands] (flow "makes database execution" [database (state-flow.api/get-state :database)] ...
null
https://raw.githubusercontent.com/parenthesin/microservice-boilerplate-malli/d4a0e3b33defce626e29aac701625926462993e5/test/integration/parenthesin/util/database.clj
clojure
(ns integration.parenthesin.util.database (:require [parenthesin.components.database :as db] [state-flow.api :as state-flow.api] [state-flow.core :as state-flow :refer [flow]])) (defn execute! [commands] (flow "makes database execution" [database (state-flow.api/get-state :database)] ...
badec334e339176e196a373c0ecd8ae75951f6c90f62221c352d823e4b03f965
softwarelanguageslab/maf
test_scv_NguyenGTH18_safe_mochi_mult.rkt.scm
(mult -468879115.0 -60 1555277913) (sqr fail)
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/beac532a84f4f18f9eeac93946233aec4529ff0d/input/generated/test_scv_NguyenGTH18_safe_mochi_mult.rkt.scm
scheme
(mult -468879115.0 -60 1555277913) (sqr fail)
b7b13e44b08f4f21b9a80da82cf34e579e568ddee4eb75a695cf69820d968b51
CryptoKami/cryptokami-core
Main.hs
{-# LANGUAGE QuasiQuotes #-} # LANGUAGE TypeApplications # module Main ( main ) where import Universum import qualified Codec.Archive.Tar as Tar import Crypto.Hash (Digest, SHA512, hashlazy) import qualified Data.ByteString.Lazy as BSL import Data.List ((\\)) import qualified D...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/tools/src/genupdate/Main.hs
haskell
# LANGUAGE QuasiQuotes # new /tmp / app - v001 -o /tmp / app - update.tar find directories and fail if there are any (we can't handle directories) fail if lists of files are unequal otherwise, for all files, generate hashes and a diff put diffs and a manifesto into a tar file
# LANGUAGE TypeApplications # module Main ( main ) where import Universum import qualified Codec.Archive.Tar as Tar import Crypto.Hash (Digest, SHA512, hashlazy) import qualified Data.ByteString.Lazy as BSL import Data.List ((\\)) import qualified Data.Text.Lazy.IO as TL import ...
fe87492c35cc1c5a1e541114e35af84b06c16b7399a241828caf597b0d0cd32f
isovector/cornelis
Diff.hs
| Maintain a Diff between the text that Agda loaded most recently and the current Vim buffer . There is one such diff for every buffer , indexed by ' BufferNum ' . -- This exports three functions : - ' resetDiff ' empties the diff when reloading Agda -- - 'recordUpdate' adds a buffer update to the diff. - '...
null
https://raw.githubusercontent.com/isovector/cornelis/bbac7fcc7c0e675f17d362088be8b9425cae7735/src/Cornelis/Diff.hs
haskell
- 'recordUpdate' adds a buffer update to the diff. turning it into an interval for the current buffer. around the corresponding diff-loc functions: @ 'D.emptyDiff' :: Diff0 'D.mapDiff' :: Diff0 -> D.Interval DPos -> Maybe (D.Interval DPos) @ | Reset the diff to an empty diff. | Add a buffer update (insert...
| Maintain a Diff between the text that Agda loaded most recently and the current Vim buffer . There is one such diff for every buffer , indexed by ' BufferNum ' . This exports three functions : - ' resetDiff ' empties the diff when reloading Agda - ' translateInterval ' applies the Diff to an interval comi...
edfc9a7cbda6729ebd3c77faa26f4204b9cb8807649d684a8df288d63a210011
ropas/sparrow
octDom.ml
(***********************************************************************) (* *) Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . (* All rights reserved...
null
https://raw.githubusercontent.com/ropas/sparrow/3ec055b8c87b5c8340ef3ed6cde34f5835865b31/src/domain/octDom.ml
ocaml
********************************************************************* All rights reserved. See the LICENSE file for details. ...
Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . This software is distributed under the term of the BSD license . * Octagon domain open Cil open BasicDom open Global open Vocab open Apron module OctLoc = struct ...
a703b254130c26095eb967e820aff0246f784917395bf668b9fc57a44ba6ba97
RefactoringTools/HaRe
PatBindIn3.hs
module LiftToToplevel.PatBindIn3 where --A definition can be lifted from a where or let to the top level binding group. --Lifting a definition widens the scope of the definition. --In this example, lift 'sq' defined in 'sumSquares' --This example aims to test changing a constant to a function. sumSquares x = sq + sq...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/LiftToToplevel/PatBindIn3.hs
haskell
A definition can be lifted from a where or let to the top level binding group. Lifting a definition widens the scope of the definition. In this example, lift 'sq' defined in 'sumSquares' This example aims to test changing a constant to a function.
module LiftToToplevel.PatBindIn3 where sumSquares x = sq + sq where sq = x^pow pow =2 anotherFun 0 y = sq y where sq x = x^2
8ce2a56262d5de24867ad61274445a115446817bc439e89c8022a61ca6e70532
vraid/earthgen
custom-choice.rkt
#lang racket (require racket/gui/base) (provide (all-defined-out)) (define custom-choice% (class choice% (super-new) (inherit append clear) (define/public (set-choices choices) (define (rec ls) (unless (empty? ls) (begin (append (first ls)) (...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/gui/custom-choice.rkt
racket
#lang racket (require racket/gui/base) (provide (all-defined-out)) (define custom-choice% (class choice% (super-new) (inherit append clear) (define/public (set-choices choices) (define (rec ls) (unless (empty? ls) (begin (append (first ls)) (...
7cab663666cc81ffa37e2dbc32613e4062273819aa81ff2f6053349c4f5ec97f
vasilisp/inez
db_smt_script.ml
module S = Db_solver.Make(Scip.Scip_with_dp)(Id_for_scripts) type c = Id_for_scripts.c let ctx = S.make_ctx `Smt_out let constrain g = match S.assert_formula ctx g with | `Ok -> () | `Out_of_fragment -> raise (Invalid_argument "constrain: formula out of fragment") let minimize m = match S.add_object...
null
https://raw.githubusercontent.com/vasilisp/inez/3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1/frontend/db_smt_script.ml
ocaml
does not actually print result; for homogeneity w/ db_script
module S = Db_solver.Make(Scip.Scip_with_dp)(Id_for_scripts) type c = Id_for_scripts.c let ctx = S.make_ctx `Smt_out let constrain g = match S.assert_formula ctx g with | `Ok -> () | `Out_of_fragment -> raise (Invalid_argument "constrain: formula out of fragment") let minimize m = match S.add_object...
4c1208a448b0ed62f8feee0a0829eece1d1f6f663cf75ad607a3f25ca53476c1
kindista/kindista
blog-comment-notification.lisp
Copyright 2017 CommonGoods Network , Inc. ;;; This file is part of Kindista . ;;; Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your optio...
null
https://raw.githubusercontent.com/kindista/kindista/60da1325e628841721200aa00e4de5f9687c0adb/src/email/blog-comment-notification.lisp
lisp
(at your option) any later version. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Copyright 2017 CommonGoods Network , Inc. This file is part of Kindista . Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or Kindista is distributed ...
168c18850065790ecb8d1775edb8bc16358bdca7ee60c861da4431dc2ed8f96f
Clozure/ccl
console-log.lisp
;;; ;;; Copyright 2016 Clozure Associates ;;; 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, softw...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/console-log.lisp
lisp
Copyright 2016 Clozure Associates 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...
distributed under the License is distributed on an " AS IS " BASIS , (in-package :ccl) For sending messages to the AltConsole app Based on console-log.lisp in the MCL sources . (export '(console-log *do-console-logs*)) "True if you want console-logs to work. Assign this to be a thunk function if you wan...
6597682c334a576a4df870429b173b0b1c8d4dcee1dcec5afe9c1788f037e734
tweag/webauthn
Key.hs
# LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # module Spec.Key ( PrivateKey (..), KeyPair (..), newKeyPair, sign, toX509, ) where import Crypto.Error (CryptoFailable (CryptoFailed, CryptoPassed)) import Crypto.Number.Serialize (i2osp, i2ospOf_) import qualified Crypto.PubKey.ECC.ECDSA as E...
null
https://raw.githubusercontent.com/tweag/webauthn/4ca10ed4f7edd098540a4615b60249c1637cc47b/tests/Spec/Key.hs
haskell
-editor.org/rfc/rfc8812.html#section-2 rsaHash = hash,
# LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # module Spec.Key ( PrivateKey (..), KeyPair (..), newKeyPair, sign, toX509, ) where import Crypto.Error (CryptoFailable (CryptoFailed, CryptoPassed)) import Crypto.Number.Serialize (i2osp, i2ospOf_) import qualified Crypto.PubKey.ECC.ECDSA as E...
69b42abfbcd49e28496b1ce62223b614e3c0a30e77d2170b73e257ae6b19ac31
ds300/cfg
core_test.clj
(ns cfg.core-test (:use midje.sweet cfg.core)) (facts "about `dissoc-in`" (fact "it removes elements from a nested map structure" (dissoc-in {:a {:b {:d true} :c true}} [:a :c]) => {:a {:b {:d true}}}) (fact "it removes empty maps too." (dissoc-in {:a {:b {:d true} :c true}} [:a :b :d]) => {:a {:...
null
https://raw.githubusercontent.com/ds300/cfg/82075d9bf1c003847395e2d5b8d9bdea845256ff/test/cfg/core_test.clj
clojure
(ns cfg.core-test (:use midje.sweet cfg.core)) (facts "about `dissoc-in`" (fact "it removes elements from a nested map structure" (dissoc-in {:a {:b {:d true} :c true}} [:a :c]) => {:a {:b {:d true}}}) (fact "it removes empty maps too." (dissoc-in {:a {:b {:d true} :c true}} [:a :b :d]) => {:a {:...
530c9e4ce57af4b8e48aa001038c6f6817b7320f48ab175829d284fd101a46a5
spechub/Hets
ConsistencyStatusType.hs
# LANGUAGE TemplateHaskell # module Persistence.Schema.ConsistencyStatusType where import Database.Persist.TH " Contradictory " and " Open " are only used on OMS while the other two can be -- used on ConsistencyCheckAttempt. "Contradictory" is used when there are some -- ConsistencyCheckAttempts with "Consistent" a...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Persistence/Schema/ConsistencyStatusType.hs
haskell
used on ConsistencyCheckAttempt. "Contradictory" is used when there are some ConsistencyCheckAttempts with "Consistent" and some with "Inconsistent".
# LANGUAGE TemplateHaskell # module Persistence.Schema.ConsistencyStatusType where import Database.Persist.TH " Contradictory " and " Open " are only used on OMS while the other two can be " Open " is used when there are no ConsistencyCheckAttempts . data ConsistencyStatusType = Open | ...
405a211545ca6a6eeddaabb4bb46afa31a9471e3a605b7b33d5d5f15d10174f3
JunSuzukiJapan/cl-reex
select-many.lisp
(in-package :cl-user) (defpackage cl-reex.operator.select-many (:use :cl) (:import-from :cl-reex.observer :observer :make-observer :on-next :on-error :on-completed ) (:import-from :cl-reex.observable :observable :dispose :is-active :is-comple...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/src/operator/select-many.lisp
lisp
empty queue not empty empty queue not empty
(in-package :cl-user) (defpackage cl-reex.operator.select-many (:use :cl) (:import-from :cl-reex.observer :observer :make-observer :on-next :on-error :on-completed ) (:import-from :cl-reex.observable :observable :dispose :is-active :is-comple...
e17831cb879ca6f5e4f53b9ad5908b3b5b8d4e0b0200891959981c9bd5435b45
xvw/preface
invariant.mli
* [ Invariant ] is an " Invariant Functor " . Every { ! module : Functor } and { ! module : } is an Invariant Functor . {!module:Contravariant} is an Invariant Functor. *) (** {2 Laws} To have a predictable behaviour, the instance of [Invariant] must obey some laws. + [invmap id id = id] +...
null
https://raw.githubusercontent.com/xvw/preface/bfa4ada588c07f2862ca9e736a0de2d1f8350e9c/lib/preface_specs/invariant.mli
ocaml
* {2 Laws} To have a predictable behaviour, the instance of [Invariant] must obey some laws. + [invmap id id = id] + [invmap f2 f2' % invmap f1 f1' = invmap (f2 % f1) (f1' % f2')] * The type held by the [Invariant]. * {1 Structure anatomy} * {1 Complete API} * The complete interface of an [Invaria...
* [ Invariant ] is an " Invariant Functor " . Every { ! module : Functor } and { ! module : } is an Invariant Functor . {!module:Contravariant} is an Invariant Functor. *) * { 1 Minimal definition } module type WITH_INVMAP = sig type 'a t val invmap : ('a -> 'b) -> ('b -> 'a) -> 'a t -> 'b t * Transf...
89e3ddb2fa6e6e10957b1eac4433574746d815f811fcfd5610d696a0f7597058
TerrorJack/ghc-alter
Semigroup.hs
# LANGUAGE CPP # {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE PolyKinds #-} # LANGUAGE ScopedTypeV...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Data/Semigroup.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE PolyKinds # # LANGUAGE Trustworthy # # LANGUAGE TypeOperators # --------------------------------------------------------------------------- | ...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # Copyright : ( C ) 2011 - 2015 name that is being exported by Data . Monoid . However , this package re - exports ( most of ) the contents of Da...
e407c0cb387056c9437cd4bb7101a6de9e2d3e339964b7c075a545771da9a5e0
YoshikuniJujo/test_haskell
makeEnumVkSamplerAddressMode.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import MakeEnum main :: IO () main = makeEnum "/usr/include/vulkan/vulkan_core.h" "SamplerAddressMode" "VkSamplerAddressMode" ""
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/4d91acc13395369d3ef3d4cbdb860aa3a1f70342/themes/gui/vulkan/try-my-vulkan/tools/makeEnumVkSamplerAddressMode.hs
haskell
# OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import MakeEnum main :: IO () main = makeEnum "/usr/include/vulkan/vulkan_core.h" "SamplerAddressMode" "VkSamplerAddressMode" ""
2e6922bb32ef8db05bde7f623c8125e3c9540d930804c169743de91f5ac703cf
wh5a/thih
MultipleSpecs.hs
-- MultipleSpecs.hs Output : ( 10,9,'a',"hhhhhhh " ) inc :: Int -> Int inc = \x -> x + 1 times :: Int -> Int -> Int times = \x -> \y -> x * y double :: Int -> Int double = times 2 doubleinc :: Int -> Int doubleinc = mycompose double inc incdouble :: Int -> Int incdouble = mycompose inc double myToLower :: Char ...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/hatchet/examples/MultipleSpecs.hs
haskell
MultipleSpecs.hs
Output : ( 10,9,'a',"hhhhhhh " ) inc :: Int -> Int inc = \x -> x + 1 times :: Int -> Int -> Int times = \x -> \y -> x * y double :: Int -> Int double = times 2 doubleinc :: Int -> Int doubleinc = mycompose double inc incdouble :: Int -> Int incdouble = mycompose inc double myToLower :: Char -> Char myToLower = ...
77af184a925c759c2dc8e8cba1454968b2d1fa53372e9175f5ec4f29227357ed
calyau/maxima
PrMathML.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Purpose : Generate Presentation MathML code from MAXIMA ;;; File: PrMathML.lsp Author : Date : March 1999 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ;=========================================...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/share/contrib/maximaMathML/PrMathML.lisp
lisp
File: PrMathML.lsp ============================================================================= all rights reserved. ============================================================================= **************************************************************************** Program : prmathml **...
Purpose : Generate Presentation MathML code from MAXIMA Author : Date : March 1999 ( c ) copyright 1999 Kent State University (in-package :maxima) (macsyma-module mathml) special variables used in TeXetting (declaim (special *row* *indent* ccol mPrport $mPrautolabel $mPrworksheet $lamPrworkshee...
3ddea637243073b7bab772f766018da7fed6038e6e0c466b08857fbe8ad7fe49
sleexyz/hylogen-fun
Hello.hs
module Hello where import Util output = toProgram rgba rgba = vec4 (rgb, 1) -- & mix (-0.1) bb bb = texture2D backBuffer (f uvN) f x = x & (subtract mouse) & (*1.5) & view norm red = vec3 (1, 0, 0) rgb :: Vec3 rgb = h + w h = sin (copy (len uvN) * 20 + copy time) * red w = sin (copy (len uvN) * 30 + cop...
null
https://raw.githubusercontent.com/sleexyz/hylogen-fun/1f42a4a0d3db418f1786292186b8ff861d3f4011/Hello.hs
haskell
& mix (-0.1) bb
module Hello where import Util output = toProgram rgba rgba = vec4 (rgb, 1) bb = texture2D backBuffer (f uvN) f x = x & (subtract mouse) & (*1.5) & view norm red = vec3 (1, 0, 0) rgb :: Vec3 rgb = h + w h = sin (copy (len uvN) * 20 + copy time) * red w = sin (copy (len uvN) * 30 + copy (time * 2))
fa64a0508cefb2806553142aa653366e042e3895407d072b152fe077c320a729
jindrichmynarz/sparql-to-graphviz
spec_test.clj
(ns sparql-to-graphviz.spec-test (:require [sparql-to-graphviz.spec :as spec] [clojure.test :refer :all])) (deftest urn? (are [urn] (is (spec/urn? urn)) "urn:x-arq:UnionGraph" "URN:foo:a123,456" "urn:foo:a123%2C456")) (deftest valid-iri? (testing "Valid IRIs" (are [iri] (is ...
null
https://raw.githubusercontent.com/jindrichmynarz/sparql-to-graphviz/29baed9ea7befe3c0b1693e3391afbff75820e86/test/sparql_to_graphviz/spec_test.clj
clojure
(ns sparql-to-graphviz.spec-test (:require [sparql-to-graphviz.spec :as spec] [clojure.test :refer :all])) (deftest urn? (are [urn] (is (spec/urn? urn)) "urn:x-arq:UnionGraph" "URN:foo:a123,456" "urn:foo:a123%2C456")) (deftest valid-iri? (testing "Valid IRIs" (are [iri] (is ...
4e28e335cebd6224c10d3a25f875b69c3ebd7aee02464d5471bbb8cd28c82364
wireapp/wire-server
Public.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/2ad43a22a6ab45f7c9b6290e26a83d572307044f/services/gundeck/src/Gundeck/API/Public.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under 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 PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Gundeck.API.Public ( se...
450d204387e63d2335fc6c55c35e6922cac1177fbc70aad8180503480dcdbd6f
haskell-suite/base
Functor.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Data.Functor Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : ...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Data/Functor.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Functor License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable 'map' function on lists. | An infix synonym for 'fmap'.
# LANGUAGE Trustworthy # # LANGUAGE CPP # Copyright : ( c ) The University of Glasgow 2001 Functors : uniform action over a parameterized type , generalizing the module Data.Functor ( Functor(fmap), (<$), (<$>), ) where #ifdef __GLASGOW_HASKELL__ import GHC.Base (Functor(..)) #else...
9154f13623109dafc98aaa3e20092d9fdde61562aa949e5149d7a603c73986a7
semerdzhiev/fp-2020-21
more-lists.rkt
#lang racket Предния път работихме със списъци , функция с много - accumulate . Тя работи върху , но сега ще погледнем 2 функции със , но . 10 10 е разликата тогава ? foldr сгъва списъка С конкретния пример : ; (+ 1 (+ 2 (+ 3 (+ 4 0)))) foldr генерира линеен рекурсивен процес и т...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-d/05/more-lists.rkt
racket
(+ 1 (+ 2 (+ 3 (+ 4 0)))) foldl сгъва списъка наляво (+ 4 (+ 3 (+ 2 (+ 1 0)))) Това в racket се различава, заради реда на аргументите на операцията take и drop са доста полезни функции, но от racket/list. Връща подсписък без първите n елемента (онези v-та) (lambda (<args> . <args-list>) <body>) define за...
#lang racket Предния път работихме със списъци , функция с много - accumulate . Тя работи върху , но сега ще погледнем 2 функции със , но . 10 10 е разликата тогава ? foldr сгъва списъка С конкретния пример : foldr генерира линеен рекурсивен процес и тези операции са отложени т...
7aff3a1160ac56a94595071c880020a5f82cddf60e31b55a706ba6b40ead1c57
sneeuwballen/benchpress
Exec_action.mli
type cb_progress = < on_progress: percent:int -> elapsed_time:float -> eta:float -> unit; on_done: unit; > module Exec_run_provers : sig type t = Action.run_provers type expanded = { j: int; problems: Problem.t list; provers: Prover.t list; checkers: Proof_checker.t Misc.Str_map.t; limits...
null
https://raw.githubusercontent.com/sneeuwballen/benchpress/2d84e9d2d46637c6e85989ad3710a8edb7e76787/src/core/Exec_action.mli
ocaml
* Run the given prover(s) on the given problem set, obtaining results after all the problems have been dealt with. @param on_solve called whenever a single problem is solved @param on_done called when the whole process is done
type cb_progress = < on_progress: percent:int -> elapsed_time:float -> eta:float -> unit; on_done: unit; > module Exec_run_provers : sig type t = Action.run_provers type expanded = { j: int; problems: Problem.t list; provers: Prover.t list; checkers: Proof_checker.t Misc.Str_map.t; limits...
9f1f23856acd1d6790681c4f6eee2fc935b9b242ca6684d5d7a0ec044a2c4250
qkrgud55/ocamlmulti
ocamldep.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/tools/ocamldep.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : ocamldep.ml 12759 2012 - 07 -...
80e84efc4afbe4e8e74e5955175455f260e2ffbbfa8737d5a477bc1ce002298c
angavrilov/cl-walker
progn.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; Copyright ( c ) 2008 by the authors . ;;; ;;; See COPYING for details. (in-package :cl-walker) (defclass implicit-progn-mixin () ((body :accessor body-of :initarg :body))) (defprint-object implicit-progn-mixin (format t "~A" (body-of -self-))) (defclass implici...
null
https://raw.githubusercontent.com/angavrilov/cl-walker/a400b91280a401d2d6780fb7e3242892058c6e4a/src/progn.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; -*- See COPYING for details. Used only so that binding-of always contains a list of binding-entry-mixin objects. Return a list so declarations can be easily spliced.
Copyright ( c ) 2008 by the authors . (in-package :cl-walker) (defclass implicit-progn-mixin () ((body :accessor body-of :initarg :body))) (defprint-object implicit-progn-mixin (format t "~A" (body-of -self-))) (defclass implicit-progn-with-declare-mixin (implicit-progn-mixin) ((declares :initform nil :acce...
57c35c5099d3219a790f43344b83750f5274a849645a0321f7a6c4eaf01215a9
ryanpbrewster/haskell
DNA.hs
-- DNA.hs - Problem - - A string is simply an ordered collection of symbols selected from some - alphabet and formed into a word ; the length of a string is the number of - symbols that it contains . - - An example of a length 21 DNA string ( whose alphabet contains the symbols - ' A ' , ' C ' ,...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/Rosalind/DNA.hs
haskell
DNA.hs
- Problem - - A string is simply an ordered collection of symbols selected from some - alphabet and formed into a word ; the length of a string is the number of - symbols that it contains . - - An example of a length 21 DNA string ( whose alphabet contains the symbols - ' A ' , ' C ' , ' G ' , a...
0ee31375ea4bae58797afba250fdbca0e41f54cf3928b772076f8d147f767793
reborg/clojure-essential-reference
5.clj
(+)bigdec (-)bigdec (*)bigdec (/)bigdec
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OperationsonNumbers/%2B%2C-%2C*and/5.clj
clojure
(+)bigdec (-)bigdec (*)bigdec (/)bigdec
026a261e457f2a9d7f7d2e3930bea7a80cb2c7c6f9066915393975504ecfeb6f
qiao/sicp-solutions
3.77.scm
(define (integral delayed-integrand initial-value dt) (let ((integrand (force delayed-integrand))) (cons-stream initial-value (if (stream-null? integrand) the-empty-stream (integral (delay (stream-cdr integrand)) (+ (* dt (s...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter3/3.77.scm
scheme
(define (integral delayed-integrand initial-value dt) (let ((integrand (force delayed-integrand))) (cons-stream initial-value (if (stream-null? integrand) the-empty-stream (integral (delay (stream-cdr integrand)) (+ (* dt (s...
8eaf82333515e7ebd21aad3be55ff52a0811685f8aed8d7f66841d2ab66fd8c9
DougHamil/threeagent
type_two_component_reaction_test.cljs
(ns threeagent.virtual-scene.type-two-component-reaction-test (:require [cljs.test :refer-macros [deftest is testing]] [threeagent.impl.virtual-scene :as vscene] [threeagent.core :as th])) (def outer-render-count (atom 0)) (def inner-render-count (atom 0)) (defn type-2-component [state] (s...
null
https://raw.githubusercontent.com/DougHamil/threeagent/da5c65d593dd270b174128e8aff597d2768c5b57/src/test/threeagent/virtual_scene/type_two_component_reaction_test.cljs
clojure
(ns threeagent.virtual-scene.type-two-component-reaction-test (:require [cljs.test :refer-macros [deftest is testing]] [threeagent.impl.virtual-scene :as vscene] [threeagent.core :as th])) (def outer-render-count (atom 0)) (def inner-render-count (atom 0)) (defn type-2-component [state] (s...
05e789f6ac9a90df61e6c2f1c95ec11c74995326f15566839aadb3b2587290f7
GaloisInc/what4
BVDomain.hs
| Module : What4.Utils . BVDomain Description : Abstract domains for bitvectors Copyright : ( c ) Galois Inc , 2019 - 2020 License : : Provides an implementation of abstract domains for bitvectors . This abstract domain has essentially two modes : arithmetic and bitvector modes . The ...
null
https://raw.githubusercontent.com/GaloisInc/what4/91200aa39565c156226cec6a9409a692e4022501/what4/src/What4/Utils/BVDomain.hs
haskell
# LANGUAGE GADTs # * Bitvector abstract domains ** Domain transfer functions ** Projection functions * Operations ** Shifts and rotates ** Arithmetic ** Bitwise ** Misc * Useful bitvector computations * Correctness properties ------------------------------------------------------------------------------ BVDo...
| Module : What4.Utils . BVDomain Description : Abstract domains for bitvectors Copyright : ( c ) Galois Inc , 2019 - 2020 License : : Provides an implementation of abstract domains for bitvectors . This abstract domain has essentially two modes : arithmetic and bitvector modes . The ...
9a3b3f5031c3c7aefac4575fc041ffef88e4738b29073896c9df6714e7268170
kblake/erlang-chat-demo
PROJECT_app.erl
-module (PROJECT_app). -export ([start/2, stop/1, route/1, request/1]). -behavior(application). start(_, _) -> nitrogen:start(PROJECT). stop(_) -> nitrogen:stop(). %% route/1 lets you define new URL routes to your web pages, %% or completely create a new routing scheme. %% The 'Path' argument specifies the request p...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/priv/skel/PROJECT_app.erl
erlang
route/1 lets you define new URL routes to your web pages, or completely create a new routing scheme. The 'Path' argument specifies the request path. Your function should return either an atom which is the page module to run, or a tuple containing {Module, PathInfo}. PathInfo Uncomment the line below to direct r...
-module (PROJECT_app). -export ([start/2, stop/1, route/1, request/1]). -behavior(application). start(_, _) -> nitrogen:start(PROJECT). stop(_) -> nitrogen:stop(). can be accessed using wf : ( ) . from " /web / newroute " to the web_index module : from " /web / newroute " to the web_index module , with trail...
5ec8df48e14c1b5725df8a720c569964a702d60e4b74f3c9a23b874128850d56
jellelicht/guix
tor.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/tor.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages tor) #:us...
b8ca4acdcc15e52233a7fe672f9cd107cd688a09310a3acb15b285be4a736c61
spurious/sagittarius-scheme-mirror
fixnums.scm
;; -*- scheme -*- (library (rnrs arithmetic fixnums (6)) (export fixnum? fixnum-width least-fixnum greatest-fixnum fx=? fx<? fx>? fx<=? fx>=? fxzero? fxpositive? fxnegative? fxodd? fxeven? fxmax fxmin fx+ fx* fx- fxdiv ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/lib/rnrs/arithmetic/fixnums.scm
scheme
-*- scheme -*- [end] end of file Local Variables: End:
(library (rnrs arithmetic fixnums (6)) (export fixnum? fixnum-width least-fixnum greatest-fixnum fx=? fx<? fx>? fx<=? fx>=? fxzero? fxpositive? fxnegative? fxodd? fxeven? fxmax fxmin fx+ fx* fx- fxdiv fxmod fxdi...
e68a4816764a9405a5be70c4bcb00b81b365bcc0f4cf5eea570d672598636c71
ony/exherbo-cabal
Main.hs
Copyright © 2015 < > Distributed under the terms of the GNU General Public License v2 # LANGUAGE CPP # # LANGUAGE ViewPatterns , LambdaCase , UnicodeSyntax # # LANGUAGE TypeFamilies # {-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad import Control.Concurrent (threadDelay) import Contr...
null
https://raw.githubusercontent.com/ony/exherbo-cabal/d68af20efe65bba20707b7954df4b297b87fcaaa/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # TODO: proper handling of multiple licenses output to stdout
Copyright © 2015 < > Distributed under the terms of the GNU General Public License v2 # LANGUAGE CPP # # LANGUAGE ViewPatterns , LambdaCase , UnicodeSyntax # # LANGUAGE TypeFamilies # module Main where import Control.Monad import Control.Concurrent (threadDelay) import Control.Exception import Control.DeepSeq...
3530440ba91a378c20375aaa03ee4ab82c4db5cd6b5636f238044a372ba60224
neongreen/haskell-ex
Main.hs
module Main where bin :: Int -> String bin n = bits where bits = loop n [] loop x acc = if next == 0 then d:acc else loop next (d:acc) where (next, r) = divMod x 2 d = convert r convert 1 = '1' convert _ = '0' dec :: String -> Int dec s = foldr f 0 (zip ds [0..]) where ds = map conve...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week3/binary/vitcra/Main.hs
haskell
module Main where bin :: Int -> String bin n = bits where bits = loop n [] loop x acc = if next == 0 then d:acc else loop next (d:acc) where (next, r) = divMod x 2 d = convert r convert 1 = '1' convert _ = '0' dec :: String -> Int dec s = foldr f 0 (zip ds [0..]) where ds = map conve...
94ac491c9bed1f994b771078c701b99eeefb0f1c0ebb17c4646012484a87cca6
kriyative/cynojure
util.clj
;; util.clj -- clojure utility functions ;; Ram Krishnan, / Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this ;; distribution. By using ...
null
https://raw.githubusercontent.com/kriyative/cynojure/7254beebdd43b61823dfce876b1ff76a87e250e6/src/cynojure/util.clj
clojure
util.clj -- clojure utility functions Ram Krishnan, / Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from...
Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns cynojure.util (:use clojure.contrib.java-utils) (:use [clojure.contrib.duck-streams :only [reader]]) (:use [clojure.contrib.seq-utils :only [includes?]]) (:import (java.secur...
8bb068f71df74bafd07909882ef7310d759e1008a874f418cc2dff6c0343ffe9
haskell-hvr/missingh
SocketServer.hs
# LANGUAGE Trustworthy # # OPTIONS_GHC -fno - warn - name - shadowing # arch - tag : Generic Server Support Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and co...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/e1a73bd9547db967b4e8d76a443000d06ce95ac4/src/Network/SocketServer.hs
haskell
* Generic Options and Types * TCP server convenient setup * Lower-Level Processing * Combinators | Options for your server. | Get Default options. You can always modify it later. ^ Port Number | Close the socket server. Does not terminate active handlers, if any. ^ Server options ^ Handler function -----...
# LANGUAGE Trustworthy # # OPTIONS_GHC -fno - warn - name - shadowing # arch - tag : Generic Server Support Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and co...
c26b7f03ec61b4e994ed5b19dc2e3e514fc4d285a71912b5553d630c646e8946
haskell-gi/haskell-gi
CustomStore.hs
# LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # -- -*-haskell-*- GIMP Toolkit ( GTK ) CustomStore TreeModel -- Author : , -- Created : 19 Sep 2005 -- Copyright ( C ) 2005 - 2016 , , -- -- This library is free software; you c...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/gi-gtk-hs/src/Data/GI/Gtk/ModelView/CustomStore.hs
haskell
-*-haskell-*- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library 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 PARTICULA...
# LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # GIMP Toolkit ( GTK ) CustomStore TreeModel Author : , Created : 19 Sep 2005 Copyright ( C ) 2005 - 2016 , , License as published by the Free Software Foundation ; either v...
0830c5febc00ecd5528052ac9d74827ba17aa371e6891c680f05d67fa735b4d0
stan-dev/stanc3
FatalError.ml
(** Internal compiler errors *) open Core_kernel (** Equivalent to [raise_s] but prepends a stanc specific message asking users to report a bug *) let fatal_error_msg message = let augmented = Sexplib0.Sexp.List [ [%message "Fatal error: this should never happen. Please file a bug on \ ...
null
https://raw.githubusercontent.com/stan-dev/stanc3/3043ac3807c652255a42b4cc855ab5375204d9fd/src/common/FatalError.ml
ocaml
* Internal compiler errors * Equivalent to [raise_s] but prepends a stanc specific message asking users to report a bug
open Core_kernel let fatal_error_msg message = let augmented = Sexplib0.Sexp.List [ [%message "Fatal error: this should never happen. Please file a bug on \ -dev/stanc3/issues/new and include the model \ that caused this issue."]; message ] in raise_s augmented
2d90e74761724a3c3dd08b97bbb59461e1e502a03579cadba704d70d377d9153
yangchenyun/learning-sicp
ch1.scm
CODE FROM CHAPTER 1 OF STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS ;;; Examples from the book are commented out with ;: so that they ;;; are easy to find and so that they will be omitted if you evaluate a ;;; chunk of the file (programs with intervening examples) in Scheme. ;;; BEWARE: Although the whole file...
null
https://raw.githubusercontent.com/yangchenyun/learning-sicp/99a19a06eddc282e0eb364536e297f27c32a9145/resources/book-src-code/ch1.scm
scheme
Examples from the book are commented out with ;: so that they are easy to find and so that they will be omitted if you evaluate a chunk of the file (programs with intervening examples) in Scheme. BEWARE: Although the whole file can be loaded into Scheme, don't expect the programs to work if you do so. For exam...
CODE FROM CHAPTER 1 OF STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS the redefinition of + in exercise 1.9 wreaks havoc with the : 486 : ( + 137 349 ) : ( * 5 99 ) : ( + 2.7 10 ) : ( * 25 4 12 ) : ( + ( * 3 5 ) ( - 10 6 ) ) : ( + ( * 3 ( + ( * 2 4 ) ( + 3 5 ) ) ) ( + ( - 10 7 ) 6 ) ) : ( + ( * 3 : ...
64939471f771e29e36cac5b2795c65788eddc5fe661c3579dd1117b5e3b845ee
launchdarkly/erlang-server-sdk
ldclient_storage_engine.erl
%%------------------------------------------------------------------- %% @doc `ldclient_storage_engine' module @private %% This is a behavior that all storage engines must implement. It works with %% the concept of buckets and keys. %% @end %%------------------------------------------------------------------- -modul...
null
https://raw.githubusercontent.com/launchdarkly/erlang-server-sdk/fabbcae4953020a0c93bce99e80c1729ebd447d5/src/ldclient_storage_engine.erl
erlang
------------------------------------------------------------------- @doc `ldclient_storage_engine' module This is a behavior that all storage engines must implement. It works with the concept of buckets and keys. @end ------------------------------------------------------------------- Types Operation for processi...
@private -module(ldclient_storage_engine). -type event_operation() :: put | patch | delete. -export_type([event_operation/0]). -callback init(SupRef :: atom(), Tag :: atom(), Options :: list()) -> ok. -callback create(Tag :: atom(), Bucket :: atom()) -> ok | {error, already_exists, string()}. If t...
b353bac8060193e6f0e52e6b2ea3c1d18ba4048c833d9570880b732d101a7c2d
iitalics/iotapass
generalized-map.rkt
#lang racket/base (require racket/list) (provide (rename-out [gmap generalized-map])) ( n : ) [ X ... - > Y ... ] [ listof X ] ... - > [ Y ] ... ;; {where the number of Y's must be equal to 'n'} (define-syntax gmap (syntax-rules () [(_ n f) (apply values (make-list 'n '()))] [(_ 1 f l ...) (map f l...
null
https://raw.githubusercontent.com/iitalics/iotapass/6b97b45377d49e687469cff4a0956f66a00af6d4/iopass/private/util/generalized-map.rkt
racket
{where the number of Y's must be equal to 'n'}
#lang racket/base (require racket/list) (provide (rename-out [gmap generalized-map])) ( n : ) [ X ... - > Y ... ] [ listof X ] ... - > [ Y ] ... (define-syntax gmap (syntax-rules () [(_ n f) (apply values (make-list 'n '()))] [(_ 1 f l ...) (map f l ...)] [(_ 2 f l ...) (map/2 f l ...)] [(_...
c2fd650c673f9dc2b0c7cab93471e61f6c31069d6d9ad8833f1a9513869f332f
csabahruska/jhc-components
Types.hs
-- | some useful types to use in Info's that don't really fit anywhere else module Info.Types(module Info.Types, module Info.Properties) where import Data.Dynamic import Data.Monoid import Info.Properties import Util.BitSet import Util.HasSize import Util.SetLike import qualified Info.Info as Info -- | how many argu...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-common/src/Info/Types.hs
haskell
| some useful types to use in Info's that don't really fit anywhere else | how many arguments a function my be applied to before it performs work and whether it bottoms out after that many arguments | how the variable is bound | list of properties of a function, such as specified by use pragmas or options
module Info.Types(module Info.Types, module Info.Properties) where import Data.Dynamic import Data.Monoid import Info.Properties import Util.BitSet import Util.HasSize import Util.SetLike import qualified Info.Info as Info data Arity = Arity Int Bool deriving(Typeable,Show,Ord,Eq) data BindType = CaseDefault | ...
da6ce38d01f5b1199ac9ba94657bbd4524168a1b82c4b622e7b492a349b407a0
drewolson/aoc-hs
Day13.hs
module Aoc.Year2021.Day13 ( part1, part2, ) where import Aoc.Parser (Parser, intP, runParser) import Data.Bifunctor (first, second) import Data.Foldable (Foldable (foldl')) import Data.List (intercalate) import Data.Set (Set) import Data.Set qualified as Set import Text.Megaparsec (choice, sepEndBy1) import Te...
null
https://raw.githubusercontent.com/drewolson/aoc-hs/b0f06843e1f7d8c2af1da582e59a72d8f2bb73bf/aoc-year2021/src/Aoc/Year2021/Day13.hs
haskell
module Aoc.Year2021.Day13 ( part1, part2, ) where import Aoc.Parser (Parser, intP, runParser) import Data.Bifunctor (first, second) import Data.Foldable (Foldable (foldl')) import Data.List (intercalate) import Data.Set (Set) import Data.Set qualified as Set import Text.Megaparsec (choice, sepEndBy1) import Te...
432c56c7d136b5d576c61b3434500f0eb50be36f710391903cd3ba8785d6d9c0
AccelerateHS/accelerate
Graphviz.hs
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeOperators #-} -- | -- Module : Data.Array.Accelerate.Pretty.Graphviz Copyright : [ 2010 .. 2011 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/63e53be22aef32cd0b3b6f108e637716a92b72dc/icebox/Graphviz.hs
haskell
# LANGUAGE TypeOperators # | Module : Data.Array.Accelerate.Pretty.Graphviz License : BSD3 Stability : experimental standard libraries friends If it does outputs a Postscript file, otherwise a ".dot" file. fall back to writing the dot file
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # Copyright : [ 2010 .. 2011 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) Functions for printing out Graphviz graphs in DOT format . module Data.Array.Accelerate.Pretty.Graphviz ( * Graphviz p...
6a7a21995fce20bbd358f382eaa79883fc5e6d91a653c860714ffa5d93adae75
serokell/servant-util
LikeSpec.hs
module Test.Servant.Filtering.LikeSpec where import Test.Hspec (Spec, describe, it) import Universum import Servant.Util.Combinators.Filtering.Filters.Like spec :: Spec spec = do describe "LikePattern verification on construction" $ do it "Normal" $ isRight $ mkLikePattern "abac.*." i...
null
https://raw.githubusercontent.com/serokell/servant-util/3dff2de34cce90c4d1dab68e03d30f8939fd52ca/servant-util/tests/Test/Servant/Filtering/LikeSpec.hs
haskell
module Test.Servant.Filtering.LikeSpec where import Test.Hspec (Spec, describe, it) import Universum import Servant.Util.Combinators.Filtering.Filters.Like spec :: Spec spec = do describe "LikePattern verification on construction" $ do it "Normal" $ isRight $ mkLikePattern "abac.*." i...
3c35916c59ee3a2dff332d1991b97d65e840ac0701b6fb1ad81760df2c557a71
chanshunli/aliyun-oss-clj
core.clj
(ns aliyun-oss-clj.core (:require [cheshire.core]) (:import (com.aliyuncs DefaultAcsClient) (com.aliyuncs.profile DefaultProfile) (com.aliyuncs.sts.model.v20150401 AssumeRoleRequest AssumeRoleResponse) (com.aliyuncs.http MethodType ProtocolType))) (set! *warn-on-reflection* true) ...
null
https://raw.githubusercontent.com/chanshunli/aliyun-oss-clj/695f478e325293a9111620a95f05d1a0558cbdf3/src/aliyun_oss_clj/core.clj
clojure
(ns aliyun-oss-clj.core (:require [cheshire.core]) (:import (com.aliyuncs DefaultAcsClient) (com.aliyuncs.profile DefaultProfile) (com.aliyuncs.sts.model.v20150401 AssumeRoleRequest AssumeRoleResponse) (com.aliyuncs.http MethodType ProtocolType))) (set! *warn-on-reflection* true) ...
34e1451bab1c69abd49d74c1df5a636bb095d12c79c67c386f9eb9a836bea8e6
prestancedesign/pingcrm-clojure
reports.clj
(ns pingcrm.handlers.reports (:require [inertia.middleware :as inertia])) (defn index [_] (inertia/render "Reports/Index"))
null
https://raw.githubusercontent.com/prestancedesign/pingcrm-clojure/1a0aa343d7ab1cfa3a042cbd948022b22c491c7d/src/clj/pingcrm/handlers/reports.clj
clojure
(ns pingcrm.handlers.reports (:require [inertia.middleware :as inertia])) (defn index [_] (inertia/render "Reports/Index"))
34a3704c948b38a4f7caea233c7db837a16f7c9b5580e990570f6c056d6cb982
samply/blaze
date_spec.clj
(ns blaze.db.impl.search-param.date-spec (:require [blaze.db.impl.index.resource-search-param-value-spec] [blaze.db.impl.index.search-param-value-resource-spec] [blaze.fhir.spec.type.system-spec]))
null
https://raw.githubusercontent.com/samply/blaze/e84c106b5ca235600c20ba74fe8a2295eb18f350/modules/db/test/blaze/db/impl/search_param/date_spec.clj
clojure
(ns blaze.db.impl.search-param.date-spec (:require [blaze.db.impl.index.resource-search-param-value-spec] [blaze.db.impl.index.search-param-value-resource-spec] [blaze.fhir.spec.type.system-spec]))
5ef7b78ce46ff2248fec08098bd11c2ef0691ad91be66d11d1ec38b1bd6a5807
hengchu/tiger-haskell
tigerabsyn.hs
module TigerAbsyn ( Var(..) , Exp(..) , Dec(..) , Ty(..) , Typedec(..) , Oper(..) , Efield , Tfield(..) , Vardec(..) , Fundec(..) , Formals(..) , Program(..) ) where import TigerLexer import qualified TigerSymbol as S data Program = Pexp Exp | Pdecs [Dec] deri...
null
https://raw.githubusercontent.com/hengchu/tiger-haskell/ec6809500c245ea99d2329e8255a67bdb57cf579/src/tigerabsyn.hs
haskell
module TigerAbsyn ( Var(..) , Exp(..) , Dec(..) , Ty(..) , Typedec(..) , Oper(..) , Efield , Tfield(..) , Vardec(..) , Fundec(..) , Formals(..) , Program(..) ) where import TigerLexer import qualified TigerSymbol as S data Program = Pexp Exp | Pdecs [Dec] deri...
b87a264dc6f981254b48d2ecd5ac7eb6bdf1245433882cd06c79ed45c69d7136
pixlsus/registry.gimp.org_static
script-fu-creatpairedlayerpsds.scm
(script-fu-register "script-fu-createpairedlayerpsds" "combine jpg and tif into psd" "Combines section colormaps and\ background images into\ multilayered psd files for easy\ editing." "Erich Theiss" "Copyright 2009, Erich Theiss" "6th August, 2009" "RGB" SF-DIRNAME "folder" "Desktop" SF-VALUE "sectionstart...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/script-fu-creatpairedlayerpsds.scm
scheme
puts the functions into a loop creating a string from the folder and the section numbers without the file format appending the file formats getting the drawable ids of the files to be used loads the base image loads the layer to be applied applies the layer to the base image saves the layered file as a psd
(script-fu-register "script-fu-createpairedlayerpsds" "combine jpg and tif into psd" "Combines section colormaps and\ background images into\ multilayered psd files for easy\ editing." "Erich Theiss" "Copyright 2009, Erich Theiss" "6th August, 2009" "RGB" SF-DIRNAME "folder" "Desktop" SF-VALUE "sectionstart...
f7c9e15b4101bf5f9b592aa1dba5053308802e82247e0a9b81f2219c25e720b8
klutometis/clrs
10.3-2.scm
(require-extension syntax-case check) (require '../10.3/section) (import section-10.3) From figure 10.7 ; block 4 still has a key since it 's been cleared ;;; but not zeroed (see sarray-delete!). ;;; Indices are zero - origin here , contrary to the example . (let ((list (make-sarray (vector #f #f #f ...
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/10.3/10.3-2.scm
scheme
block 4 still has a key since it 's been cleared but not zeroed (see sarray-delete!).
(require-extension syntax-case check) (require '../10.3/section) (import section-10.3) Indices are zero - origin here , contrary to the example . (let ((list (make-sarray (vector #f #f #f 4 2 4 1 #f 1 #f 7 #f ...
294ff5a45ecb8f103b7557d39480bf369305e060e0acf95d3b49260e80861962
joelburget/react-haskell
Imports.hs
# LANGUAGE CPP # #ifdef __GHCJS__ # LANGUAGE JavaScriptFFI # #else {-# LANGUAGE RankNTypes, TypeSynonymInstances, FlexibleInstances #-} # OPTIONS_GHC -fno - warn - missing - methods # #endif module React.Imports ( RawEvent , ImportedClass -- * Foreign imports , js_render , js_createClass , js...
null
https://raw.githubusercontent.com/joelburget/react-haskell/5de76473b7cfdd6b85ac618bea31e658794b54e2/src/React/Imports.hs
haskell
# LANGUAGE RankNTypes, TypeSynonymInstances, FlexibleInstances # * Foreign imports mock the foreign imports
# LANGUAGE CPP # #ifdef __GHCJS__ # LANGUAGE JavaScriptFFI # #else # OPTIONS_GHC -fno - warn - missing - methods # #endif module React.Imports ( RawEvent , ImportedClass , js_render , js_createClass , js_react_createElement_DOM , js_react_createElement_Class , js_set_handler , js_forc...
3ec8e725100731f0d24f990dac287fa1a7f6e288388f142ba9126eacf8810e0f
pariyatti/kosa
views.clj
(ns kosa.auth.views (:require [kosa.layouts.auth :as p] [kosa.views :as v])) (defn login [req] (p/app req "Login" [:div {:class "page-heading"} [:div {:class "header-and-link"} [:h1 {:class "page-header"} "Login"] [:span {:class "page-subtitle"} "You are logg...
null
https://raw.githubusercontent.com/pariyatti/kosa/68099ccb830b99a9d0ead81ccfd878ba72020e78/src/kosa/auth/views.clj
clojure
(ns kosa.auth.views (:require [kosa.layouts.auth :as p] [kosa.views :as v])) (defn login [req] (p/app req "Login" [:div {:class "page-heading"} [:div {:class "header-and-link"} [:h1 {:class "page-header"} "Login"] [:span {:class "page-subtitle"} "You are logg...
f5da79b09a3dcf6df5f0f0b4b69983223628adcfaa4f7e9f30b5a5a9733cfc78
facundoolano/advenjure-example
hallway.cljc
(ns example.hallway (:require [advenjure.utils :as utils] [advenjure.items :as item] [advenjure.rooms :as room] #?(:cljs [advenjure.dialogs :refer [event? not-event? set-event item?]] :clj [advenjure.dialogs :refer [event? not-event? set-event item? dialog conditiona...
null
https://raw.githubusercontent.com/facundoolano/advenjure-example/5810fbfaa09ed06802a64539d4856254c072ac8f/src/example/hallway.cljc
clojure
first define all the dialog pieces for the character present the player the given dialog options. The cycle will be repeated while there are available options or until one with the :go-back modifier is executed. Options will be consumed after being executed, unless the :sticky modifier is used. both magazines wil...
(ns example.hallway (:require [advenjure.utils :as utils] [advenjure.items :as item] [advenjure.rooms :as room] #?(:cljs [advenjure.dialogs :refer [event? not-event? set-event item?]] :clj [advenjure.dialogs :refer [event? not-event? set-event item? dialog conditiona...
fcfbec74ebbcce4bf64acdde1e6467d88a9b6f2671a9b79c0db69d70aeea6939
cmullaparthi/ibrowse
ibrowse_tests.erl
%%% File : ibrowse_tests.erl Authors : < > < > < > %%% Description : Functional tests of the ibrowse library using a live test HTTP server Created : 18 November 2014 by < > -module(ibrowse_tests). -include_lib("eunit/include/eunit.hrl"). -define(PER_TEST_TIMEOUT_SEC, 60). -d...
null
https://raw.githubusercontent.com/cmullaparthi/ibrowse/d775155a134ce310ff86ad8b29a806cb0b3ccacc/test/ibrowse_tests.erl
erlang
File : ibrowse_tests.erl Description : Functional tests of the ibrowse library using a live test HTTP server -compile(export_all). Send off enough requests to fill sessions and pipelines in rappid succession Verify that connections properly reported their completed responses and can still accept more and do it ...
Authors : < > < > < > Created : 18 November 2014 by < > -module(ibrowse_tests). -include_lib("eunit/include/eunit.hrl"). -define(PER_TEST_TIMEOUT_SEC, 60). -define(TIMEDTEST(Desc, Fun), {Desc, {timeout, ?PER_TEST_TIMEOUT_SEC, fun Fun/0}}). -define(SERVER_PORT, 8181). -define(B...
be58700ae2d2227b240e812ede12ad2b8725894bafa08a7dd8d375b9a44813a6
thlack/surfs
components.clj
(ns thlack.surfs.views.components (:require [clojure.spec.alpha :as s] [thlack.surfs.props :as props] [thlack.surfs.validation :refer [validated]] [thlack.surfs.views.spec :as views.spec] [thlack.surfs.views.components.spec :as vc.spec])) (defn- with-private-metadata ...
null
https://raw.githubusercontent.com/thlack/surfs/e03d137d6d43c4b73a45a71984cf084d2904c4b0/src/thlack/surfs/views/components.clj
clojure
(ns thlack.surfs.views.components (:require [clojure.spec.alpha :as s] [thlack.surfs.props :as props] [thlack.surfs.validation :refer [validated]] [thlack.surfs.views.spec :as views.spec] [thlack.surfs.views.components.spec :as vc.spec])) (defn- with-private-metadata ...
c943893c2ffa2df62830cb9a4078381d392e3d670312e16d901ca880e321bb2e
larcenists/larceny
cat.scm
CAT -- One of the and benchmarks . Rewritten by into more idiomatic Scheme . (import (scheme base) (scheme file) (scheme read) (scheme write) (scheme time)) (define (catport in out) (let ((x (read-char in))) (if (not (eof-object? x)) (begin (write-char x...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Benchmarking/R7RS/src/cat.scm
scheme
CAT -- One of the and benchmarks . Rewritten by into more idiomatic Scheme . (import (scheme base) (scheme file) (scheme read) (scheme write) (scheme time)) (define (catport in out) (let ((x (read-char in))) (if (not (eof-object? x)) (begin (write-char x...
8196e402247d8d71971cb8975f8f42eb5a94654013800b3a54afb0deed64f88c
dwayne/eopl3
interpreter.test.rkt
#lang racket (require "./interpreter.rkt") (require rackunit) (check-equal? (run "5") (num-val 5)) (check-equal? (run "x") (num-val 10)) (check-equal? (run "zero?(i)") (bool-val #f)) (check-equal? (run "zero?(-(i, 1))") (bool-val #t)) (check-equal? (run "-(55, -(x, 11))") (num-val 56)) (check-equal? ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/04-ch4/interpreters/racket/CALL-BY-REFERENCE-4.36/interpreter.test.rkt
racket
(odd 888) end CALL-BY-REFERENCE tests a end z end Notice how swap works as expected for array references What should happen in the following case?
#lang racket (require "./interpreter.rkt") (require rackunit) (check-equal? (run "5") (num-val 5)) (check-equal? (run "x") (num-val 10)) (check-equal? (run "zero?(i)") (bool-val #f)) (check-equal? (run "zero?(-(i, 1))") (bool-val #t)) (check-equal? (run "-(55, -(x, 11))") (num-val 56)) (check-equal? ...
9c6de8a816e40fbe70a6789ea2594fe021b48d356019ebbcd6e41d0b554c7399
rudymatela/extrapolate
sorting.hs
import Test.SmartCheck import System.Environment (getArgs) sort :: Ord a => [a] -> [a] sort [] = [] sort (x:xs) = sort (filter (< x) xs) ++ [x] ++ sort (filter (> x) xs) prop_sortOrdered :: Ord a => [a] -> Bool prop_sortOrdered xs = ordered (sort xs) where ordered (x:y:xs) = x <= y && ordere...
null
https://raw.githubusercontent.com/rudymatela/extrapolate/0b3ca28eed0d04358b2fb033664476f8b29821a6/bench/smartcheck/sorting.hs
haskell
_ -> smartCheck scStdArgs { format = PrintString , runExists = False } (prop_sortCount :: Int -> [Int] -> Bool)
import Test.SmartCheck import System.Environment (getArgs) sort :: Ord a => [a] -> [a] sort [] = [] sort (x:xs) = sort (filter (< x) xs) ++ [x] ++ sort (filter (> x) xs) prop_sortOrdered :: Ord a => [a] -> Bool prop_sortOrdered xs = ordered (sort xs) where ordered (x:y:xs) = x <= y && ordere...
e6df672cf2edd07180aa4c5ed8f8a32dde09bb0ae17e23dfc79963882b584e98
uxbox/uxbox-backend
garbage.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; Copyright ( c ) 2016 < > (ns uxbox.scheduled-jobs.garbage "Garbage Collector related tasks." (:require [suricatta.core :as sc] ...
null
https://raw.githubusercontent.com/uxbox/uxbox-backend/036c42db8424be3ac34c38be80577ee279141681/src/uxbox/scheduled_jobs/garbage.clj
clojure
--- Delete projects TODO: move inline sql into resources/sql directory
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2016 < > (ns uxbox.scheduled-jobs.garbage "Garbage Collector related tasks." (:require [suricatta.core :as sc] ...
374a6c12adf1837dd9dc95f58418c88490efbe6f2e72dc8c8696544061085573
ykskb/phrag
core.clj
(ns phrag.core "Creation and execution of Phrag's GraphQL schema through Lacinia." (:require [phrag.logging :refer [log]] [phrag.resolver :as rslv] [phrag.context :as ctx] [com.walmartlabs.lacinia :as lcn] [com.walmartlabs.lacinia.tracing :as trc] [com.wal...
null
https://raw.githubusercontent.com/ykskb/phrag/5b9f812f8fc6a58ef9c5766acbab4a3abee2d351/src/phrag/core.clj
clojure
Mutations Relationships GraphQL schema Execution
(ns phrag.core "Creation and execution of Phrag's GraphQL schema through Lacinia." (:require [phrag.logging :refer [log]] [phrag.resolver :as rslv] [phrag.context :as ctx] [com.walmartlabs.lacinia :as lcn] [com.walmartlabs.lacinia.tracing :as trc] [com.wal...
20a92c0502c674a2f8a4caa16cf24077154968a4caa605dbcfa2c334ad601d95
MaskRay/OJHaskell
8.hs
import Data.Char main = do getContents >>= return . filter (/= '\n') >>= print . maximum . map product. groupsOf 5 . map digitToInt groupsOf _ [] = [] groupsOf n xs = take n xs : groupsOf n (tail xs)
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/8.hs
haskell
import Data.Char main = do getContents >>= return . filter (/= '\n') >>= print . maximum . map product. groupsOf 5 . map digitToInt groupsOf _ [] = [] groupsOf n xs = take n xs : groupsOf n (tail xs)
bada39fdf22f5f11ae1fb47381cb9f589d9572380b45c5d2813f4b6ddfe5a611
mokus0/junkbox
PiCF.hs
#!/usr/bin/env runhaskell module Main where import Math.AddCFs main = mapM_ print (toList piCF)
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Odd%20little%20utilities/PiCF.hs
haskell
#!/usr/bin/env runhaskell module Main where import Math.AddCFs main = mapM_ print (toList piCF)
cb16f559672449296b0056942f12109a92cd125d7a68784afd7c82b2c45d7df1
cyclone-scheme/winds
tasks.scm
(import (scheme base) (scheme read) (scheme file) (only (scheme write) display) (scheme cyclone pretty-print) (scheme cyclone libraries) (srfi 28) ; basic format string (srfi 132) ; sort algorithms (libs metadata) (only (libs system-calls) delete!)...
null
https://raw.githubusercontent.com/cyclone-scheme/winds/aa607b31d46f777e7ff7454351ef545687cba81a/sys/tasks.scm
scheme
basic format string sort algorithms
(import (scheme base) (scheme read) (scheme file) (only (scheme write) display) (scheme cyclone pretty-print) (scheme cyclone libraries) (libs metadata) (only (libs system-calls) delete!) (only (libs common) *default-code-directory* *default-doc-file*) ...
4b5e72c62952ed45abb5e10b4248b7fcd1961a77742f92de47fad5833302a0f4
elzibus/The-Functional-Approach-to-Programming
ch2_ex.ml
#mod_use "ch2.ml" ;; open Ch2 exercise 2.1 let pp_translate point x y = {xcoord = point.xcoord +. x; ycoord = point.ycoord +. y} ;; pp_translate {xcoord=0.0; ycoord=0.0} 1.0 2.0 ;; let pi = 4.0 *. atan 1.0;; (* theta in radians, rotation counter-clockwise around the origin *) let pp_rotate point t...
null
https://raw.githubusercontent.com/elzibus/The-Functional-Approach-to-Programming/e92da55ea9b53cfae83f9d649e65850fb670420c/ch2_ex.ml
ocaml
theta in radians, rotation counter-clockwise around the origin #Elementary_operations more in examples from here: /~scotz47781/mat120/notes/ a0 * x^0 + a1 * x^1 + a2 * x^2 + ... [] is equivalent to [0] (+ constant) won't be handled.. a2 * x^2 + ... break it into a list of characters "l" "o" "r" ...
#mod_use "ch2.ml" ;; open Ch2 exercise 2.1 let pp_translate point x y = {xcoord = point.xcoord +. x; ycoord = point.ycoord +. y} ;; pp_translate {xcoord=0.0; ycoord=0.0} 1.0 2.0 ;; let pi = 4.0 *. atan 1.0;; let pp_rotate point theta = let x = point.xcoord in let y = point.ycoord in {xcoord ...
47c4449b35b76e0ddd02833eb279dc1368089ff63eb96fa7e071db02767a38a1
c-cube/trustee
test_kbo.ml
open Helpers open OUnit2 open Trustee_core module Make() = struct include Make() let a = const a [] let b = const b [] let c = const c [] let c_f1 = new_const "f1" (tau @-> tau) let c_g1 = new_const "g1" (tau @-> tau) let c_f2 = new_const "f2" (tau @-> tau @-> tau) let c_g2 = new_const "g2" (tau @->...
null
https://raw.githubusercontent.com/c-cube/trustee/10d74e168dc49dd0ae22c10b60ec13fa7a23d648/tests/core/test_kbo.ml
ocaml
open Helpers open OUnit2 open Trustee_core module Make() = struct include Make() let a = const a [] let b = const b [] let c = const c [] let c_f1 = new_const "f1" (tau @-> tau) let c_g1 = new_const "g1" (tau @-> tau) let c_f2 = new_const "f2" (tau @-> tau @-> tau) let c_g2 = new_const "g2" (tau @->...
454127deb53f74f4c036a0e161a79c838d0324729ad1f1f7c70779091647c16f
ghc/packages-Cabal
cabal.test.hs
import Test.Cabal.Prelude This test is similar to the simplified example in issue # 4288 . The package 's -- setup script only depends on base and setup-helper. setup-helper exposes a function that is a wrapper for 's defaultMain ( similar to -- cabal-doctest). This test builds the package to check that the flags...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewBuild/T4288/cabal.test.hs
haskell
setup script only depends on base and setup-helper. setup-helper exposes a cabal-doctest). This test builds the package to check that the flags passed
import Test.Cabal.Prelude This test is similar to the simplified example in issue # 4288 . The package 's function that is a wrapper for 's defaultMain ( similar to to the setup script are compatible with the version of that it depends on , even though Cabal is only a transitive dependency . main = cabalTest...
bff78da104599945b7f30ae2a728578f5474202605f476942402ca073801d304
zadean/xqerl
op_gDay_equal_SUITE.erl
-module('op_gDay_equal_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['op-gDay-equal2args-1'/1]). -export(['op-gDay-equal2args-2'/1]). -export(['op-gDa...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/op/op_gDay_equal_SUITE.erl
erlang
-module('op_gDay_equal_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['op-gDay-equal2args-1'/1]). -export(['op-gDay-equal2args-2'/1]). -export(['op-gDa...
7e1fac2bcb6e74a1360fea27331aac69d700470147fbe7a59d6a57fec791288c
aigarashi/copl-tools
pp.ml
open Format open Core let g = "MLivC" let pr = fprintf let is_negative i = (i < 0) (* generic functions to generate parens depending on precedence *) let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e (* precedence for expressions *) let rec is_...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalContML3/pp.ml
ocaml
generic functions to generate parens depending on precedence precedence for expressions if e is the left operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus if e is the right operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus, ...
open Format open Core let g = "MLivC" let pr = fprintf let is_negative i = (i < 0) let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e let rec is_last_longexp = function BinOp(_,_,e) -> is_last_longexp e | If(_,_,_) | Let(_,_,_) | Abs(_,_) ...
c5b3d652f5c1ba42d12b8c5d9b3c3c2917e68fc508123698c344986161347191
fragnix/fragnix
Data.Bifunctor.hs
{-# LINE 1 "Data.Bifunctor.hs" #-} {-# LANGUAGE Safe #-} # LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Data.Bifunctor Copyright : ( C ) 2008 - 2014 , -- License : BSD-style (see the file LICE...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/Data.Bifunctor.hs
haskell
# LINE 1 "Data.Bifunctor.hs" # # LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Data.Bifunctor License : BSD-style (see the file LICENSE) Maintainer : Stability : provisional Portability : portable ----------------------------------------...
# LANGUAGE CPP # Copyright : ( C ) 2008 - 2014 , @since 4.8.0.0 module Data.Bifunctor ( Bifunctor(..) ) where import Control.Applicative ( Const(..) ) import GHC.Generics ( K1(..) ) | Formally , the class ' Bifunctor ' represents a bifunctor from @Hask@ -...
4819afa7cd093f0f4252eb7924a7d90f3459edd8f8111ac8fde12b22355a5433
LaurentMazare/ocaml-minipy
test.ml
In this example , the Python type is extracted using the Python interpreter with the ast module ( see examples / test.py ) , this is converted to json and read from this file . interpreter with the ast module (see examples/test.py), this is converted to json and read from this file. *) open! Base ...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-minipy/059d980bb228d1a553e0756af647132a463d4418/examples/test.ml
ocaml
In this example , the Python type is extracted using the Python interpreter with the ast module ( see examples / test.py ) , this is converted to json and read from this file . interpreter with the ast module (see examples/test.py), this is converted to json and read from this file. *) open! Base ...
f02875b5732b7a7c1908b5e58d6dd8fc8a111297e36126d2a349ec4bb8c30860
kaznum/programming_in_ocaml_exercise
cone_of_heightTwo.ml
let cone_of_heightTwo r = let base = r *. r *. 3.14 in base *. 2.0 /. 3.0;;
null
https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ch3/cone_of_heightTwo.ml
ocaml
let cone_of_heightTwo r = let base = r *. r *. 3.14 in base *. 2.0 /. 3.0;;
2b31c63a153cb9979170c6742a2b7f0ab8cf71221b6a3cdc3121903cd1382ce0
jay-kumogata/MonadChip8
Chip8.hs
-- ----------------------------------------------------------------- -- -- -- -- System.hs : CHIP-8 Emulator -- -- -- 2010/12/17 jay1905 ( ...
null
https://raw.githubusercontent.com/jay-kumogata/MonadChip8/4af38bd6c678ba367d1c5afeff142caea41d62ec/Chip8.hs
haskell
----------------------------------------------------------------- -- -- System.hs : CHIP-8 Emulator -- -- ...
module Chip8 ( initSystem, runSystem, ) where import Data.Bits import Data.Int import Data.Word import Data.Array import Control.Monad import Text.Printf import Data.ByteString.Lazy import CPU import PPU import IOU initSystem :: String -> IO CPU initSystem fname = do Initialize CPU a...
0317277d4352bffb062a9f7552a5cffcb6e8ae1e37c95aa5c1176c1c9c7a2a78
simingwang/emqx-plugin-kafkav5
gpb_gen_translators.erl
Copyright ( C ) 2017 %%% Author : < > %%% %%% This library 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 ; either version 2.1 of the License , or ( at your option ) any later version . %...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/gpb/src/gpb_gen_translators.erl
erlang
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library 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 GN...
Copyright ( C ) 2017 Author : < > License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA ...
2b634751703d1c7d84dd2e46f7f24ae238cdab68bfe60173a50ecd2c2b56f5a8
elizabethsiegle/reddit-slack-bot
Participants.hs
{-#LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # {-#LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # module Twilio.Conference.Participants ( -- * Resource Participants(..) ) where import Control.Applicative import Data.Aeson import Data.Data import Data....
null
https://raw.githubusercontent.com/elizabethsiegle/reddit-slack-bot/a52ab60dcaae8e16bee8cdba22fce627157a42d8/twilio-haskell-move-to-stack/src/Twilio/Conference/Participants.hs
haskell
#LANGUAGE DeriveDataTypeable # #LANGUAGE OverloadedStrings # * Resource
# LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ViewPatterns # module Twilio.Conference.Participants Participants(..) ) where import Control.Applicative import Data.Aeson import Data.Data import Data.Maybe import Data.Monoid import GHC.Generics import Twilio.Conference.Participant impo...
f1715d989b58bc9b9be40fcadc69028926624647649b40f513af94b0d23bd636
binsec/haunted
ai_utils.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/static/ai/ai_utils.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
7645dbe1812a180a409358a79fb498a6cfea4cb195edafce00bad1405c4d1a64
semilin/layoup
rustin'.lisp
(MAKE-LAYOUT :NAME "rustin'" :MATRIX (APPLY #'KEY-MATRIX '("qbdmjpwou," "rstnlycaei" "zxkhvgf';.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/rustin'.lisp
lisp
(MAKE-LAYOUT :NAME "rustin'" :MATRIX (APPLY #'KEY-MATRIX '("qbdmjpwou," "rstnlycaei" "zxkhvgf';.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
ea6426c15dee80453f4521b7d616513508dd7e2ad35300e9a009bf572d7ecfa5
mikeizbicki/subhask
SubType.hs
# LANGUAGE NoAutoDeriveTypeable # # OPTIONS_GHC -fno - warn - incomplete - patterns # | This module defines the subtyping mechanisms used in subhask . module SubHask.SubType ( (<:) (..) , Sup -- ** , Embed (..) , embedType , embedType1 , embedType2 , apEmbedType1 , apEmbedType2 ...
null
https://raw.githubusercontent.com/mikeizbicki/subhask/f53fd8f465747681c88276c7dabe3646fbdf7d50/src/SubHask/SubType.hs
haskell
** * Template Haskell ----------------------------------------------------------------------------- | Subtypes are partially ordered. Unfortunately, there's no way to use the machinery of the "POrd"/"Lattice" classes. It must obey the laws: And there is no smaller value of "c" that can be used instead. FIXM...
# LANGUAGE NoAutoDeriveTypeable # # OPTIONS_GHC -fno - warn - incomplete - patterns # | This module defines the subtyping mechanisms used in subhask . module SubHask.SubType ( (<:) (..) , Sup , Embed (..) , embedType , embedType1 , embedType2 , apEmbedType1 , apEmbedType2 , mkSu...
af9705ea6f2af081fe45df825e62c70765a02a2d3b121bf5c7c45650310624b5
bracevac/corrl
ReadLine.hs
{-# OPTIONS -cpp #-} ------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " li...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Platform/cpp/Platform/ReadLine.hs
haskell
# OPTIONS -cpp # ---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Module that exports readline functionality -------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Platform.ReadLine( withReadLine, readLine, readLineEx, addHistory ) where #ifdef READLINE import qua...
b5cd0362fae00c6b758850dc7ac3f4dc6ec36853916f34338b91c8ca5c2a0803
gymgle/blockchain-reference
wallet.rkt
#lang racket (require crypto) (require crypto/all) (use-all-factories!) (struct wallet (private-key public-key) #:prefab) (define (make-wallet) (letrec ([rsa-impl (get-pk 'rsa libcrypto-factory)] [privkey (generate-private-key rsa-impl '((nbits 512)))] [pubkey (pk-key->public-only-key pr...
null
https://raw.githubusercontent.com/gymgle/blockchain-reference/bbd73fea390c07081787f70c5faa78ef8000908b/blockchain-demo/racket/wallet.rkt
racket
#lang racket (require crypto) (require crypto/all) (use-all-factories!) (struct wallet (private-key public-key) #:prefab) (define (make-wallet) (letrec ([rsa-impl (get-pk 'rsa libcrypto-factory)] [privkey (generate-private-key rsa-impl '((nbits 512)))] [pubkey (pk-key->public-only-key pr...
235548c506bea7cc0e25791ebcb1a9177bdc14a0563ec08f4efb6cd1c0948331
lgessler/glam
global_snackbar.cljs
(ns glam.client.ui.global-snackbar (:require [com.fulcrologic.fulcro.components :as c :refer [defsc]] [glam.client.ui.material-ui :as mui] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [taoensso.timbre :as log] ["@material-ui/core/Grow" :default Grow])) ...
null
https://raw.githubusercontent.com/lgessler/glam/f2542f2b3e87e3c1b46765dab033bf2b68c14d11/src/main/glam/client/ui/global_snackbar.cljs
clojure
TODO: if another message comes in while a previous message is still displayed the counter doesn't get reset make sure we're closed before doing other things
(ns glam.client.ui.global-snackbar (:require [com.fulcrologic.fulcro.components :as c :refer [defsc]] [glam.client.ui.material-ui :as mui] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [taoensso.timbre :as log] ["@material-ui/core/Grow" :default Grow])) ...