Skip to content

Instantly share code, notes, and snippets.

View mbiang's full-sized avatar

Mike Biang mbiang

  • FullStack
  • Madison, WI
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mbiang on github.
  • I am mbiang (https://keybase.io/mbiang) on keybase.
  • I have a public key ASDAHtc7Lwr4NiX3sBp6vvXcvIbtRtgS9oZtxjJG_eeqfgo

To claim this, I am signing this object:

@mbiang
mbiang / contactform.asp
Created August 27, 2014 14:39
Foster Group Contact Form
<!--#include file="../../includes/vbscripts/generalfunctions.asp" -->
<!--#include file="../../includes/classes/email.asp" -->
<!--#include file="../../includes/classes/validator.asp" -->
<%
' Get the http referrer without the query string
Function Referrer
Set rxp = new RegExp
rxp.Global = False
rxp.Pattern = "\?.*$"
Referrer = rxp.Replace(Request.ServerVariables("HTTP_REFERER"), "")
@mbiang
mbiang / gist:6294422
Created August 21, 2013 13:25
Output from /round_planner endpoint
{
"upcoming_rounds": [],
"past_rounds": [{
"course_name": "Lafayette Elks",
"starts_at": "2013-08-21T13:05:04Z",
"completed": false,
"has_new_responses": false,
"hole_to_start_with": 1,
"_links": {
"self": {
@mbiang
mbiang / gist:4321463
Created December 17, 2012 19:55
UpCity Crontab
0 5 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/deliver_daily_report_card_report.sh"
10,30,50 * * * * /home/diyseo/diyseo/current/script/upcity_runner "sh script/fix_report_cards.sh"
15 */6 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/deliver_dashboard_emails.sh"
20 6 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/deliver_thank_you_emails.sh"
25 6 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/deliver_missing_domain_reminder_emails.sh"
30 6 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/deliver_seo_progress_reports.sh"
0 0 * * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/apptegic/checked_tasks_kpi.sh"
0 1 1 * * /usr/local/bin/ruby /home/diyseo/diyseo/current/script/upcity_runner "sh script/apptegic/back_link_count_kpi.sh"
0 2 * * 0 /usr/local/bin/ruby /home/diyseo/diyseo/curre
@mbiang
mbiang / big_query.sql
Created August 15, 2012 18:09
New Big Query
SELECT SQL_NO_CACHE DISTINCT concat(products.sName, ' ', product_variations.sName) AS title, product_variations.sProductNumber AS id, products.iProductID AS iProductID, product_variations.iVariationID AS iVariationID, product_variations.fWeight AS weight, product_variations.upc AS upc, product_variations.mpn AS mpn, product_availabilities.sFeedAvailability AS availability, products.sFriendlyName AS link, image_links.iImageID AS image_link, products.sDescription AS description, products.sMoreInfo AS more_info, pvp1.dPrice AS price, 'US::Ground:6.99,US::2nd Day:14.99,US::Next Day:19.99' AS shipping, 'Visa, MasterCard, AmericanExpress, Discover' AS payment_accepted, 'pet supplies' AS product_type, manufacturers.sName AS primary_manufacturer, products.bPrescription AS prescription, products.bCompound AS compound, products.bClassIV AS classiv
FROM product_variations INNER JOIN products ON products.iProductID = product_variations.iProductID INNER JOIN product_availabilities ON product_variations.iAvailabilityID =
@mbiang
mbiang / 49.json
Created June 26, 2012 19:54
Local Report Card Output - Smiley in Google Rank
{
"complete":false,
"letter_grade":null,
"local_directory_listings":{
"google_places":{
"url":"https://plus.google.com/102658466942690664690/about?hl=en-US",
"listing_found":true,
"listing_detail":"\n <strong>Greyhouse Coffee & Supply Co.</strong><br>\n 100 Northwestern Avenue<br>\n West Lafayette, <strong>Tippecanoe</strong> <strong>US</strong><br>\n (765) 743-5316\n ",
"listing_matched":false
},
@mbiang
mbiang / gist:2577052
Created May 2, 2012 14:40
Medical Billing and Coding - Comparison Setup Script
<link href="http://cdapps.collegedegrees.com/publisher/medicalbillingandcoding/style.css" media="screen" rel="stylesheet" type="text/css" />
<script
async
data-ridley-publisher="v4FLtix4YMsLzYrqjpsh"
data-ridley-container=".ridleyApp"
data-ridley-result-columns="
cost,
degree_levels,
credits_required
"