Skip to content

Instantly share code, notes, and snippets.

View wurmr's full-sized avatar
💭
🚀

Jim Karg wurmr

💭
🚀
View GitHub Profile
@wurmr
wurmr / cleanBranch.ps1
Last active December 18, 2015 12:28
Powershell Script for Team City to extract a clean branch name for a repo using git flow
$long_branch_name = "%teamcity.build.branch%"
# Branch Name
if ($long_branch_name.Contains("develop") -or $long_branch_name.Contains("feature"))
{
$clean_branch_name = $long_branch_name.Substring($long_branch_name.LastIndexOf('/') + 1)
"##teamcity[setParameter name='Branch Name' value='-$clean_branch_name']"
}
else
{
@wurmr
wurmr / gist:5784313
Created June 14, 2013 18:55
Example MVC4 Gravatar.com icon support
<img src="@String.Format("//www.gravatar.com/avatar/{0}?s=35", FormsAuthentication.HashPasswordForStoringInConfigFile(Membership.GetUser().Email.ToLower(), "MD5").ToLower())" />
@wurmr
wurmr / dev_list.md
Last active December 19, 2015 11:59 — forked from pedrotcaraujo/dev_list.md
@wurmr
wurmr / Index.cshtml
Created September 17, 2013 16:05
Relative Link fix in MVC Durandaljs template
<script type="text/javascript" src="~/Scripts/require.js" data-main="@Url.Content("~/App/main")"></script>
@wurmr
wurmr / Basic
Last active August 29, 2015 13:56
Boxstarter.DevMachine
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
cinst GoogleChrome
cinst atom
cinst SourceTree
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Atlassian\SourceTree\SourceTree.exe"
function Get-MSWebDeployInstallPath()
{
return (get-childitem "HKLM:\SOFTWARE\Microsoft\IIS Extensions\MSDeploy" | Select -last 1).GetValue("InstallPath")
}
function Load-Configuration
{
$webDeploy = Get-MSWebDeployInstallPath
$env:Path += (";" + $webDeploy)
}
@wurmr
wurmr / index.html
Created May 13, 2014 20:12
A Pen by Jim Karg.
<div class='box'>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolor
</div>
@wurmr
wurmr / Text-Overflow.markdown
Created May 13, 2014 20:20
A Pen by Jim Karg.

Basic angular ng-change example

Showing off ng-change to react to a input box being updated

A Pen by Jim Karg on CodePen.

License.

@wurmr
wurmr / 0_reuse_code.js
Created May 20, 2014 13:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console