This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| libva info: VA-API version 1.8.0 | |
| libva info: Trying to open /run/opengl-driver/lib/dri/iHD_drv_video.so | |
| libva info: Found init function __vaDriverInit_1_8 | |
| libva error: /run/opengl-driver/lib/dri/iHD_drv_video.so init failed | |
| libva info: va_openDriver() returns 1 | |
| libva info: Trying to open /run/opengl-driver/lib/dri/i965_drv_video.so | |
| libva info: Found init function __vaDriverInit_1_8 | |
| libva info: va_openDriver() returns 0 | |
| vainfo: VA-API version: 1.8 (libva 2.8.0) | |
| vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE ScopedTypeVariables #-} | |
| module Main where | |
| import Control.Applicative (Alternative, empty, (<|>), liftA2) | |
| import Control.Monad | |
| import Data.Char | |
| main :: IO () | |
| main = | |
| print $ runParser ( sepBy ( many expressionParser ) endOfLine ) rawInput |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {- stack | |
| --resolver lts-16.8 | |
| --packages "transformers" | |
| exec ghci | |
| -} | |
| {-# Language | |
| EmptyDataDeriving | |
| , GADTs | |
| , GeneralizedNewtypeDeriving |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE DefaultSignatures #-} | |
| {-# LANGUAGE DeriveAnyClass #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE EmptyDataDeriving #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TypeApplications #-} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env runhaskell | |
| -- Synopsis: | |
| -- $ cabal install QuickCheck | |
| -- $ runhaskell io_quickcheck_example.hs | |
| -- | |
| -- Author: Issac Trotts <issac.trotts@gmail.com> | |
| import Directory | |
| import System.Environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| intersperseVec :: a -> Vector a -> Vector a | |
| intersperseVec sep vec = V.cons ( V.head vec ) | |
| $ foldr (\v accum -> V.cons sep $ V.cons v accum) V.empty ( V.tail vec ) |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "first_name","last_name","company_name","address","city","county","state","zip","phone1","phone2","email","web" | |
| "James","Brent","Benton, John B Jr","6649 N Blue Gum St","New Orleans","Orleans","LA",70116,"504-621-8927","504-845-1427","jbrent@gmail.com","http://www.bentonjohnbjr.com" | |
| "Josephine","Darakjy","Chanay, Jeffrey A Esq","4 B Blue Ridge Blvd","Brighton","Livingston","MI",48116,"810-292-9388","810-374-9840","josephine_darakjy@darakjy.org","http://www.chanayjeffreyaesq.com" | |
| "Art","Venere","Chemel, James L Cpa","8 W Cerritos Ave #54","Bridgeport","Gloucester","NJ","08014","856-636-8749","856-264-4130","art@venere.org","http://www.chemeljameslcpa.com" | |
| "Lenna","Paprocki","Feltz Printing Service","639 Main St","Anchorage","Anchorage","AK",99501,"907-385-4412","907-921-2010","lpaprocki@hotmail.com","http://www.feltzprintingservice.com" | |
| "Donette","Foller","Printing Dimensions","34 Center St","Hamilton","Butler","OH",45011,"513-570-1893","513-549-4561","donette.foller@cox.net","http://www.printingdimensions.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type LoadedData<A> = | |
| <B>(f: (a: A) => B, g: (e: Error) => B, b: B) => B; | |
| function loaded<A>(a: A): LoadedData<A> { | |
| return <B>(f: (a: A) => B, error: (e: Error) => B, empty: B) => f(a); | |
| } | |
| function error<A>(e: Error): LoadedData<A> { | |
| return <B>(success: (a: A) => B, f: (e: Error) => B, empty: B) => f(e); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author https://stackoverflow.com/users/2887218/jcalz | |
| * @see https://stackoverflow.com/a/50375286/10325032 | |
| */ | |
| type UnionToIntersection<Union> = | |
| (Union extends any | |
| ? (argument: Union) => void | |
| : never | |
| ) extends (argument: infer Intersection) => void | |
| ? Intersection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author https://stackoverflow.com/users/2887218/jcalz | |
| * @see https://stackoverflow.com/a/50375286/10325032 | |
| */ | |
| type UnionToIntersection<Union> = | |
| (Union extends any | |
| ? (argument: Union) => void | |
| : never | |
| ) extends (argument: infer Intersection) => void | |
| ? Intersection |