It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.
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
{ | |
"awesome_twitter_folks": [ | |
{ | |
"name": "Ash Allen", | |
"twitter": "@AshAllenDesign" | |
} | |
] | |
} |
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
version: '3.8' | |
services: | |
elasticvue: | |
image: cars10/elasticvue | |
container_name: elasticvue | |
ports: | |
- "8080:8080" | |
restart: always | |
networks: |
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
version: '3.8' | |
services: | |
db: | |
image: mariadb:10.7 | |
ports: | |
- 3306:3306 | |
environment: | |
- MYSQL_DATABASE=laravel | |
- MYSQL_USER=root | |
- MYSQL_ROOT_PASSWORD=root |
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
FROM php:8-fpm | |
# Arguments defined in docker-compose.yml | |
ARG user | |
ARG uid | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
curl \ |
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
//Nick Wetherington | |
package Chpt4_Project; | |
import java.util.Scanner; | |
public class Member { | |
public String name; | |
public String name; | |
public double weight; |
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
version: '3' | |
services: | |
laravel_db: | |
image: mariadb | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./db_data:/var/lib/mysql | |
environment: | |
- MYSQL_DATABASE=laravel_db |
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
public function createStripeSession(Request $request) | |
{ | |
$trip = Trip::find( session('trip_id') ); | |
\Stripe\Stripe::setApiKey( <dat secret key boi> ); | |
$cartBooking = session('cart_booking'); | |
if ($cartBooking->payment_type == 'deposit') { | |
$total = $cartBooking->getDepositCost(); | |
} else { | |
$total = $cartBooking->getFullCost(); |
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 Tests\Browser; | |
use App\Charter; | |
use App\Events\Bookings\NewBookingRequest; | |
use App\Trip; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Laravel\Dusk\Browser; | |
use Tests\DuskTestCase; |
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 App\Traits; | |
use Illuminate\Support\Facades\Schema; | |
use Error; | |
use Auth; | |
trait HasDrafts | |
{ | |
/** | |
* Get the draft data for a model. | |
* |
NewerOlder