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
| Wed Oct 10 18:37:06 UTC 2018 |
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
| # Add mixin to /config/initializers/ | |
| module LogQuerySource | |
| def debug(*args, &block) | |
| return unless super | |
| backtrace = Rails.backtrace_cleaner.clean caller | |
| relevant_caller_line = backtrace.detect do |caller_line| | |
| !caller_line.include?('/initializers/') | |
| end |
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
| function SplitIt(macsplit) { | |
| var temp = new Array(); | |
| var reversed = new Array(); | |
| var re_macsplit = /[A-F0-9]/; | |
| var j = 0; | |
| for (var i = 0; i < macsplit.length; i++) { // Loop through whole MAC ID string | |
| if (re_macsplit.test(macsplit[i])) { // Match to hexidecimal number regexp | |
| temp[j] = macsplit[i]; // Assign number to the array item |