Skip to content

Instantly share code, notes, and snippets.

View avisser's full-sized avatar

Andy Visser avisser

View GitHub Profile
@avisser
avisser / blah.json
Created December 20, 2012 19:02
sample stream provider
{"sv_autoDisplayGracePeriodSeconds": 5, "sv_moreData": false, "sv_streamEntries": [
{
"se_id": "bb-announcement1350573068000",
"se_context": "<span class = 'announcementType'>System Announcement<\/span><span class = 'announcementTitle'>login announcement test\r\n<span class=\"contextMenuContainer\" style=\"display: inline;\" bb:menuGeneratorURL=\"\" bb:navItem=\"\" bb:contextParameters=\"\" bb:menuOrder=\"_f13bb54dc81f438f8d328b53668f72a7,act_1350573068000_0_f13bb54dc81f438f8d328b53668f72a7,\" bb:overwriteNavItems=\"\" bb:beforeShowFunc=\"\">\r\n <a id=\"cmlink_f13bb54dc81f438f8d328b53668f72a7\" onfocus=\"page.ContextMenu.LI(event, 'cmdiv_f13bb54dc81f438f8d328b53668f72a7',false);\" onmouseover=\"page.ContextMenu.LI(event, 'cmdiv_f13bb54dc81f438f8d328b53668f72a7',false);\" class=\"cmimg editmode jsInit\" href=\"#contextMenu\" title=\"menu\"><img src=\"/images/ci/icons/cmlink_generic.gif\" alt=\"menu\"><\/a> \r\n <div id=\"cmdiv_f13bb54dc81f438f8d328b53668f72a7\" class=\"cmdiv\" style=\"display: non
@avisser
avisser / blah.md
Created January 16, 2013 21:16
showing a MarkedApp bug
  1. Order me
  • unorder me
  • and me
  • and me
@avisser
avisser / emergency.js
Created March 8, 2013 01:58
emergency.js
{
apiVersion: "1",
swaggerVersion: "1.1",
basePath: "https://vm.medu.com:443",
apis: [
{
path: "/api/emergency/numbers.{format}",
description: "tc_api_central_emergency API",
operations: [
{
(avisser@visbook-air) ~/source/connect-rest/ $> curl -i -d [email protected] -d password=Bl@ckb0ard "https://selenium1.mymosaic.com/login/index"
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Tue, 16 Apr 2013 18:26:54 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.21
Set-Cookie: PHPSESSID=qlrsdsmdqkb5dpb50vks6i30b5; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
@avisser
avisser / post.json
Created May 7, 2013 04:29
POST response
{ id: 123 }
@avisser
avisser / keybase.md
Created February 15, 2015 20:26
keybase.md

Keybase proof

I hereby claim:

  • I am avisser on github.
  • I am visser (https://keybase.io/visser) on keybase.
  • I have a public key whose fingerprint is 3B30 3984 6A40 33AE C481 57D7 9DB1 6FAC CAA1 01ED

To claim this, I am signing this object:

var toastTypes = new[] { "success", "error", "info", "warning" };
foreach (var type in toastTypes)
{
if (TempData.ContainsKey(type))
{
string message = (string)TempData[type];
string title = null;
if (TempData.ContainsKey("title"))
{
title = (string)TempData["title"];
public class Configuration : DbMigrationsConfiguration<SpecReach.Models.SpecContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
}
protected override void Seed(SpecReach.Models.SpecContext context)
{
// This method will be called after migrating to the latest version.

The ClientDb API is a C# project that abstracts access to the DMP

  • [[Synchronization Strategies]]
  • Use Cases
  • [Use Cases](ClientDbAPI.Use Cases)
  • [[Use Cases]]

API Objects

  • [[Company Object]]
CREATE VIEW [dbo].[vInteractionScranton]
AS
SELECT InteractionTable.InteractionScrantonID, InteractionTable.EntityID, InteractionTable.GrpID, dbo.Grp.Grp, InteractionTable.ContactName, InteractionTable.InteractionDate,
InteractionTable.TacticID, dbo.Tactic.Tactic, InteractionTable.ResponseTypeID, dbo.ResponseType.ResponseType, InteractionTable.CallDispositionID,
dbo.CallDisposition.CallDisposition, InteractionTable.Note, InteractionTable.EmailRead, InteractionTable.CampaignRemovalReasonID,
InteractionTable.NoInterestReasonID, InteractionTable.LeadTypeID, InteractionTable.PurchaseTimeFrame, InteractionTable.FollowUpActionID,
InteractionTable.SizeOfOpportunity, InteractionTable.DiscussionTopicID, dbo.DiscussionTopic.DiscussionTopic, InteractionTable.NoContactReasonID,
dbo.NoContactReason.NoContactReason, InteractionTable.SpokenToID, dbo.SpokenTo.SpokenTo, InteractionTable.NotVerifiedID, dbo.Not