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
// ES5 | |
move(r(2), function() { | |
move(d(2), function() { | |
move(l(2), function() { | |
move(u(2)); | |
}); | |
}); | |
}); | |
// ES2015 refactor 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
[ | |
{ | |
"id": "json", | |
"title": "Meta JSON", | |
"content": "", | |
"mode": "json", | |
"url": "https:\/\/ec2-54-227-126-9.compute-1.amazonaws.com\/VersionOne\/meta.v1\/Story?accept=application\/json" | |
}, | |
{ | |
"id": "xml", |
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
namespace VersionOne.Arena.Module.ManageBacklog | |
open System.Reflection | |
[<assembly: AssemblyVersion("1.0.0.0")>] | |
[<assembly: AssemblyFileVersion("1.0.0.0")>] | |
do() | |
open VersionOne.Arena.Intrastructure.Web |
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
<?xml version="1.0" encoding="utf-16"?> | |
<BuildCompletionEvent2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<BuildUri>vstfs:///Build/Build/103</BuildUri> | |
<TeamFoundationServerUrl>http://tfs201064:8080/tfs/DefaultCollection</TeamFoundationServerUrl> | |
<Url>http://tfs201064:8080/tfs/web/build.aspx?pcguid=774086bc-c49c-4e0d-860c-98dabdf8523f&builduri=vstfs:///Build/Build/103</Url> | |
<Title>Hello World Build Call Center_20140213.6 succeeded</Title> | |
<TeamProject>Hello World</TeamProject> | |
<AgentPath>TFS201064 - Controller</AgentPath> | |
<DefinitionPath>\Hello World\Call Center</DefinitionPath> | |
<BuildNumber>Call Center_20140213.6</BuildNumber> |
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
number = prompt("What's your guess?"); | |
if (number > 29) { | |
alert("Too high!"); | |
} else if (number < 29) { | |
alert("Too low!"); | |
} else { | |
alert("Correct! The secret number is 29!"); | |
} |
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
# wget https://gist.githubusercontent.com/JogoShugh/a888bb58c8380a47152b/raw/allstuff.sh | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
# Chrome | |
sudo apt-get install google-chrome-stable -y | |
# Sublime |
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
function mongoLabResourceFactory(resourceService, resourcePath, resourceName, apiKey) { | |
var resource = resourceService(resourcePath + '/' + resourceName + '/:id', { | |
apiKey: apiKey | |
}, { | |
update: { | |
method: 'PUT' | |
} | |
}); | |
resource.prototype.update = function (cb) { |
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
$b = [System.Text.Encoding]::UTF8.GetBytes((gc script.ps1)) | |
$script = [System.Convert]::ToBase64String($b) | |
$ami=Get-EC2Image -Owner self -Filters @{ Name="name"; Values="Clarity PPM Pristine Latest" } | select -expand ImageId | |
$resp = New-EC2Instance ` | |
-ImageId $ami ` | |
-MinCount 1 ` | |
-MaxCount 1 ` | |
-InstanceType c3.xlarge ` |
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
library(RCurl) | |
library(jsonlite) | |
#'https://www14.v1host.com/v1sdktesting/query.legacy.v1?query=' -> api | |
'http://54.242.130.237/VersionOne/query.legacy.v1?query=' -> api | |
auth <- 1L | |
'admin:admin' -> creds # Just another way of assigning values to variables! | |
# Get aroud Server-side SSL errors! | |
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))) |
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
param($version) | |
$releases = iwr -UseBasicParsing -Uri https://community.versionone.com/Release-Notes-and-Downloads | |
$releases.Links | % { | |
if ($_.href -and $_.href.IndexOf($version) -gt -1) { | |
$release = iwr -UseBasicParsing -Uri $_.href | |
$release.Links | % { | |
if ($_.title -and $_.title.ToLower() -eq "download enterprise edition") { | |
echo $_.href | |
} |
OlderNewer