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
@techguydev
techguydev / currency_lis.php
Created September 6, 2017 15:14
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' ),
@surferxo3
surferxo3 / gold_silver_rates.php
Last active May 1, 2024 18:46
Gold and Silver Rates API to fetch updated rates with their respective currency and price.
<?php
/*#############################
* Developer: Mohammad Sharaf Ali
* Designation: Web Developer
* Version: 1.0
*/#############################
const RATES_API_URL = 'http://goldprice.org/NewCharts/gold/images/goldsilverpricesforcalculators.txt';
@nikic
nikic / microbench.php
Created June 22, 2012 23:42
Microbenchmark of generator implementation
<?php
error_reporting(E_ALL);
function xrange($start, $end, $step = 1) {
for ($i = $start; $i < $end; $i += $step) {
yield $i;
}
}