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
# ----- Mirv https://github.com/Mirv 2021 | |
# -- script is ps5 compliant | |
# -- stops on errors | |
# -- defaults to putting all one users group in list, then 2nd user's groups | |
# optional value to sort by sg name, just put y or any character at the end | |
# | |
# --- Requires being ran in powershell console 5 or 7 | |
# - Use: Get-ADUserComparision id1 id2 {optionally -sort y} | |
function Get-ADUserComparision { |
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
// Allow commandline parameters to be passed in NodeJS | |
module.exports = function(alternate_port){ | |
var arguments = getCommandLine(); | |
var arguments = arguments ? arguments : alternate_port; | |
if(!arguments){ | |
throw "Arguments fed into inputHandler.js in both the commandline and parameter appear to be empty or null!"; | |
} | |
return arguments; | |
} |
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
<!-- Star me on Github: https://github.com/ThibaultJanBeyer/ui-landing-bot --> |
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
class Cocoon { | |
constructor (container, options) { | |
this.container = this.getNodeFromOption(container, false) | |
if (!this.container) { | |
throw new TypeError('Container must be supplied') | |
} | |
this.addFieldsLink = this.getNodeFromOption(options.addFieldsLink, container.querySelector('.add_fields')) |
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
## Require (class) | |
# | |
# In: directory to require | |
# Out: | |
# Side: requires all the ruby files found | |
# | |
# Notes: Call via 'load_dir' or 'load_cur_dir' | |
# | |
module DirectoryLoader | |
class Require |
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
3) Error: | |
RecipesControllerTest#test_should_destroy_recipe: | |
ActionController::UrlGenerationError: No route matches {:action=>"http://test.host/recipes/980190962", :controller=>"recipes"} | |
test/controllers/recipes_controller_test.rb:49:in `block (2 levels) in <class:RecipesControllerTest>' | |
test/controllers/recipes_controller_test.rb:47:in `block in <class:RecipesControllerTest>' | |
---log/test.log--- | |
RecipesControllerTest: test_should_destroy_recipe |
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
RecipeTest#test_recipe_is_valid: | |
NoMethodError: undefined method `each' for 3:Fixnum | |
test/models/recipe_test.rb:9:in `block in <class:RecipeTest>' | |
test "recipe is valid" do | |
recipe = Recipe.new(name: "SOMEONE", summary: "Something Else", | |
description: "Something Else", feeds: '3', prep_time: "90") ## -- This is the error line | |
assert recipe.valid?, 'recipe is not valid' | |
end | |