This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Control.Concurrent.STM | |
| import Control.Monad | |
| import Control.Concurrent | |
| workerWaitForCondition :: TVar Bool -> IO () | |
| workerWaitForCondition condition = atomically $ do | |
| c <- readTVar condition | |
| unless c retry | |
| workerMakeConditionTrue :: TVar Bool -> IO () |
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
| package io.github.nomisrev | |
| import app.cash.sqldelight.driver.jdbc.asJdbcDriver | |
| import arrow.continuations.SuspendApp | |
| import arrow.continuations.ktor.server | |
| import arrow.fx.coroutines.autoCloseable | |
| import arrow.fx.coroutines.closeable | |
| import arrow.fx.coroutines.resourceScope | |
| import com.zaxxer.hikari.HikariConfig | |
| import com.zaxxer.hikari.HikariDataSource |
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
| //> using dep "org.http4s::http4s-scalatags::0.25.2" | |
| //> using dep "org.http4s::http4s-dsl::0.23.23" | |
| //> using dep "org.http4s::http4s-ember-server::0.23.23" | |
| //> using dep "org.tpolecat::skunk-core::0.6.0" | |
| //> using dep "com.dimafeng::testcontainers-scala-postgresql::0.41.0" | |
| //> using dep "com.outr::scribe-slf4j::3.12.2" | |
| import skunk.*, codec.all.*, syntax.all.* | |
| import cats.effect.* | |
| import scalatags.Text.all.* |
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
| open Donald | |
| open System.Data.Common | |
| open System.Data.SQLite | |
| open System.Threading.Tasks | |
| open Giraffe | |
| open Giraffe.ViewEngine | |
| open FsToolkit.ErrorHandling | |
| open Microsoft.AspNetCore.Builder | |
| [<RequireQualifiedAccess>] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <h1>Recording Video from the User</h1> | |
| <p>Acquire access to the camera</p> | |
| <video id="player" controls></video> | |
| <a id="download">Download</a> |
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
| FROM node:16.14.0-alpine | |
| RUN mkdir my | |
| RUN echo enableStrictSsl: false > ./my/.yarnrc.yml | |
| COPY fe-react-01/yarn.lock ./my | |
| COPY fe-react-01/src ./my/src | |
| COPY fe-react-01/.yarn ./my/.yarn | |
| COPY fe-react-01/tsconfig.json ./my | |
| COPY fe-react-01/package.json ./my | |
| COPY fe-react-01/public ./my/public |
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
| steps: | |
| - name: gcr.io/cloud-builders/docker | |
| args: | |
| - build | |
| - '--no-cache' | |
| - '-t' | |
| - '$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA' | |
| - . | |
| - '-f' | |
| - Dockerfile |
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
| # Cross Platform Makefile | |
| # Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X | |
| # | |
| # You will need GLFW (http://www.glfw.org): | |
| # Linux: | |
| # apt-get install libglfw-dev | |
| # Mac OS X: | |
| # brew install glfw | |
| # MSYS2: | |
| # pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-glfw |
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
| #version 330 core | |
| // Interpolated values from the vertex shaders | |
| in vec2 UV; | |
| in vec3 Position_worldspace; | |
| in vec3 Normal_cameraspace; | |
| in vec3 EyeDirection_cameraspace; | |
| in vec3 LightDirection_cameraspace; | |
| // Ouput data |
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 python2 | |
| import SimpleHTTPServer | |
| import SocketServer | |
| import logging | |
| PORT = 8000 | |
| class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |