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
/* Globals */ | |
a, a:link, a:visited { | |
color: #cecece; | |
} | |
a:hover { | |
color: #ffffff; | |
font-weight: bold; | |
text-decoration: underline; |
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 | |
error_reporting(0); | |
session_start(); | |
function connect() { | |
$db = new mysqli("host", "user", "pass", "db"); | |
if($db -> connect_error) { | |
die("Couldn't connect to the database: " . $db -> connect_error); | |
} | |
return $db; | |
} |
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
#include<iostream> | |
#include<iomanip> | |
using namespace std; | |
const int size = 3; | |
bool isGameOver = false; | |
char player1 = 'X'; | |
char player2 = 'O'; | |
int input = 0; | |
int win = 0; | |
int n; |
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
#include<iostream> | |
#include<iomanip> | |
using namespace std; | |
const int size = 3; | |
bool isGameOver = false; | |
int player = 1; | |
char player1 = 'X'; | |
char player2 = 'O'; | |
int input = 0; | |
int win = 0; |
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
scraper = { | |
lastRowShown: 0, | |
lastRowInSet: 0, | |
results: [], | |
complete: false, | |
prev: 1, | |
run: function() | |
{ | |
console.log("Initialising"); | |
var countInfo = $("#all_organizations_info").text(); |
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 | |
// Define the connection variables. | |
$dbHost = "localhost"; | |
$dbUser = "root"; | |
$dbPass = ""; | |
$dbName = null; | |
// Connect to the database. | |
$conn = new mysqli($dbHost, $dbUser, $dbPass); |
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
<script type="text/javascript"> | |
var dates = document.getElementById("dates_input").value, | |
dates_split = dates.split(" - "), | |
start_date = dates_split[0], | |
end_date = dates_split[1]; | |
console.log("First date: " + start_date); | |
console.log("Second date: " + end_date); | |
</script> |
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
$fileName = 'Billing-Summary.csv'; | |
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
header('Content-Description: File Transfer'); | |
header("Content-type: text/csv"); | |
header("Content-Disposition: attachment; filename={$fileName}"); | |
header("Expires: 0"); | |
header("Pragma: public"); | |
$fh = @fopen( 'php://output', 'w' ); |