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 app/init.{init} | |
| import app/models.{Coordinates, QueryParams} | |
| import app/update.{update} | |
| import app/view.{view} | |
| import gleam/dict | |
| import gleam/float | |
| import gleam/int | |
| import gleam/option.{None, Some} | |
| import gleam/uri | |
| import lustre |
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
| config: | |
| aws:region: us-east-1 | |
| infra-aws-v4-dashboard:canary: | |
| memory: 128 | |
| port: 80 | |
| infra-aws-v4-dashboard:vpc: | |
| number_of_availability_zones: 1 | |
| pulumi:template: aws-python |
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
| """An AWS Environment for the `dashboard` application.""" | |
| import pulumi | |
| import pulumi_awsx as awsx | |
| import pulumi_aws as aws | |
| from pulumi_awsx.ec2 import DefaultVpc | |
| """ | |
| Define the common resources for an application stack (dev/stage/prod) including: |
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
| require 'rubygems' | |
| require 'serialport' | |
| class Korad | |
| def initialize(port="/dev/ttyACM0", baud=9600) | |
| @serial = SerialPort::open(port,baud) | |
| @serial.read_timeout = 100 | |
| end | |
| def get_status |
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
| $ curl localhost:9100/metrics | |
| # HELP go_gc_duration_seconds A summary of the GC invocation durations. | |
| # TYPE go_gc_duration_seconds summary | |
| go_gc_duration_seconds{quantile="0"} 0 | |
| go_gc_duration_seconds{quantile="0.25"} 0 | |
| go_gc_duration_seconds{quantile="0.5"} 0 | |
| go_gc_duration_seconds{quantile="0.75"} 0 | |
| go_gc_duration_seconds{quantile="1"} 0 | |
| go_gc_duration_seconds_sum 0 |
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
| description "pydoc documentation server" | |
| author "Todd Greenwood-Geer <[email protected]>" | |
| version "1.0" | |
| # ------------------------------------------------- | |
| # stanzas | |
| # ------------------------------------------------- | |
| start on (filesystem and net-device-up IFACE=lo) or runlevel [2345] | |
| stop on runlevel [!2345] |
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
| {erl_opts, [debug_info]}. | |
| {deps, [ | |
| {yaws, ".*", {git, "git://github.com/klacke/yaws", {tag, "yaws-1.94"}}}, | |
| {mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "master"}}, | |
| {mimetypes, ".*", {git, "git://github.com/spawngrid/mimetypes.git", "master"}} | |
| ]}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(launch). | |
| %% API. | |
| -export([start/0]). | |
| %% API. | |
| start() -> | |
| {ok, Cwd} = file:get_cwd(), | |
| Docroot = Cwd ++ "/webapp", |
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
| PROJECT = embedded_yaws | |
| REBAR = rebar | |
| all: clean webapp deps compile | |
| compile: | |
| rebar get-deps compile | |
| clean: | |
| rebar clean |
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
| =INFO REPORT==== 23-Nov-2012::15:50:22 === | |
| /home/todd/projects/mygit-repo/seed-master/desktop/erlang/cowboy/src/rest_echo.erl:37: Warning: function do_echo/2 is unused | |
| /home/todd/projects/mygit-repo/seed-master/desktop/erlang/cowboy/src/rest_echo.erl:44: Warning: function extract_parameter/2 is unused | |
| /home/todd/projects/mygit-repo/seed-master/desktop/erlang/cowboy/src/rest_echo.erl:49: Warning: function format_response/1 is unused | |
| /home/todd/projects/mygit-repo/seed-master/desktop/erlang/cowboy/src/rest_echo.erl:0: Recompiled with 1 warnings | |
| =ERROR REPORT==== 23-Nov-2012::15:50:26 === | |
| Unable to determine options for "/home/todd/bin/erlang/otp/lib/compiler/src/R15B02/lib/compiler-4.8.2/src/beam_asm.erl" | |
| =ERROR REPORT==== 23-Nov-2012::15:50:26 === | |
| Unable to determine options for "/home/todd/bin/erlang/otp/lib/compiler/src/R15B02/lib/compiler-4.8.2/src/beam_block.erl" |
NewerOlder