This file contains hidden or 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
| Get-ChildItem D:\Projects\Apps | ForEach-Object { | |
| cd $_.FullName | |
| git push | |
| } |
This file contains hidden or 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
| 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>() | |
| }; |
This file contains hidden or 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
| pi@raspberrypi ~ $ cd | |
| pi@raspberrypi ~ $ git clone https://github.com/smn8600/privoxy-adblock.git | |
| pi@raspberrypi ~ $ cd privoxy-adblock/ |
This file contains hidden or 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
| /// <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> |
This file contains hidden or 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
| <controls:PivotItem.Header> | |
| <TextBlock Text="{Binding}" Foreground="{StaticResource PhoneAccentBrush}"/> | |
| </controls:PivotItem.Header> |
This file contains hidden or 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
| #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; | |
| } |
This file contains hidden or 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
| 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); |
This file contains hidden or 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
| var device = WURFLManagerBuilder.Instance.GetDeviceForRequest(context.Request.UserAgent); | |
| var isTablet = Boolean.Parse(device.GetCapability("is_tablet")); | |
| var isMobileDevice = Boolean.Parse(device.GetCapability("is_smartphone")); |
This file contains hidden or 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
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] | |
| public class PerRequestAttribute : Attribute | |
| { | |
| } |
This file contains hidden or 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
| git svn clone svn-repo-url |