Skip to content

Instantly share code, notes, and snippets.

View morrislaptop's full-sized avatar

Craig Morris morrislaptop

View GitHub Profile
@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">
<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>
# 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 ->
<?php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'homestead' == gethostname() ? 'localhost' : '127.0.0.1'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'port' => env('DB_PORT', 'homestead' == gethostname() ? null : 33060),
'charset' => 'utf8',
<?php
$this->app->singleton(Verifier::class, function ($app) {
return new Verifier('firebase-project-name');
});
<?php
namespace App\Firebase;
use Firebase\Auth\Token\Verifier;
class Guard
{
protected $verifier;
<?php
namespace App\Firebase;
use Illuminate\Contracts\Auth\Authenticatable;
class User implements Authenticatable
{
/**
* The claims decoded from the JWT token.
<?php
use Illuminate\Http\Request;
Route::get('/me', function (Request $request) {
return (array) $request->user();
})->middleware('auth:api');
<script>
// Initialize Firebase
var config = {
apiKey: "xxxxxx",
authDomain: "xxxxxxx.firebaseapp.com",
databaseURL: "https:/xxxxxxx.firebaseio.com",
projectId: "xxxxxxxxx",
storageBucket: "",
messagingSenderId: "xxxxxxxxxx"
};
<?php
return [
'guards' => [
'api' => [
'driver' => 'firebase',
],
],
]