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
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
<?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
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 | |
namespace Vendor\Repository; | |
use PhpOption\Option; | |
use Doctrine\DBAL\LockMode; | |
trait OptionRepositoryTrait | |
{ | |
public function find($id, $lockMode = LockMode::NONE, $lockVersion = null) |
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
server { | |
server_name www.hostname.com; | |
root /var/www/hostname/current/web; | |
listen 81 default_server; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; |
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
even :: Int -> Bool | |
not :: Bool -> Bool | |
isnoteven :: Int -> Bool | |
isnoteven = not . even | |
even(10) -- True | |
not(True) -- False | |
isnoteven(9) -- True |
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 PipeFunctionComposition do | |
require Integer | |
def even(n), do: Integer.is_even(n) | |
def negate(n), do: not n | |
def multiply_by(n, factor), do: n * factor | |
@doc """ | |
true if the passed number is not even | |
""" |
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 SimpleFC do | |
require Integer | |
def even(n), do: Integer.is_even(n) | |
def negate(n), do: not n | |
def compose(func1, func2) do | |
fn (n) -> | |
func2.(func1.(n)) | |
end |
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 InfixFC do | |
@doc """ | |
define an infix operator <|> to compose functions | |
""" | |
defmacro left <|> right do | |
quote bind_quoted: [left: left, right: right] do | |
fn (v) -> left.(right.(v)) end | |
end | |
end |
OlderNewer