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
# npm install gulp gulp-util gulp-mocha mocha coffee-script assert | |
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
mocha = require 'gulp-mocha' | |
gulp.task 'test', -> | |
gulp.src('test.coffee').pipe(mocha()).on('error', gutil.log) | |
gulp.task 'default', -> | |
gulp.watch('test.coffee', 'test').on('error', gutil.log) |
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
#!/usr/bin/ruby | |
# http://gist.github.com/gists/876936 | |
filename=ARGV[0] | |
abort "Usage: flac2mp3 FLACFILE" if filename.nil? | |
`metaflac --export-tags-to=- "#{filename}"`.each_line do |s| | |
v=s.strip.split '=', 2 | |
v[0].upcase! | |
v[1].gsub! '"', '\"' |
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
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
if has("mouse") | |
set mouse=a | |
set mousehide | |
endif | |
if has("gui_win32") | |
source $VIMRUNTIME/mswin.vim | |
set guifont=Consolas:h10:cANSI |
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"?> | |
<variants xmlns:xlink="http://www.w3.org/1999/xlink" xlink:base="" query-time="2011-11-09T19:40:48"> | |
<variant xlink:href="variants/78-0-C"> | |
<key>78-0-C</key> | |
<name>Crosstown West to University of Manitoba via Cambridge</name> | |
<description/> | |
<destinations> | |
<destination> | |
<name> University of Manitoba</name> | |
<description/> |
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
17:13:36.706 [ERROR] [org.gradle.BuildExceptionReporter] | |
17:13:36.709 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. | |
17:13:36.710 [ERROR] [org.gradle.BuildExceptionReporter] | |
17:13:36.714 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: | |
17:13:36.715 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':jshint'. | |
17:13:36.716 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find property 'rhino' on configuration container. | |
17:13:36.716 [ERROR] [org.gradle.BuildExceptionReporter] | |
17:13:36.717 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: | |
17:13:36.718 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':jshint'. | |
17:13:36.719 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:68) |
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
C:\Users\bbobby\Code>npm install -g grunt | |
npm http GET https://registry.npmjs.org/grunt | |
npm http 304 https://registry.npmjs.org/grunt | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3 | |
npm http GET https://registry.npmjs.org/glob-whatev | |
npm http GET https://registry.npmjs.org/hooker | |
npm http GET https://registry.npmjs.org/connect | |
npm http GET https://registry.npmjs.org/prompt | |
npm http GET https://registry.npmjs.org/semver |
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
/*package.json | |
{ | |
"volo": { | |
"dependencies": { | |
"jquery": "jquery/jquery" | |
} | |
} | |
} | |
*/ | |
(function (root, factory) { |
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 Source { public string Property { get; set; } } | |
public class Dest { public string Property { get; private set; } } | |
[Fact] | |
public void Wat() | |
{ | |
Mapper.CreateMap<Source, Dest>(); | |
var source = new Source {Property = "foo"}; | |
var dest = Mapper.Map<Dest>(source); | |
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; // R# Namespace Identifier | |
using System.Dynamic; | |
using System.Linq; // R# Dead code | |
using System.Xml.XPath; | |
// Disable various dead code warnings | |
#pragma warning disable 168 | |
#pragma warning disable 219 | |
// ReSharper disable RedundantAssignment | |
// ReSharper disable SuggestUseVarKeywordEvident |
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
Describe 'Mocking Azure Powershell cmdlets' { | |
Mock New-AzureRmResource { Write-Host "Mock invoked" } | |
It 'Does not throw an exception' { | |
New-AzureRmResource -Properties @{} -ResourceId foo | |
} | |
} | |
<# | |
Without running Login-AzureRmAccount: |
OlderNewer