Skip to content

Instantly share code, notes, and snippets.

View danrovito's full-sized avatar

Dan Rovito danrovito

View GitHub Profile
array(
00501,
01001,
01002,
01003,
01004,
01005,
01007,
01008,
01009,
<?php
return [
'' => 'Please Select A Provider',
'@message.alltel.com' => 'Alltel',
'@txt.att.net' => 'AT&T',
'@txt.bell.ca' => 'Bell Mobility',
'@cingularme.com' => 'Cingular',
'@fido.ca' => 'Fido',
'@msg.koodomobile.com' => 'Kudo Mobile',
@danrovito
danrovito / us_pvp_items.php
Created December 22, 2015 04:07
wow pvp items for 6.2 warlords
$pvpitems = array(
"125827", //Warmongering Gladiator's Dreadplate Helm
"125829", //Warmongering Gladiator's Dreadplate Shoulders
"125825", //Warmongering Gladiator's Dreadplate Chestpiece
"125826", //Warmongering Gladiator's Dreadplate Gauntlets
"125828", //Warmongering Gladiator's Dreadplate Legguards
"126029", //Warmongering Combatant's Dreadplate Helm
"126031", //Warmongering Combatant's Dreadplate Shoulders
"126027", //Warmongering Combatant's Dreadplate Chestpiece
"126028", //Warmongering Combatant's Dreadplate Gauntlets
// Define your locations: HTML content for the info window, latitude, longitude
var locations = [
//North America
['<h4>Seattle</h4>', 47.614848,-122.3359058],
['<h4>San Jose</h4>', 37.2970155,-121.8174109],
['<h4>Los Angeles</h4>', 34.0204989,-118.4117325],
['<h4>Chicago</h4>', 41.8337329,-87.7321555],
['<h4>Dallas</h4>', 32.8206645,-96.7313396],
['<h4>Toronto</h4>', 43.7182412,-79.378058],
['<h4>Newark</h4>', 40.73454,-74.16375],
@danrovito
danrovito / webhook-mailer.php
Created November 2, 2015 15:33 — forked from boucher/webhook-mailer.php
Stripe Webhook PHP Example
<?php
// SETUP:
// 1. Customize all the settings (stripe api key, email settings, email text)
// 2. Put this code somewhere where it's accessible by a URL on your server.
// 3. Add the URL of that location to the settings at https://manage.stripe.com/#account/webhooks
// 4. Have fun!
// set your secret key: remember to change this to your live secret key in production
// see your keys here https://manage.stripe.com/account
<?php
$code = strtolower(substr(base64_encode(sha1(mt_rand())), 0, 32));
return print $code
?>
if($fileext == "css"){
Storage::disk('s3') -> getDriver() ->put($directoryname . "/" . $filename, $contents, [
'ContentType' => 'text/css'
]);
} else if($fileext == "js"){
Storage::disk('s3') -> getDriver() ->put($directoryname . "/" . $filename, $contents, [
'ContentType' => 'application/javascript'
]);
}
Storage::disk('s3') -> getDriver() ->put('file.css', $contents, ['ContentType' => 'text/css']);
@danrovito
danrovito / jquery-validate.js
Created August 20, 2015 20:05
Jquery Validate to work in IE compatibility mode
/*!
* jQuery Validation Plugin v1.13.1
*
* http://jqueryvalidation.org/
*
* Copyright (c) 2014 Jörn Zaefferer
* Released under the MIT license
*/
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
@danrovito
danrovito / progressive-ace.htm
Last active August 29, 2015 14:25 — forked from duncansmart/progressive-ace.htm
Integrating ACE Editor in a progressive way
<textarea name="my-xml-editor" data-editor="xml" rows="15"></textarea>
...
<textarea name="my-markdown-editor" data-editor="markdown" rows="15"></textarea>
...
<script src="//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"></script>
<script>
// Hook up ACE editor to all textareas with data-editor attribute
$(function () {