You can check here for getting the latest version. Change the wget url to download newer versions.
class Morse | |
def posibilities(signals) | |
signals.include?('?') ? check_wildcard(signals) : morses["#{signals}"] | |
end | |
def check_wildcard(signals) | |
length = signals.split('').length | |
values = [] | |
if length.eql?(1) | |
values = ["E", "T"] |
import kotlin.properties.Delegates | |
fun main(args: Array<String>) { | |
val kumbu = Wallet(0) | |
kumbu.listener = AccountChangedListener() | |
println("Saldo geral: ${kumbu.balance}") | |
kumbu.premiumAccount = true | |
println(kumbu.premiumAccount) | |
kumbu.premiumAccount = false |
<div id="actions" class="row my-4"> | |
<div class="col-lg-7"> | |
<!-- The fileinput-button span is used to style the file input field as button --> | |
<span class="btn btn-success fileinput-button dz-clickable"> | |
<i class="icon-plus small-text"></i> | |
<span>Add files...</span> | |
</span> | |
<button type="submit" class="btn btn-primary start"> | |
<i class="icon-arrow-circle-o-up icon-offset"></i> |
<?php | |
namespace App\Exceptions; | |
class Handler | |
{ | |
/** | |
* Convert a validation exception into a JSON response. | |
* | |
* @param \Illuminate\Http\Request $request |
<?php | |
if (php_sapi_name() === 'cli') $lb = "\n"; | |
else $lb = "<br />"; | |
for ($i = 1; $i <= 100; $i++) | |
{ | |
if ($i % 15 === 0) { | |
echo "FizzBuzz $lb"; | |
} |
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
#!/bin/bash | |
db=<db> | |
collection_list="<collection1> <collection2> <collection3>" | |
host=127.0.0.1 | |
port=<port> | |
out_prefix=/Temp | |
for collection in $collection_list; do | |
echo $collection | |
out_dir="${out_prefix}/${db}_${collection}/" |
In the case that you don't want development errors making their way to Sentry for error tracking, you can use the code below to ensure that Sentry will only record exceptions when in production.
First, instead of loading the SentryLaravelServiceProvider
in the config/app.php
providers
array, we will load it in our App/Providers/AppServiceProvider.php
. This allows us to check the environment before loading the appropriate service providers.
Seconly, in our App/Exceptions/Handler.php
we again check for the production
environment before trying to capture the exception using Sentry. This second step prevents Sentry from trying to catch an exception when it isn't bound in the container.