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
function convertCurrency($from = null, $to = null, $amt = null) { | |
$url = "https://www.xe.com/currencyconverter/convert/?Amount=$amt&From=$from&To=$to"; | |
$ch = curl_init(); // Initialize a CURL session. | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return Page contents. | |
curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter. | |
$data = curl_exec($ch); // grab URL and pass it to the variable. | |
curl_close($ch); // close curl resource, and free up system resources. |
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
/* | |
This CSS is used for responsive tables. | |
id of the table parent should be 'no-more-tables'. | |
table should have class 'table' | |
*/ | |
table { | |
width: 100%; | |
border-collapse: collapse; | |
} |
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 | |
/** | |
* @author Anush Prem <goku.anush@gmail.com> | |
* @package Solver | |
* @subpackage Sudoku | |
* @version 0.1 | |
*/ | |
/** |
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 | |
Class Test extends SplQueue | |
{ | |
} | |
$queue = []; | |
//SplQueue new object | |
$dummyQueue = new test(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function invite() { | |
var url = '/people/~/mailbox', | |
body = { | |
recipients: { | |
values: [{ | |
person: { |
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 | |
/** | |
* @author Anush Prem <goku.anush@gmail.com> | |
* @package Solver | |
* @subpackage Sudoku | |
* @version 0.1 | |
*/ | |
/** |