Skip to content

Instantly share code, notes, and snippets.

View n-rodriguez's full-sized avatar
🏠
To hire!

Nicolas Rodriguez n-rodriguez

🏠
To hire!
View GitHub Profile
@n-rodriguez
n-rodriguez / ArrayObjectDemo.coffee
Created September 9, 2021 23:26 — forked from frane/ArrayObjectDemo.coffee
Traversing arrays and objects in CoffeeScript
# Traversing arrays and objects in CoffeeScript
# The array and object we use for testing
arr = [1, 2, 3, 4, 5]
obj = {a: 1, b: 2, c: 3, d: 4, e: 5}
# 'in' has a different meaning in CoffeeScript than in JavaScript
# CS: element in array -> JS: array.indexOf(element) >= 0
console.log '5 in arr: ' + (5 in arr)
@n-rodriguez
n-rodriguez / redmine_checklists_patch.diff
Created August 28, 2015 19:19
Redmine Checklists Loading Patch
diff --git a/init.rb b/init.rb
index 0d3028b..65f949c 100644
--- a/init.rb
+++ b/init.rb
@@ -18,7 +18,7 @@
# along with redmine_checklists. If not, see <http://www.gnu.org/licenses/>.
require 'redmine'
-require 'redmine_checklists/redmine_checklists'
+require 'redmine_checklists'
@n-rodriguez
n-rodriguez / redmine_contact_patch.diff
Created August 27, 2015 10:18
Redmine Contact Loading Patch
diff --git a/init.rb b/init.rb
index 57ff0d8..c2d2bdb 100755
--- a/init.rb
+++ b/init.rb
@@ -107,6 +107,4 @@ Redmine::Plugin.register :redmine_contacts do
end
-ActionDispatch::Callbacks.to_prepare do
- require 'redmine_contacts'