To check out and include:
This file contains 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 | |
/** | |
* Get following/followers count of an Twitter account, without using 1.1 API | |
* @author Lancelot HARDEL | |
* @param username That's clear | |
* @param cache If you want to enable cache (or not) | |
* @param cachetime Time that the cachefile is valied | |
* @param stat_name you can use two values : followers, or following | |
* @return int | |
*/ |
This file contains 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
{% macro select (name, id, options, selected, required, includeBlank) %} | |
<select name="{{ name }}" id="{{ id }}" {{ required ? 'required' : '' }}> | |
{% if includeBlank %} | |
<option value=""></option> | |
{% endif %} | |
{% for key, value in options %} | |
{% if value is iterable %} | |
<optgroup label="{{ key }}"> | |
{% for subKey, subValue in value %} | |
<option value="{{ subKey }}" {{ subKey == selected ? 'selected' : '' }}>{{ subValue }}</option> |
This file contains 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
// Demo: http://jsbin.com/emisib/5/edit#preview | |
// | |
// Markup: | |
// | |
// <input type="text" name="password" id="password" /> | |
// <a href="#" class="passworder" data-length="10" data-target="#password">Generate</a> | |
// | |
// - vjt@openssl.it - public domain | |
// | |
(function () { |
This file contains 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 | |
/** | |
* Extract unique values of the specified key in a two dimensional array | |
* | |
* @param array $array | |
* @param mixed $key | |
* @return array | |
*/ | |
function array_unique_deep($array, $key) | |
{ |
This file contains 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
// place the following in app/Providers/AppServiceProviders.php, in the boot() method | |
/** | |
* Blade directive to dump a variable/object inside a template. | |
* This is similar to dd(), except that it doesn't interrupt the | |
* execution of the app. It does NOT support multiple arguments | |
* however, you have to use one directive per variable. | |
* | |
* @example @dump($posts->comments) | |
*/ |
This file contains 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\Http\Controllers\Api\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Foundation\Auth\SendsPasswordResetEmails; | |
use Illuminate\Support\Facades\Password; | |
class ForgotPasswordController extends Controller |
This file contains 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
# Simple environment setup script | |
# Install Applications | |
choco install fiddler4 | |
choco install notepadplusplus | |
choco install visualstudiocode | |
choco install greenshot | |
choco install GoogleChrome | |
choco install putty | |
choco install ccleaner |
$ apt-get install -y \
autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev \
re2c libxml2 libxml2-dev bison libbz2-dev libreadline-dev \
libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev \
libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev \
OlderNewer