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 | |
function send_push_ios( $message, $data = array() ) { | |
// Это паскод от сертификата | |
$passphrase = "Gergemona123"; | |
// Ссылка на файл сертификата на сервере | |
$sert_file = __DIR__ . '/gto_client.pem'; | |
// Ссылка на сервер Apple | |
// песочница |
I hereby claim:
- I am finagin on github.
- I am finagin (https://keybase.io/finagin) on keybase.
- I have a public key ASAX0qhk8IAQYtU9Ee5Kc6-ZQRYDQajVGO24kdKrEVPUego
To claim this, I am signing this object:
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
// ... | |
/** | |
* Media sizes | |
*/ | |
$media_aliases = { | |
palm: '(max-width: 480px)' | |
lap: '(min-width: 481px) and (max-width: 1023px)' | |
lap-and-up: '(min-width: 481px)' | |
portable: '(max-width: 1023px)' | |
desk: '(min-width: 1024px)' |
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
<!-- config/filesystems.php --> | |
<?php | |
// ... | |
'default' => 'local', | |
// ... |
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
<!-- config/filesystems.php --> | |
<?php | |
// ... | |
'default' => 'public', | |
// ... |
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
<!-- routes/web.php --> | |
<?php | |
// ... | |
Route::posr('/store', function (Request $request) { | |
// validate | |
// ... | |
// fileUpload is input name | |
if ($request->hasFile('fileUpload')) { |
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 Finagin\Ad\Helpers; | |
use Exception; | |
abstract class AbstractComparable | |
{ | |
/** | |
* Equals $this and $other instances |
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 | |
function panorama($file_name, $water_mark = false, $r = 255, $g = 255, $b = 255) | |
{ | |
list($width_x, $size) = getimagesize($file_name); | |
if ($width_x < $size) { | |
throw new Exception('The panorama must be horizontal'); | |
} |
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
<!-- leyouts/app.blade.php --> | |
@if (View::hasSection('breadcrumb')) | |
@yield('breadcrumb') | |
@else | |
@yield('title', 'Dashboard') | |
@endif | |
<!-- files/create.blade.php --> | |
@extends('layouts.app') |
OlderNewer