Skip to content

Instantly share code, notes, and snippets.

@kieranja
kieranja / gist:10278326
Last active January 5, 2023 03:00
Laravel Batch Request
// Simple. This method allows you to make a request like http://myapi.com/api/batch?request=[{"url":"/api/profile/1", "type":"GET", "request_id":"1"}, {"url":"/api/profile/2", "type":"GET", "request_id":2}]
$requests = \Input::get('request');
$requests = json_decode($requests);
$output = array();
foreach ($requests as $request) {
$url = parse_url($request->url);
@tomjn
tomjn / jstest.php
Created January 17, 2014 00:36
Add this widget and save, and refresh the page. Once you have done this, look at the dropdown in the widget interface, notice how it responds when clicked. Now add a new JS Test Widget, and notice how the UI of the test widget does not respond. Until the page is refreshed or the save button is pressed, the selectize control is inactive. Also not…
<?php
/*
Plugin Name: JS Test Widget
Description: Tests a frustrating issue
Author: Tom J Nowell
Version: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 30, 2024 04:42
A badass list of frontend development resources I collected over time.
@ziadoz
ziadoz / awesome-php.md
Last active April 17, 2024 21:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.