This file contains hidden or 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
def get_default_features | |
[ | |
{'name' => 'Feature1', 'enabled' => true}, | |
{'name' => 'Feature2', 'enabled' => true} | |
] | |
end | |
# Param will be in the shape: | |
# {'name': 'FeatureName', 'enabled': true/false} | |
def set_feature(original_feature_set, feature_to_set) |
This file contains hidden or 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
$$('.file-info').forEach(fileInfo => { | |
const trimName = fileInfo.textContent.trim().toLowerCase(); | |
const excludeSuffixes = ['.csproj', 'packages.config', 'app.config', 'production.config', 'qa.config', 'dll.refresh', '.sln', 'assemblyinfo.cs']; | |
const shouldDelete = excludeSuffixes.find(s => trimName.endsWith(s)); | |
if (shouldDelete) { fileInfo.closest('.js-file').remove(); } | |
}); |
This file contains hidden or 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
private void WaitUntil(Action assertion, int timeoutMillis) | |
{ | |
var cancelTokenSource = new CancellationTokenSource(timeoutMillis); | |
var token = cancelTokenSource.Token; | |
var t = Task.Factory.StartNew(() => | |
{ | |
while (true) | |
{ | |
try |
This file contains hidden or 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
def get_all_branches | |
value = `git branch --list` | |
value.split("\n") | |
end | |
def parse_branch_name(branch_name_line) | |
branch_name_line.match(/^(\*\s)?(\s{2})?(.*)$/i).captures.last | |
end | |
def print_branch_names(branch_names) |
OlderNewer