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
$credential = $Host.ui.PromptForCredential("Need your domain account credentials", "Please enter your domain user name and password", $null, "NetBiosUserName") | |
# use -Credential $credential for some of the powershell commandlets. Copy-Item takes in this param but can't use it. |
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
/// <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) | |
{ |
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
language: node_js | |
node_js: | |
- "stable" | |
env: | |
global: | |
- DISPLAY=:99.0 | |
- FIREFOX_BIN=./firefox/firefox | |
- JPM_FIREFOX_BINARY=./firefox/firefox | |
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
function removeHangoutsLink(hangoutsLink) | |
{ | |
var hangoutsSpan = hangoutsLink.parentNode; | |
while (hangoutsLink.firstChild) hangoutsSpan.parentNode.insertBefore(hangoutsLink.firstChild, hangoutsSpan); | |
hangoutsSpan.parentNode.removeChild(hangoutsSpan); | |
} | |
var hangoutLinkOrLinks = $('a[href*="hangouts.google.com"]'); | |
if (Array.isArray(hangoutLinkOrLinks)) hangoutLinkOrLinks.each(removeHangoutsLink); | |
else removeHangoutsLink(hangoutLinkOrLinks); |
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
/*jshint moz: true, undef: true, unused: true */ | |
/*global ctypes, require, console, exports */ | |
let { Cu } = require('chrome'); | |
let { setTimeout } = require('sdk/timers'); | |
Cu.import('resource://gre/modules/ctypes.jsm'); | |
var objc = ctypes.open(ctypes.libraryName('objc')); | |
var is64bit = ctypes.voidptr_t.size == 4 ? false : true; |
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
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'), { |
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
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(); |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<OutputWebroot>$(TargetDir)</OutputWebroot> | |
</PropertyGroup> | |
<ItemGroup> | |
<gruntInputs Include="Gruntfile.js"/> | |
<gruntInputs Include="app/**/*.js"/> | |
<gruntInputs Include="app/**/*.html"/> | |
<gruntInputs Include="content/**/*"/> |
NewerOlder