Skip to content

Instantly share code, notes, and snippets.

View igorkulman's full-sized avatar

Igor Kulman igorkulman

View GitHub Profile
Get-ChildItem D:\Projects\Apps | ForEach-Object {
cd $_.FullName
git push
}
protected override void RequestStartup(TinyIoCContainer container, IPipelines pipelines, NancyContext context)
{
base.RequestStartup(container, pipelines, context);
var formsAuthConfiguration =
new FormsAuthenticationConfiguration()
{
DisableRedirect = true,
UserMapper = container.Resolve<IUserMapper>()
};
pi@raspberrypi ~ $ cd
pi@raspberrypi ~ $ git clone https://github.com/smn8600/privoxy-adblock.git
pi@raspberrypi ~ $ cd privoxy-adblock/
/// <summary>
/// Helper class for showing message dialogs
/// </summary>
public static class DialogHelper
{
/// <summary>
/// Shows a dialog with given message and ok/cancel buttons.
/// </summary>
/// <param name="message">Message</param>
/// <param name="title">Title</param>
<controls:PivotItem.Header>
<TextBlock Text="{Binding}" Foreground="{StaticResource PhoneAccentBrush}"/>
</controls:PivotItem.Header>
#if WINDOWS_PHONE_APP
frame.ContentTransitions = null;
frame.Navigated += (s, e) =>
{
if (e.SourcePageType != typeof (SplashScreenView))
{
var rootFrame = s as Frame;
rootFrame.ContentTransitions = new TransitionCollection() {new NavigationThemeTransition()};
rootFrame.Navigated -= this.RootFrame_FirstNavigated;
}
Task<T> Get<T>(string url);
Task<T> Put<T>(string url, object request);
Task<T> Post<T>(string url, object request);
Task<T> Patch<T>(string url, object request);
Task Delete(string url);
var device = WURFLManagerBuilder.Instance.GetDeviceForRequest(context.Request.UserAgent);
var isTablet = Boolean.Parse(device.GetCapability("is_tablet"));
var isMobileDevice = Boolean.Parse(device.GetCapability("is_smartphone"));
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class PerRequestAttribute : Attribute
{
}
git svn clone svn-repo-url