Once you have singed up, from the main Components screen, click Add Component, Starter Kits,
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(){ | |
if (typeof String.prototype.startsWith != 'function') { | |
String.prototype.startsWith = function (str){ | |
return this.slice(0, str.length) == str; | |
}; | |
} | |
if (typeof String.prototype.endsWith != 'function') { | |
String.prototype.endsWith = function (str){ | |
return this.slice(this.length - str.length, this.length) == str; |
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
# Simple manifest | |
# by vkhomenko | |
# | |
# We want to create VM, and run bash command on it. | |
# We need 2 steps: provision (ask amazon to launch instance) and run-command. | |
# To define order for our steps, we use "phase - precedingPhases". precedingPhases means we shall wait until phases listed there finished. | |
# Also, after starting node, we need a way to access it. Adding roleName, we adds our node to pool, named "computes-pool". | |
# Parameter "roles", passed to execrun, tells where to execute command. Right now it's just one node. | |
launch: |
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
launch: | |
parameters: | |
- ip: | |
description: static ip address | |
default: "" | |
steps: | |
- grow: | |
action: provisionAmazonVm | |
parameters: | |
phase: provision |
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
// Single error. | |
{ | |
error: "a is bad" | |
} | |
// Single detailed error. | |
{ | |
error: { | |
message : 'a is bad', | |
text : 'a is bad because of ...', |
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
launch: | |
steps: [] | |
destroy: | |
steps: [] | |
scale-up: | |
steps: [] | |
scale-down: |
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
import com.novus.salat._ | |
import com.novus.salat.global._ | |
import com.mongodb.casbah.Imports._ | |
import com.novus.salat.annotations._ | |
case class KeyValuePair[K, V](key: K, value: V) | |
object DaoMap { | |
implicit def toDaoMap[K, V](map: Map[K, V]): Seq[KeyValuePair[K, V]] = { | |
//TODO handle nested maps |
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
launch: | |
parameters: | |
appPrefix: | |
description: Web application prefix (edited)x | |
default: myApp | |
accessKey: | |
description: AWS Access Key | |
secretKey: | |
description: AWS Secret Key | |
steps: |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
private static TaxRate[] _entries = new TaxRate[] |
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
public class ForLoop | |
{ | |
private int[] _indices; | |
private int[] _boundaries; | |
private Action<int[]> _action; | |
public ForLoop(int[] indices, int[] bondaries, Action<int[]> action) | |
{ | |
_indices = indices; | |
_boundaries = bondaries; |