Skip to content

Instantly share code, notes, and snippets.

@dasMulli
dasMulli / Directory.Build.targets
Last active February 21, 2022 23:44
CI build script for a mvc + Webpack SPA app
<Project>
<Target Name="NpmInstall" Condition="Exists('package.json')">
<Exec Command="npm install" />
</Target>
<Target Name="NpmCiTest" Condition="Exists('package.json')">
<Exec Command="npm run ci-test" />
<ItemGroup Condition="'$(TestResultsOutputPath)' != ''">
<TestResultFiles Include="obj\karma-testresults\**" />
@davidfowl
davidfowl / dotnetlayout.md
Last active April 24, 2024 18:49
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@gnarf
gnarf / ..git-pr.md
Last active April 12, 2024 22:00
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@rhoot
rhoot / gw2dattools-wrapper.cpp
Created July 13, 2012 20:14
gw2DatTools node.js wrapper
// Copyright (c) 2012 rhoot <https://github.com/rhoot>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
@dennisfrank
dennisfrank / dabblet.css
Created February 6, 2012 17:34
Flexible inline text with background color and large right padding
/**
* Flexible inline text with background color and large right padding
*/
body {
width: 50%;
background: #363532;
}
p {
@baxter
baxter / gist:1089493
Created July 18, 2011 13:21
Emoticons and their meanings

Emoticon explanations

Too many applications provide their own emoticons. This is not acceptable. When I type the following characters this is what I mean.

  • :) – This made me smile.
  • :D – This really made me smile. My mouth is open. Please don't throw things at it.
  • :E – E is one better than D, therefore I just smiled so hard that my face broke.
  • ;) – I said something cheeky and hilarious.
  • :P – I said something that probably wasn't serious.
@poke
poke / SvnDumpToolEdit.py
Created October 8, 2010 01:49
SvnDumpToolEdit: SVN Dump content editor
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
SvnDumpToolEdit: SVN Dump content editor
SvnDumpToolEdit is a small script that allows to change single file nodes
within an SVN dump file. It automatically updates the Content-length attribute
for nodes and generates a new MD5 checksum when a file is changed. This ensures
that the SVN dump will always remain a valid dump file.