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 | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
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 print() { | |
const filename = 'ThisIsYourPDFFilename.pdf'; | |
html2canvas(document.querySelector('#nodeToRenderAsPDF')).then(canvas => { | |
let pdf = new jsPDF('p', 'mm', 'a4'); | |
pdf.addImage(canvas.toDataURL('image/png'), 'PNG', 0, 0, 211, 298); | |
pdf.save(filename); | |
}); | |
} |
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
// data from https://gist.github.com/andyj/7108917 | |
$array = [ | |
'44' => 'UK (+44)', | |
'1' => 'USA (+1)', | |
'213' => 'Algeria (+213)', | |
'376' => 'Andorra (+376)', | |
'244' => 'Angola (+244)', | |
'1264' => 'Anguilla (+1264)', | |
'1268' => 'Antigua & Barbuda (+1268)', |
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 | |
$countryArray = array( | |
'AD'=>array('name'=>'ANDORRA','code'=>'376'), | |
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'), | |
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'), | |
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'), | |
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'), | |
'AL'=>array('name'=>'ALBANIA','code'=>'355'), | |
'AM'=>array('name'=>'ARMENIA','code'=>'374'), | |
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'), |
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 lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div class="content-fluid"> |
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
import java.text.DecimalFormat; | |
import javax.swing.JOptionPane; | |
public class TuitionCost { | |
public static void main(String[] args) { | |
int costHours; | |
int student; | |
String input; |