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
#!/bin/bash | |
osascript<<EOF | |
tell application "iTerm" | |
activate | |
select first window | |
# Create new tab | |
tell current window | |
create tab with default profile |
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
<?php | |
use DateTimeImmutable; | |
use LogicException; | |
Class Marker | |
{ | |
public function __construct(private string $title, private DateTimeImmutable $activatedAt = null) {} | |
public function activate(): void |
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
//////////// Object oriented programming | |
console.log('Calculator:'); | |
let calculator = { | |
// attribute "result" of calculator object | |
result: 0, | |
// method "add()" of calculator object | |
add: function (number) { |
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
help: | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH:/Users/ludo/Library/Python/3.7/bin | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/ludo/.oh-my-zsh" | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# CASE_SENSITIVE="true" | |
# HYPHEN_INSENSITIVE="true" |
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: "3.0" | |
services: | |
composer: | |
image: composer/composer | |
working_dir: /var/app | |
volumes: | |
- project:/var/app | |
- ./var/composer:/composer | |
volumes: |
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
#!/bin/bash | |
# use newline as separator | |
IFS=$'\n' | |
for author in $(git log --all --format='%cN' | sort -u); do | |
echo $author; | |
git log --all --author="$author" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "++ %s\n-- %s\n= %s\n", add, subs, loc }' - | |
done |
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
account/remove_profile_banner | |
account/settings | |
account/settings | |
account/update_delivery_device | |
account/update_profile | |
account/update_profile_background_image | |
account/update_profile_banner | |
account/update_profile_image | |
account/verify_credentials | |
application/rate_limit_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
vagrant plugin install vagrant-berkshelf --plugin-version 2.0.1 --verbose | |
Installing the 'vagrant-berkshelf --version '2.0.1'' plugin. This can take a few minutes... | |
Fetching source index from http://gems.hashicorp.com/ | |
Fetching gem metadata from https://rubygems.org/......... | |
Fetching additional metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using addressable (2.3.6) | |
Using multipart-post (2.0.0) | |
Using faraday (0.9.0) | |
Using berkshelf-api-client (1.2.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
<?php | |
public function it_is_initializable() | |
{ | |
$this->beConstructedWith('FR'); | |
$this->shouldHaveType(Country::class); | |
} | |
public function its_constructor_requires_a_valid_country_isocode() | |
{ |
NewerOlder