-
A. Theatre Square 🔗 https://codeforces.com/contest/1/problem/A Tags: math, ceil division
-
A. Beautiful Matrix 🔗 https://codeforces.com/contest/263/problem/A Tags: arrays, math
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
use App\Http\Middleware\VerifyCsrfToken; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Storage; | |
use Illuminate\Support\Facades\DB; | |
Route::post('/dev/restore-from-storage', function (Request $req) { | |
$u = $req->getUser(); | |
$p = $req->getPassword(); | |
abort_unless($u === env('OPS_USER') && $p === env('OPS_PASS'), 401, 'Unauthorized'); |
- Stripe
- PayPal
- Square
- Authorize.Net
- Braintree (by PayPal)
- 2Checkout (now Verifone)
- WorldPay
- BlueSnap
- Checkout.com
- Adyen
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
function getFlagEmoji($code) { | |
if($code == 'en') $code = 'GB'; | |
if($code == 'hi') $code = 'IN'; | |
$code = strtoupper($code); | |
$offset = 127397; | |
$emoji = ''; | |
foreach (str_split($code) as $char) { | |
$emoji .= mb_chr(ord($char) + $offset, 'UTF-8'); | |
} |
- Color — Red, Blue, Black, etc.
- Size — S, M, L, XL (or numeric like 38, 40, etc.)
- Material — Cotton, Leather, Plastic, etc.
- Brand — Nike, Samsung, Apple, etc.
- Model — Specific model number or name.
- Weight — 500g, 1kg, etc.
- Dimensions — Height, Width, Depth.
- SKU — Stock Keeping Unit (unique ID).
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
public function __construct(array $attributes = []) | |
{ | |
parent::__construct($attributes); | |
foreach ($this->getDates() as $dateField) { | |
$this->appends[] = 'formatted_' . $dateField; | |
} | |
} | |
public function __call($method, $parameters) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Modern jGrowl Notification</title> | |
<link rel="stylesheet" type="text/css" | |
href="//cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.5.0/jquery.jgrowl.min.css" /> |
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 | |
function changeDirectoryPermissions($dir) { | |
// Check if the given path is a directory | |
if (is_dir($dir)) { | |
// Change the directory permission to 755 | |
chmod($dir, 0755); | |
echo "Permission set for directory: $dir\n"; | |
// Open the directory |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Custom Input Type Color</title> | |
<style> | |
#style1 { | |
-webkit-appearance: none; |
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
/* | |
Easy Installer by ViserLab | |
Laravel Software Setup Module By viserlab.com | |
*/ | |
@import url(https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap); | |
html { | |
font-size: 18px; | |
} |
NewerOlder