Skip to content

Instantly share code, notes, and snippets.

View cpoDesign's full-sized avatar

Pavel cpoDesign

View GitHub Profile
@jstangroome
jstangroome / Convert-TfsBuildDefinitionToXml.ps1
Created September 29, 2013 00:01
Serialize a TFS 2012 Build Definition as XML to be version controlled
[CmdletBinding()]
param (
$CollectionUri,
$ProjectName
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
Add-Type -AssemblyName 'Microsoft.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
@cpoDesign
cpoDesign / example1.js
Last active August 29, 2015 14:02
using $resource in examples
// service with parameters
// How do I not send url template parameters with request body in angular?
// Source: http://stackoverflow.com/questions/19529483/how-do-i-not-send-url-template-parameters-with-request-body-in-angular
resource = $resource(
'http://foo.com/service/:type/:id',
{},
{save: {
method:'PUT',
transformRequest:function(data) {
delete data.type;