Skip to content

Instantly share code, notes, and snippets.

View morrislaptop's full-sized avatar

Craig Morris morrislaptop

View GitHub Profile
<script>
// Initialize Firebase
var config = {
apiKey: "xxxxxx",
authDomain: "xxxxxxx.firebaseapp.com",
databaseURL: "https:/xxxxxxx.firebaseio.com",
projectId: "xxxxxxxxx",
storageBucket: "",
messagingSenderId: "xxxxxxxxxx"
};
<?php
namespace App\Firebase;
use Illuminate\Contracts\Auth\Authenticatable;
class User implements Authenticatable
{
/**
* The claims decoded from the JWT token.
<?php
namespace App\Firebase;
use Firebase\Auth\Token\Verifier;
class Guard
{
protected $verifier;
<?php
$this->app->singleton(Verifier::class, function ($app) {
return new Verifier('firebase-project-name');
});
<?php
Auth::viaRequest('firebase', function ($request) {
return app(FirebaseGuard::class)->user($request);
});
<?php
return [
'guards' => [
'api' => [
'driver' => 'firebase',
],
],
]
# 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 ->
<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>
@morrislaptop
morrislaptop / index.html
Created January 28, 2016 08:09
Stereo Panner based on Alpha Rotation
<!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">
var gulpFaker = map(function(code, filename) {
return faker.fake(code.toString());
});
gulp.src(['html/*.html'])
.pipe($.plumber())
.pipe($.fileInclude())
.pipe(gulpFaker)
.pipe(gulp.dest('.'));