Skip to content

Instantly share code, notes, and snippets.

View heryvandoro's full-sized avatar
🏠
I may be slow to respond.

Hery Vandoro heryvandoro

🏠
I may be slow to respond.
View GitHub Profile
@heryvandoro
heryvandoro / currency_lis.php
Created September 13, 2019 05:49 — forked from techguydev/currency_lis.php
Currency list for Laravel seeder
<?php
$currencies = array('code' =>
array('code' =>'AFN' , 'name' => 'Afghani', 'symbol' => '؋' ),
array('code' =>'ALL' , 'name' => 'Lek', 'symbol' => 'Lek' ),
array('code' =>'ANG' , 'name' => 'Netherlands Antillian Guilder', 'symbol' => 'ƒ' ),
array('code' =>'ARS' , 'name' => 'Argentine Peso', 'symbol' => '$' ),
array('code' =>'AUD' , 'name' => 'Australian Dollar', 'symbol' => '$' ),
array('code' =>'AWG' , 'name' => 'Aruban Guilder', 'symbol' => 'ƒ' ),
array('code' =>'AZN' , 'name' => 'Azerbaijanian Manat', 'symbol' => 'ман' ),
array('code' =>'BAM' , 'name' => 'Convertible Marks', 'symbol' => 'KM' ),
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
@heryvandoro
heryvandoro / socket-cheatsheet.js
Created July 27, 2017 06:12 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender