As configured in my dotfiles.
start new:
tmux
start new with session name:
| //Example of a model that won't work with the current JsonValueProviderFactory but will work with JsonDotNetValueProviderFactory | |
| public class CmsViewModel | |
| { | |
| public bool IsVisible { get; set; } | |
| public string Content { get; set; } | |
| public DateTime Modified { get; set; } | |
| public DateTime Created { get; set; } | |
| //This property will not work with the current JsonValueProviderFactory | |
| public dynamic UserDefined { get; set; } | |
| } |
| // {{compare unicorns ponies operator="<"}} | |
| // I knew it, unicorns are just low-quality ponies! | |
| // {{/compare}} | |
| // | |
| // (defaults to == if operator omitted) | |
| // | |
| // {{equal unicorns ponies }} | |
| // That's amazing, unicorns are actually undercover ponies | |
| // {{/equal}} | |
| // (from http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates/) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env ruby | |
| require "webrick" | |
| =begin | |
| WEBrick is a Ruby library that makes it easy to build an HTTP server with Ruby. | |
| It comes with most installations of Ruby by default (it’s part of the standard library), | |
| so you can usually create a basic web/HTTP server with only several lines of code. | |
| The following code creates a generic WEBrick server on the local machine on port 1234, |
| ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start" |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| ' | |
| ' ASP/VBScript Dynamic Object Generator | |
| ' Author: WangYe | |
| ' For more information please visit | |
| ' http://wangye.org/ | |
| ' This code is distributed under the BSD license | |
| ' | |
| ' UPDATE: | |
| ' 2012/11/7 | |
| ' 1. Add variable key validator. |
| <Project DefaultTargets="CopyOutputs;DeployService" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
| <!-- These settings control what the service's name, description etc appear in services.msc task panel. --> | |
| <PropertyGroup Label="ServiceMetaData"> | |
| <ServiceName>ShinyNewService</ServiceName> | |
| <ServiceDisplayName>Shiny New Service</ServiceDisplayName> | |
| <ServiceDescription>A shiny new service, that changes the world for the greater good.</ServiceDescription> | |
| </PropertyGroup> | |
| <Choose> |
| [mergetool] | |
| prompt = false | |
| keepBackup = false | |
| keepTemporaries = false | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| name = WinMerge |