Skip to content

Instantly share code, notes, and snippets.

Carlin Scott carlin-q-scott

Block or report user

Report or block carlin-q-scott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ActionFluentAssertions.cs
/// <summary>
/// Note that if this is the end of your assertion chain then append () or .Invoke() to the end
/// </summary>
/// <param name="action"></param>
/// <param name="time"></param>
/// <param name="precision"></param>
/// <returns></returns>
public static Action ShouldTakeCloseTo(this Action action, TimeSpan time)
carlin-q-scott / .travis.yml
Created Feb 9, 2017
travis-ci build for firefox add-ons
View .travis.yml
language: node_js
- "stable"
- DISPLAY=:99.0
- FIREFOX_BIN=./firefox/firefox
- JPM_FIREFOX_BINARY=./firefox/firefox
carlin-q-scott / remove-google-hangouts-links.js
Last active Feb 4, 2017
WIP: This will remove Google Hangouts links from Google pages so that you can use your own dialer
View remove-google-hangouts-links.js
carlin-q-scott / keycodeCaptor.js
Last active Jun 28, 2016
Detect Media Key events on MacOSX
View keycodeCaptor.js
/*jshint moz: true, undef: true, unused: true */
/*global ctypes, require, console, exports */
let { Cu } = require('chrome');
let { setTimeout } = require('sdk/timers');
var objc ='objc'));
var is64bit = ctypes.voidptr_t.size == 4 ? false : true;
carlin-q-scott / pandora-next-track.js
Last active Apr 14, 2016
Method for notifying user of new tracks on
View pandora-next-track.js
function notifyNewTrack(mutation){
new Notification("Now Playing", {
body: document.querySelector('.trackData').innerText
Notification.requestPermission() //normally you'd handle the response and accept rejection but whatev's.
var currentTrackObserver = new MutationObserver(notifyNewTrack)
currentTrackObserver.observe(document.querySelector('#trackInfoContainer'), {
carlin-q-scott / ReferenceResolverWithNames.cs
Last active Aug 7, 2019
A JSON.Net IReferenceResolver that resolves field references using a Name property if available, otherwise it uses an index
View ReferenceResolverWithNames.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Serialization;
namespace MyNewtonsoftExtensions
public class ReferenceResolverWithNames : IReferenceResolver
private readonly ReferenceCollection _collection = new ReferenceCollection();
View Node.targets
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="">
<gruntInputs Include="Gruntfile.js"/>
<gruntInputs Include="app/**/*.js"/>
<gruntInputs Include="app/**/*.html"/>
<gruntInputs Include="content/**/*"/>
You can’t perform that action at this time.