Skip to content

Instantly share code, notes, and snippets.

View BMeyerKC's full-sized avatar

Brandon Meyer BMeyerKC

  • Kansas City, USA
View GitHub Profile
@BMeyerKC
BMeyerKC / entertainingsql.sql
Created September 28, 2018 17:52
Entertaining SQL Scripts
-- Shows the tables by file size on a database
select
sum(reserved_page_count) * 8.0 / 1024
from
sys.dm_db_partition_stats
GO
select
sys.objects.name, sum(reserved_page_count) * 8.0 / 1024
<!--
In Vue, we use v-model for all form bindings, while
Knockout maintains separate binding types, such as
textInput, checked, and options. In some cases,
such as for an input of type "range", Knockout
simply doesn't have an equivalent two-way binding
helper and the more verbose value and valueUpdate
must be used.
-->
<div id="app">
using RealityLeague.Attributes;
using RestSharp;
using RLLib.Facade;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
@BMeyerKC
BMeyerKC / MessageShed.cs
Last active February 25, 2016 15:26
This is might little helper for Azure Queue Storage. Allows me to make and retrieve a queue based on class name
using Easy203k.Repo;
using System.Configuration;
using Microsoft.WindowsAzure.Storage.Queue;
namespace Easy203k.Shed
{
public class MessageShed : BaseShed
{
CloudQueueClient queueClient;
@BMeyerKC
BMeyerKC / gist:5120862
Last active December 14, 2015 17:18
Recursive function call that speeds up. Using Meteor template events.
Meteor.startup(function () {
$(function(){
$(document).on("mouseup", function (){
clearTimeout(pointsTimer);
});
});
// code to run on client at startup
});
var pointsTimer, pointsPlayer, timerStart, addTimer;
@BMeyerKC
BMeyerKC / example.html
Last active December 12, 2015 18:49 — forked from edersohe/example.html
Vertical Button Set for jQuery UI
<html>
<head>
<title>Test</title>
<link rel="stylesheet" media="all" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/start/jquery-ui.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js"></script>
<script src="jquery.buttonsetv.js"></script>
<script>
$(document).ready(function(){
//call plugin