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
/* Non-Retina */ | |
@media screen and (-webkit-max-device-pixel-ratio: 1) { | |
} | |
/* Retina */ | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { | |
} |
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
// Update Mini Cart | |
$.post( | |
woocommerce_params.ajax_url, | |
{'action': 'mode_theme_update_mini_cart'}, | |
function(response) { | |
$('#mode-mini-cart').html(response); | |
} | |
); |
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
// Create a FileManager instance | |
let fileManager = NSFileManager.defaultManager() | |
// Rename 'hello.swift' as 'goodbye.swift' | |
do { | |
try fileManager.moveItemAtPath("hello.swift", toPath: "goodbye.swift") | |
} catch let error as NSError { | |
print("Ooops! Something went wrong: \(error)") | |
} |
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 | |
require_once('simple_html_dom.php'); | |
class Google_Scrape | |
{ | |
private $html = null; | |
private $query = null; | |
private $results = 0; | |
public function __construct($query='sample', $results=20) |
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
BMI Calculator |
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: Michael Aguiar <mike@aliasproject.com> | |
* @desc: An array of PostgreSQL Error Codes' => Descriptions | |
*/ | |
$PGError = array( | |
'00000' => 'SUCCESSFUL COMPLETION', | |
'01000' => 'WARNING', | |
'0100C' => 'DYNAMIC RESULT SETS RETURNED', |
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 initAutoComplete() { | |
var input = document.getElementById("grid-address"); | |
var autocomplete = new google.maps.places.Autocomplete(input); | |
autocomplete.addListener("place_changed", function () { | |
let place = autocomplete.getPlace(); | |
let address = ""; | |
if (place.address_components) { | |
address = [ |
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 | |
// Configuration | |
$myEmail = 'YOUR EMAIL HERE'; | |
$error = ''; | |
// To send HTML mail, the Content-type header must be set | |
$headers = 'MIME-Version: 1.0' . "\r\n"; | |
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; | |
// Additional headers |
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 | |
public function downloadFile(Request $request) | |
{ | |
// !VALIDATE USER HAS ACCESS | |
// Get response and clean before return | |
$response = Storage::download(FILE_PATH_HERE); | |
ob_end_clean(); |
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
performance_schema = 0 | |
show_compatibility_56 = 1 |
NewerOlder