$ git log <source_branch>..<feature_branch> --oneline | tail -1
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.Linq; | |
public static class EnumerablePartitionExtensions{ | |
/// <summary> | |
/// Generate lazy partitions for enumerable | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <param name="items">source items to create partitions from</param> |
- Install zsh from cygwin
- Install oh-my-zsh from https://github.com/robbyrussell/oh-my-zsh . Follow the manual instructions
- To make zsh default on ConEmu, create a task with
C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
. Make it the defaut shell. - To start a zsh shell on demand, add this batch script to your path or start menu or wherever.
start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
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
Split-Path -parent $dte.Solution.FileName | cd | |
New-Item -ItemType Directory -Force -Path ".\licenses" | |
@( Get-Project -All | ? { $_.ProjectName } | % { Get-Package -ProjectName $_.ProjectName } ) | Sort -Unique Id | % { $pkg = $_ ; Try { (New-Object System.Net.WebClient).DownloadFile($pkg.LicenseUrl, (Join-Path (pwd) 'licenses\') + $pkg.Id + ".html") } Catch [system.exception] { Write-Host "Could not download license for $($pkg.Id)" } } |
The intention of this document is to explore patterns of communication between can components and discuss possible improvements and newer patterns.
We should aim for:
- Making common scenarios easier
- Establishing best practices and canonical patterns
- Having as little surprise as possible, it should be clear from looking at the code exactly what the intention is
- Aligning with future standards, specifically try to align with web components as much as possible
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
# to add a new Git credential to the Credential Manager: | |
cmdkey /generic:LegacyGeneric:target=git:https://github.com /user:username /pass:"mypassword" | |
# to list all credentials: | |
cmdkey /list |
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
# To Setup: | |
# 1) Save the .git-completion.bash file found here: | |
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect: | |
# Git branch bash completion | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
# Add git completion to aliases |
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
module.directive('staticInclude', ["$http", "$templateCache", "$compile", "$parse",function($http, $templateCache, $compile, $parse) { | |
return function(scope, element, attrs) { | |
var templatePath = $parse(attrs.staticInclude)(scope); | |
attrs.$observe("staticInclude", function(value){ | |
scope.$watch(value, function(templatePath){ | |
loadTemplate(templatePath); | |
}); |
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
<!DOCTYPE html> | |
<head> | |
<!-- CSS | |
================================================== --> | |
<style> | |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; |
NewerOlder