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
sudo yum install docker | |
sudo usermod -a -G docker $USER | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# The following line allow `docker compose` instead of `docker-compose`. | |
sudo ln -s /usr/local/bin/docker-compose /usr/libexec/docker/cli-plugins/docker-compose |
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 | |
function csvToStdOut(array $headers, iterable $rows, string $delimiter = ','): void | |
{ | |
$resource = fopen('php://output', 'wb'); | |
fputcsv($resource, $headers, $delimiter); | |
foreach ($rows as $row) { | |
fputcsv($resource, $row, $delimiter); | |
} |
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
packages: | |
yum: | |
zlib: [] | |
fontconfig: [] | |
freetype: [] | |
libX11: [] | |
libXext: [] | |
libXrender: [] | |
xorg-x11-fonts-75dpi: [] | |
xorg-x11-fonts-Type1: [] |
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
<div class="map-iframe-container"> | |
<h3>First Map</h3> | |
<iframe class="map-iframe" | |
frameborder="0" style="border:0; width: 100%; height: 100%" | |
src="https://www.google.com/maps/embed/v1/place?key=%GOOGLE_API_KEY%&q=%LOCATION%" allowfullscreen> | |
</iframe> | |
</div> | |
<div class="map-iframe-container"> | |
<h3>Second Map</h3> |
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
{% macro stars(rating, max) %} | |
<div class="stars"> | |
{% for i in range(1, max) %} | |
{% set toggled = (i <= rating|round) %} | |
{% set half = (rating|round == i and rating|round(0, 'floor') != rating) %} | |
{% if half %} | |
{% set className = "fa-star-half-o" %} | |
{% elseif toggled %} | |
{% set className = "fa-star" %} |
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
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=1024,maximum-scale=1.0"> | |
<link rel="preconnect" href="//player.vimeo.com"> |
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
[alias "aws.elasticbeanstalk"] | |
remote = !.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url | |
push = !.git/AWSDevTools/aws.elasticbeanstalk.push | |
config = !.git/AWSDevTools/aws.elasticbeanstalk.config | |
createapplicationversion = !.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion | |
[aws "endpoint"] | |
us-east-1 = git.elasticbeanstalk.us-east-1.amazonaws.com | |
ap-northeast-1 = git.elasticbeanstalk.ap-northeast-1.amazonaws.com | |
eu-west-1 = git.elasticbeanstalk.eu-west-1.amazonaws.com | |
us-west-1 = git.elasticbeanstalk.us-west-1.amazonaws.com |
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
.transition (...) { | |
-webkit-transition: @arguments; | |
-moz-transition: @arguments; | |
-o-transition: @arguments; | |
-ms-transition: @arguments; | |
transition: @arguments; | |
} | |
.transitionPerBrowser (...){ | |
-webkit-transition: ~"-webkit-@{arguments}"; |
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
.transition (...) { | |
-webkit-transition: @arguments; | |
-moz-transition: @arguments; | |
-o-transition: @arguments; | |
-ms-transition: @arguments; | |
transition: @arguments; | |
} | |
.transitionPerBrowser (@property, @rest...){ | |
-webkit-transition: "-webkit-{@arguments}"; |
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
.boxShadow (...) { | |
box-shadow: @arguments; | |
-moz-box-shadow: @arguments; | |
-webkit-box-shadow: @arguments; | |
} | |
.transition (...) { | |
-webkit-transition: @arguments; | |
-moz-transition: @arguments; | |
-o-transition: @arguments; |
NewerOlder