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
<script> | |
// Initialize Firebase | |
var config = { | |
apiKey: "xxxxxx", | |
authDomain: "xxxxxxx.firebaseapp.com", | |
databaseURL: "https:/xxxxxxx.firebaseio.com", | |
projectId: "xxxxxxxxx", | |
storageBucket: "", | |
messagingSenderId: "xxxxxxxxxx" | |
}; |
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 | |
namespace App\Firebase; | |
use Illuminate\Contracts\Auth\Authenticatable; | |
class User implements Authenticatable | |
{ | |
/** | |
* The claims decoded from the JWT token. |
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 | |
namespace App\Firebase; | |
use Firebase\Auth\Token\Verifier; | |
class Guard | |
{ | |
protected $verifier; |
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 | |
$this->app->singleton(Verifier::class, function ($app) { | |
return new Verifier('firebase-project-name'); | |
}); |
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 | |
Auth::viaRequest('firebase', function ($request) { | |
return app(FirebaseGuard::class)->user($request); | |
}); |
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 | |
return [ | |
'guards' => [ | |
'api' => [ | |
'driver' => 'firebase', | |
], | |
], | |
] |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
<rule family="ipv4"> | |
<source address="31.221.51.230/32"/> | |
<service name="ssh"/> | |
<accept/> | |
</rule> | |
<rule family="ipv4"> | |
<source address="86.93.246.90/32"/> | |
<service name="ssh"/> | |
<accept/> | |
</rule> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>StereoPannerShim</title> | |
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.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
var gulpFaker = map(function(code, filename) { | |
return faker.fake(code.toString()); | |
}); | |
gulp.src(['html/*.html']) | |
.pipe($.plumber()) | |
.pipe($.fileInclude()) | |
.pipe(gulpFaker) | |
.pipe(gulp.dest('.')); |