| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <meta-runner name="Meta (CaioProiete): Initialize build and set custom parameters"> | |
| <description>Initialize the build and set the value of some custom parameters that can be used during the build, such as version, timestamp, and others</description> | |
| <settings> | |
| <parameters> | |
| <param name="mr.initialize_build.releaseBranch" value="%build.releaseBranch%" spec="text label='Release Branch:' description='The name of the branch from where production releases are generated' display='normal' validationMode='not_empty'" /> | |
| <param name="mr.initialize_build.verbose" value="SilentlyContinue" spec="checkbox checkedValue='Continue' description='Log verbose messages?' display='normal' label='Verbose:' uncheckedValue='SilentlyContinue'" /> | |
| </parameters> | |
| <build-runners> | |
| <runner name="Initialize build and set custom parameters" type="jetbrains_powershell"> |
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
| function Bump-Version | |
| { | |
| param([string]$part = $(throw "Part is a required parameter.")) | |
| $version = Get-AssemblyInfoVersion -Directory ..\Source -GlobalAssemblyInfo $true | |
| $bumpedVersion = Clone-Object -Object $version | |
| switch -wildcard ($part) | |
| { | |
| "ma*" { $bumpedVersion.Major = Bump-NumericVersion -Current $version.Major } |
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
| namespace ConsoleApplication1 | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Net; | |
| using System.Security.Principal; | |
| using Microsoft.Owin.Hosting; | |
| using Nancy; | |
| using Owin; |
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
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
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
| function XmlDocTransform($xml, $xdt, $output) | |
| { | |
| if (!$xml -or !(Test-Path -path $xml -PathType Leaf)) { | |
| throw "File not found. $xml"; | |
| } | |
| if (!$xdt -or !(Test-Path -path $xdt -PathType Leaf)) { | |
| throw "File not found. $xdt"; | |
| } | |
| $transformDll = "" |
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
| <# | |
| .SYNOPSIS | |
| You can use this script to easly transform any XML file using XDT. | |
| To use this script you can just save it locally and execute it. The script | |
| will download it's dependencies automatically. | |
| #> | |
| [cmdletbinding()] | |
| param( | |
| [Parameter( | |
| Mandatory=$true, |
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
| (function () { | |
| var re_leading_whitespace = /^\s+(?=[^\s])/g, | |
| re_is_whitespace = /^\s*$/, | |
| re_br = /<br ?\/?>/gi, | |
| re_blockquotes_for_html_fix = /^(\s*>)+/gm; | |
| function transform_markdown(html, text) { | |
| var | |
| // leading padding string, if found |
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
| public class HtmlFormatter : MediaTypeFormatter | |
| { | |
| public HtmlFormatter() | |
| { | |
| SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html")); | |
| SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/plain")); | |
| } | |
| protected override bool CanReadType(Type type) | |
| { |
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
| public static class WebApiConfig | |
| { | |
| public static void Register(HttpConfiguration config) | |
| { | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultApi", | |
| routeTemplate: "api/{controller}/{id}", | |
| defaults: new { id = RouteParameter.Optional } | |
| ); |