Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am phylsys on github.
  • I am phildotme (https://keybase.io/phildotme) on keybase.
  • I have a public key ASAJRSFzyfsV3x2p679tnk6sq3tklLqQVV8CDkYpbGOY6wo

To claim this, I am signing this object:

@phylsys
phylsys / Web.config
Created March 13, 2017 19:10
Web.config for /.well-known/ directory in an ASP.net application
<?xml version="1.0"?>
<configuration>
<system.web>
<!-- Make directory public. Allow anonymous users access to everything in this directory. -->
<authorization>
<allow users="*"/>
</authorization>
</system.web>
/*========================================================
GOOGLE ADDRESS AUTOCOMPLETE
========================================================*/
$(function(){
var autocomplete,
input = $('#shipping-line1');
// Only IE 9+
if ($.browser.msie && $.browser.version.substr(0,1) < 10)
return false;
/**
*
* Search Query Mining Tool
*
* This script calculates the contribution of each word or phrase found in the
* search query report and outputs a report into a Google Doc spreadsheet.
*
* Version: 2.1
* Last updated 2015-09-17
* Google AdWords Script maintained on brainlabsdigital.com
@phylsys
phylsys / trim_better.php
Created July 24, 2014 17:35
A better PHP trim() function
/**
* trims text to a maximum length, splitting at last word break, and (optionally) appending ellipses and stripping HTML tags
* @param string $input text to trim
* @param int $length maximum number of characters allowed
* @param bool $ellipses if ellipses (...) are to be added
* @param bool $strip_html if html tags are to be stripped
* @return string
*/
function trim_better($input, $length, $ellipses = true, $strip_html = true) {
//strip tags, if desired