Skip to content

Instantly share code, notes, and snippets.

View anaisbetts's full-sized avatar

Ani Betts anaisbetts

View GitHub Profile
paul@jupiter:~/GitHub/OmgSekrit% mono --version
Mono JIT compiler version 2.11 (tarball Thu Mar 22 13:13:23 EDT 2012)
Copyright (C) 2002-2011 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: debugger softdebug
LLVM: yes(3.1svn-mono)
This file has been truncated, but you can view the full file.
.assembly extern mscorlib
{
.ver 4:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly extern System.Core
{
.ver 4:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
*** IMPORTANT CHANGE IN RESTSHARP VERSION 103 ***
In 103.0, JSON.NET was removed as a dependency.
If this is still installed in your project and no other libraries depend on it
you may remove it from your installed packages.
There is one breaking change: the default Json*Serializer* is no longer
compatible with Json.NET. To use Json.NET for serialization, copy the code
from http://bit.ly/HYsC0y and register it with your client:
public class CredentialHelper
{
static readonly Logger log = LogManager.GetCurrentClassLogger();
Dictionary<string, string> input = new Dictionary<string, string>();
/// <summary>
/// Initialize the Credential Helper with the data read from stdin.
/// This is a key/value list of data like 'host', 'username' and 'password'
/// </summary>
/// <param name="inputArray">An ArrayList of lines read from stdin from the Git process.</param>
internal class CompositeTransform : GeneralTransform
{
TransformGroup inner;
public CompositeTransform()
{
updateInner(this, new DependencyPropertyChangedEventArgs());
}
async Task DeleteFileByPath(string path)
{
var del = await GetFileByPath(path);
await del.DeleteAsync();
}
async Task<StorageFile> GetFileByPath(string path)
{
string[] pathElements = path.Split('\\');
paul@jupiter:~/Desktop/tmep/FunnelWeb% wc -l **/*.cs
89 src/FunnelWeb.Extensions.CommentNotification/CommentPostedListener.cs
13 src/FunnelWeb.Extensions.CommentNotification/Extension.cs
3 src/FunnelWeb.Extensions.CommentNotification/Properties/AssemblyInfo.cs
49 src/FunnelWeb.Tests/Core/Filters/FunnelWebRequestFilterTests.cs
45 src/FunnelWeb.Tests/Core/Repositories/FileRepositoryTests.cs
27 src/FunnelWeb.Tests/DatabaseDeployer/DatabaseModuleTests.cs
138 src/FunnelWeb.Tests/DatabaseDeployer/DatabaseUpgradeDetectorTests.cs
37 src/FunnelWeb.Tests/DatabaseDeployer/FunnelWebScriptProviderTests.cs
16 src/FunnelWeb.Tests/Helpers/ITemporaryDatabase.cs
#!/usr/bin/env ruby
require 'fileutils'
require 'tmpdir'
tmpdir = Dir.mktmpdir
`cd #{tmpdir} && mu mkdir find`
result = `mdfind -onlyin ~/mail #{ARGV[0]}`
exit 1 unless result.length > 10 && $? == 0
public class MyCoolView : UserControl
{
public MyCoolViewModel ViewModel { get; protected set; }
public MyCoolView()
{
ViewModel = new MyCoolViewModel();
InitializeComponent();
@anaisbetts
anaisbetts / gist:2606426
Created May 6, 2012 00:02 — forked from rtomayko/gist:2601550
Open beautiful git-scm.com manual pages w/ git help
# The new git-scm.com site includes man pages designed for pleasant viewing in a web browser:
#
# http://git-scm.com/docs
#
# The commands below can be used to configure git to open these pages when
# using `git help <command>' from the command line. Just enter the config
# commands in your shell to modify your ~/.gitconfig file.
# Create a new browser command and configure help -w to use it.
git config --global browser.gitscm.cmd "/bin/sh -c 'open http://git-scm.com/docs/\$(basename \$1 .html)' --"