Skip to content

Instantly share code, notes, and snippets.


I am unstoppable.

and I am not alone.

We who have experienced horrors
      Pain beyond pain
Ceaseless torment robbing us
      of romantic ideals for what it is to be human.

We who have wished for the end.

View client.js
/* eslint-disable no-console */
/* eslint-disable no-undef */
window.client = (function () {
function getTiles(success) {
return fetch('/api/tiles', {
headers: {
Accept: 'application/json',
View puzzle-app.js
class PuzzleDashboard extends React.Component {
state = {
tiles: [],
emptyId: "",
emptyCol: "",
emptyRow: ""
componentDidMount() {
View web-routes.php
Route::prefix('project/{project}')->middleware('auth')->group(function() {
Route::get('/', 'ProjectController@schedule');
Route::get('schedule', 'ProjectController@schedule');
Route::get('store', 'ProjectController@store');
Route::get('audiences', 'ProjectController@audiences');

Keybase proof

I hereby claim:

  • I am mstaples on github.
  • I am deadlugosi ( on keybase.
  • I have a public key whose fingerprint is 123F DA54 45E2 F3A2 ED57 5FB7 5EF7 9F0C 6438 15AA

To claim this, I am signing this object:

View SpreadsheetService.php
namespace GoogleSpreadsheetAPI\entity;
include_once ( __DIR__ . '/../lib/autoload.php' );
use Google\Spreadsheet\SpreadsheetService as ParentSpreadsheetService;
use Google\Spreadsheet\ServiceRequestFactory;
use SimpleXMLElement;
mstaples / gist:c221d23e65ce8f358c91
Last active Aug 29, 2015
Is there a #composer #php plugin to generate a symfony bundle?
View gist:c221d23e65ce8f358c91
To create a new Symfony2 project:
php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/MyProject '2.5.*'
To create a new bundle structure in a Symfony2 project:
php app/console generate:bundle
View gist:8273e0c1fddd736d5661
$actions = [];
switch($rank) {
case 3;
$actions[] = "Hit all the things";
case 2;
$actions[] = "Hit two things";
case 1:
$actions[] = "Hit a thing";
View Overwritten RegistrationController
namespace ONN\UserBundle\Controller;
use FOS\UserBundle\FOSUserEvents;
use FOS\UserBundle\Event\FormEvent;
use FOS\UserBundle\Event\GetResponseUserEvent;
use FOS\UserBundle\Event\FilterUserResponseEvent;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
View gist:7379485
$.post( '{{ path('form_submit_path') }}',