Skip to content

Instantly share code, notes, and snippets.

lucapette lucapette

  • Berlin, Germany
Block or report user

Report or block lucapette

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
View napoli.md
@lucapette
lucapette / toys.rb
Created Feb 2, 2011
methods to create toys arrays and hashes
View toys.rb
class Array
def self.toy(n=10, &block)
block_given? ? Array.new(n,&block) : Array.new(n) {|i| i+1}
end
end
class Hash
def self.toy(n=10)
Hash[Array.toy(n).zip(Array.toy(n){|c| (96+(c+1)).chr})]
end
View github.tf
variable repositories {
default = {
"0" = "fakedata"
"1" = "deloominator"
}
}
resource "github_issue_label" "gardening-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
You can’t perform that action at this time.