- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
$.expr[':'].internal = function (obj, index, meta, stack) { | |
var $this = $(obj); | |
var url = $this.attr('href') || ''; | |
var isInternalLink; | |
// Check link | |
isInternalLink = url.substring(0, rootUrl.length) === rootUrl || (/[^\:]/).test(url); | |
// Ignore or Keep | |
return isInternalLink; |
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
{ | |
item: { | |
name: [ { value: "Bank", locale: "en-US" }, { value: "Bank", locale: "nl-NL" } ] | |
} | |
}, | |
{ | |
item: { | |
name: [ { value: "Couch", locale: "en-US" }, { value: "Bank", locale: "nl-NL" } ] | |
} | |
} |
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
// ReSharper disable CheckNamespace | |
namespace RestSharp.Deserializers | |
// ReSharper restore CheckNamespace | |
{ | |
public class DynamicJsonDeserializer : IDeserializer | |
{ | |
public string RootElement { get; set; } | |
public string Namespace { get; set; } | |
public string DateFormat { get; set; } |
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 static string ToPublicUrl(this UrlHelper urlHelper, Uri relativeUri) | |
{ | |
var httpContext = urlHelper.RequestContext.HttpContext; | |
var uriBuilder = new UriBuilder | |
{ | |
Host = httpContext.Request.Url.Host, | |
Path = "/", | |
Port = 80, | |
Scheme = "http", |
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.IO; | |
using System.Net; | |
using System.Net.Http.Formatting; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace Global.Serialization |
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
private static void RegisterScripts(BundleCollection bundles) | |
{ | |
bundles.Add(new Bundle("~/assets/scripts", new JsTransformer(new List { new TypeScriptTranslator() })) | |
.Include("~/Scripts/path/to/your.ts")); | |
} |
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
namespace System | |
{ | |
public static class ObjectExtensions | |
{ | |
public static bool IsNull(this object obj) | |
{ | |
return obj == null; | |
} | |
public static bool IsNotNull(this object obj) |
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
[merge] | |
keepBackup = false; | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false |
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
namespace BenjiiMe.Animation | |
{ | |
public class ContinuumTransition : TransitionElement | |
{ | |
public const string ContinuumElementPropertyName = "ContinuumElement"; | |
public const string ContinuumModePropertyName = "Mode"; | |
public FrameworkElement ContinuumElement | |
{ | |
get { return (FrameworkElement)GetValue(ContinuumElementProperty); } |
OlderNewer