The OS X version does not require any custom fonts, because it uses the built-in emoji and symbol support in OS X.
The Linux version requires that you install Font Awesome.
The OS X version does not require any custom fonts, because it uses the built-in emoji and symbol support in OS X.
The Linux version requires that you install Font Awesome.
# Execute this in Nuget powershell console | |
get-project -all | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug"} | %{ $_.Value = $False } } | |
# |
package main | |
import ( | |
"code.google.com/p/go.net/websocket" | |
//"github.com/garyburd/go-websocket/websocket" | |
//"github.com/zhangpeihao/gowebsocket" | |
"net/http" | |
"net/rpc" | |
"net/rpc/jsonrpc" | |
) |
param( | |
[string]$pattern = "*.*", | |
[ValidateSet("md5", "sha1", "sha256", "sha384", "sha512")]$algorithm = "sha1", | |
[switch]$recurse | |
) | |
[Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null | |
if ($algorithm -eq "sha1") { | |
$hashimpl = new-Object System.Security.Cryptography.SHA1Managed |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Web.Http.Dependencies; | |
using Ninject; | |
using Ninject.Syntax; | |
public class NinjectDependencyScope : IDependencyScope | |
{ | |
private IResolutionRoot resolver; |
# Print all project items | |
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
# Function to format all documents based on https://gist.github.com/984353 | |
function Format-Document { | |
param( | |
[parameter(ValueFromPipelineByPropertyName = $true)] | |
[string[]]$ProjectName | |
) | |
Process { |
// Open up the NuGet Package Manager in Visual Studio and paste the following line to format every file in the solution. | |
// I'll write a not-so-ugly version later. ;) | |
// BUG! This doesn't recursively grab all files from the project. :( | |
$dte.Solution.Projects | ForEach-Object {$_.ProjectItems | ForEach-Object { if ($_.Name.EndsWith('.cs')) {$window = $_.Open('{7651A701-06E5-11D1-8EBD-00A0C90F26EA}'); if ($window){Write-Host $_.Name;[System.Threading.Thread]::Sleep(100);$window.Activate();$_.Document.DTE.ExecuteCommand('Edit.FormatDocument');$_.Document.DTE.ExecuteCommand('Edit.RemoveAndSort');$window.Close(1);}} }} |