This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomRequiredPermissionAttribute : RequestFilterAttribute, IApiResponseAttribute | |
{ | |
public List<string> RequiredPermissions { get; set; } | |
private string permissionsDesc | |
{ | |
get | |
{ | |
return "Required Permissions: {0}".FormatUsing(string.Join(",", RequiredPermissions)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Directions for use: | |
# Import this script using the Import-Module cmdlet | |
# On PoshCode at http://poshcode.org/5486 (modified from the original http://poshcode.org/3927) | |
# All output is logged to the backup directory in the $($BackupDriveLetter):\VMBackup\Backup-VMs.log file | |
# Use the Backup-VMs cmdlet to begin the process | |
# Parameter BackupDriveLetter indicates the drive to put this backup onto. It must be mounted to the host running the script. | |
# Parameter VMHost defines the host that contains the VMs you want to back up. If it's blank, then it just targets the host the script is running on | |
# Parameter VMNames defines the specific VMs you wish to backup, otherwise it'll back up all of them on the target host | |
# Switch parameter ShutHostDownWhenFinished will cause the specified host (and any VMs running on it) to shut down upon completion of the backup | |
# Example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
datascrubber.py | |
Quick and dirty script to pull the data from google spreadsheet into the GameTracker database | |
Inserts players (manually identified), games, and all sessions | |
""" | |
import csv | |
import sys | |
import itertools | |
from collections import defaultdict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name V1 Copy Trello Template Board | |
// @namespace Anamespace | |
// @include https://www8.v1host.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
// @require http://courses.ischool.berkeley.edu/i290-4/f09/resources/gm_jq_xhr.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @require https://api.trello.com/1/client.js?key=368dd97b50bf7c0f425deae164ff4384 | |
// @require https://raw.githubusercontent.com/alexei/sprintf.js/master/dist/sprintf.min.js | |
// @version 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TaskerData dvi="1" sr="" tv="4.8u1m"> | |
<Profile sr="prof3" ve="2"> | |
<cdate>1460962844383</cdate> | |
<edate>1461822396172</edate> | |
<id>3</id> | |
<mid0>2</mid0> | |
<nme>BGG Voice Rank</nme> | |
<State sr="con0" ve="2"> | |
<code>20126</code> | |
<Bundle sr="arg0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SemanticTests | |
{ | |
public class Foo | |
{ | |
public int Bar { get; set; } | |
public string Baz { get; set; } | |
} | |
public class FooDto | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name UberConference Hide Mutes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide the mute and unmute notifications that flood the chat | |
// @author Brian Pruitt-Goddard | |
// @match https://www.uberconference.com/* | |
// @grant none | |
// @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('5 Tribes', 157354, 'competitive', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('7 Wonders', null, 'competitive', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('7 Wonders Duel', null, 'competitive', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('7th Continent', null, 'cooperative', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('A Touch of Evil: the Supernatural Game', 35815, 'mixed', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('Agricola', null, 'competitive ', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, updated_at) VALUES ('Alchemists', null, 'competitive ', NOW(), NOW()); | |
INSERT INTO public.games (Name, bgg_id, game_type, created_at, u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CF Show FileIds In Search | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Show FAST File Id In search results | |
// @author Brian Pruitt-Goddard | |
// @match https://dev.ncwp.firstam.net/search/* | |
// @grant none | |
// @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http'); | |
const hostname = '127.0.0.1'; | |
const port = 54499; | |
const server = http.createServer((req, res) => { | |
// GET is for retrieving file index | |
if (req.method === 'GET') | |
{ | |
res.statusCode = 404; |
OlderNewer