This file contains 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
// with these deps it compiles, but the global tracer do not log anything | |
// tracing = { version = "^0.1.21" } | |
// tracing-subscriber = "^0.2.15" | |
// tracing-opentelemetry = "^0.9.0" | |
// tracing-futures = "^0.2.4" | |
// opentelemetry = { version = "^0.10.0" } | |
// opentelemetry-jaeger = { version = "^0.9.0", features = ["collector_client"] } | |
// | |
// I call this from main with | |
// let uninstall = Tracing::initialize().expect("unable to initialize tracing"); |
This file contains 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
rm -rf elm-stuff/build-artifacts/ && time sysconfcpus -n 1 ./node_modules/.bin/elm-make elm/Crash.elm | |
Success! Compiled 260 modules. | |
Successfully generated index.html | |
real 1m33.461s | |
user 1m31.141s | |
sys 0m2.268s | |
=================================================================== |
This file contains 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
[ | |
inputs: ["lib/**/*.{ex,exs}", "test/**/*.{ex,exs}"], | |
locals_without_parens: [ | |
# plug | |
plug: :*, | |
parse: :*, | |
serialize: :*, | |
value: :*, | |
match: :*, |
This file contains 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
#!/bin/sh | |
# credo checks before commit | |
mix credo | |
CREDO_RES=$? | |
if [ $CREDO_RES -ne 0 ] | |
then | |
exit $CREDO_RES | |
fi |
This file contains 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
dependencies: | |
pre: | |
- config/circleci/prepare.sh | |
cache_directories: | |
- ~/dependencies | |
- ~/.mix | |
- _build | |
- deps | |
test: |
This file contains 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
set :application, "Facile" | |
set :domain, "prod1" | |
set :deploy_to, "/home/www" | |
set :repository, "git@localhost/facile.git" | |
set :scm, :git | |
role :web, domain # Your HTTP server, Apache/etc | |
role :app, domain # This may be the same as your `Web` server | |
role :db, domain, :primary => true # This is where symfony migrations will run |
This file contains 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
<?php | |
// src/Acme/DemoBundle/Controller/MainController.php | |
class MainController | |
{ | |
public function contactAction() | |
{ | |
return new Response('<h1>Contact us!</h1>'); | |
} | |
} |
This file contains 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
composer init -n --require=cypresslab/walrus:dev-develop && composer install |
This file contains 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
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- jms/security-extra-bundle 1.2.0 requires jms/metadata 1.1.* -> satisfiable by jms/metadata 1.1.1. | |
- jms/security-extra-bundle 1.2.0-RC requires jms/metadata 1.1.* -> satisfiable by jms/metadata 1.1.1. | |
- jms/security-extra-bundle 1.2.x-dev requires jms/metadata 1.1.* -> satisfiable by jms/metadata 1.1.1. | |
- Conclusion: don't install jms/metadata 1.1.1 | |
- Installation request for jms/security-extra-bundle 1.2.* -> satisfiable by jms/security-extra-bundle 1.2.0, jms/security-extra-bundle 1.2.0-RC, jms/security-extra-bundle 1.2.x-dev. |
This file contains 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
defmodule TestInfix do | |
import InfixFC | |
def invert(what) do | |
what |> String.graphemes |> Enum.reverse |> Enum.join | |
end | |
def inverted_and_stripped_upcase(subject) do | |
func = (&invert/1) <|> (&String.upcase/1) <|> (&String.strip/1) | |
func.(subject) |
NewerOlder