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
#!/usr/bin/env php8.1 | |
<?php | |
// $ composer require chriskonnertz/string-calc:^2.0.0 | |
require __DIR__ . '/vendor/autoload.php'; | |
$stringCalc = new ChrisKonnertz\StringCalc\StringCalc(); | |
$term = trim(fgets(STDIN)); // reads one line from STDIN |
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> | |
<head> | |
<title>Pusher Test</title> | |
<script src="https://js.pusher.com/4.1/pusher.min.js"></script> | |
<script> | |
// Enable pusher logging - don't include this in production | |
Pusher.logToConsole = true; | |
var pusher = new Pusher('key_here', { |
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
#!/usr/bin/env php8.1 | |
<?php | |
// $ composer require antimech/coinbase:^0.11.0 | |
require __DIR__ . '/vendor/autoload.php'; | |
$coinbase = new Coinbase; | |
// Promotion |
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 | |
if (!auth()->user()) { | |
return abort(401); | |
} | |
$users = \App\TelegramBotUser::subscribers(); | |
echo $users->count(); | |
echo '<br>'; |
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
$('#sign-up form').submit(function (event) { | |
var $this = $(this), | |
email = $this.find("input[name='email']").val(), | |
password = $this.find("input[name='password']").val(), | |
repeatPassword = $this.find("input[name='repeatpassword']").val(), | |
captcha = grecaptcha.getResponse(widgetId1); | |
if (password !== repeatPassword) { | |
document.querySelector('#sign-up form input[name="repeatpassword"]').setCustomValidity('Passwords mismatch'); | |
event.preventDefault(); |
NewerOlder