brew install zsh
brew install tldr
const REGEX_RGBA = /^rgba\(([\d]{1,3}),\s*([\d]{1,3}),\s*([\d]{1,3}),\s*(0|1(?:\.0+)?|0\.\d+)\)$/ | |
const REGEX_RGB = /^rgba\(([\d]{1,3}),\s*([\d]{1,3}),\s*([\d]{1,3})\)$/ | |
const REGEX_HEX = /^#([\da-zA-Z]{3}|[\da-zA-Z]{6})$/ | |
function onOpen() { | |
const ui = SpreadsheetApp.getUi(); | |
const menu = ui.createMenu("Color"); | |
menu.addItem("Set cell background color from content", "setCellBackgroundColorFromContent"); | |
menu.addToUi(); |
const fs = require('fs') | |
const path = require('path') | |
const regex = /export (.*) from '([^']+)'/ | |
const browse = filepath => { | |
const content = fs.readFileSync(filepath).toString() | |
const matches = content.match(new RegExp(regex, 'g')) | |
if (!matches) { |
Vagrant.configure("2") do |config| | |
config.vm.synced_folder "./local", "/distant", id: "vagrant-root", | |
owner: "vagrant", | |
group: "www-data", | |
mount_options: ["dmode=775,fmode=664"] | |
end |
# Packages | |
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install apache2 curl git libapache2-mod-php7.3 php7.3 php7.3-ctype php7.3-curl php7.3-mbstring php7.3-gd php7.3-zip unzip | |
# Composer | |
sudo mkdir -p -m 775 /usr/local/bin | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
<!-- ios standalone web app --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- ios status bar appearance, options: black, black-translucent --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
<!-- ios icon, just one size because ios will scale it, remove "-precomposed" if you want ios to add effects --> | |
<link href="icon@144x144.png" sizes="144x144" rel="apple-touch-icon-precomposed"> | |
<!-- ios startup images --> |