Skip to content

Instantly share code, notes, and snippets.

Pavel cpoDesign

Block or report user

Report or block cpoDesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cpoDesign
cpoDesign / example1.js
Last active Aug 29, 2015
using $resource in examples
View example1.js
// 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;
@jstangroome
jstangroome / Convert-TfsBuildDefinitionToXml.ps1
Created Sep 29, 2013
Serialize a TFS 2012 Build Definition as XML to be version controlled
View Convert-TfsBuildDefinitionToXml.ps1
[CmdletBinding()]
param (
$CollectionUri,
$ProjectName
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
Add-Type -AssemblyName 'Microsoft.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
You can’t perform that action at this time.