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
| // ==UserScript== | |
| // @name Copy markdown link instead of raw link | |
| // @namespace https://kjeldahl.it/ | |
| // @version 0.3 | |
| // @description Copies a markdown compatible link | |
| // @author Jacob Kjeldahl | |
| // @match https://www.pivotaltracker.com/n/projects/* | |
| // @grant none | |
| // @downloadURL https://gist.githubusercontent.com/kjeldahl/a1f2cafa9d36b642599c3e5792898827/raw/pivotal_copy_markdown_link.js | |
| // ==/UserScript== |
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
| // ==UserScript== | |
| // @name Linkify Pivotal Tracker links on Github | |
| // @namespace http://paradox.io/linkify-pivotal-links | |
| // @version 0.1 | |
| // @description Converts pivotal tracker story links [#123456789] to actual links | |
| // @author Jeff Sandberg | |
| // @match *://github.com/* | |
| // @grant none | |
| // @downloadURL https://gist.githubusercontent.com/paradox460/fa76ecacdbb47d8fa9100fbf9305a97e/raw | |
| // @require https://cdn.jsdelivr.net/gh/padolsey/findAndReplaceDOMText@0.4.5/src/findAndReplaceDOMText.min.js |
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
| // ==UserScript== | |
| // @name ZenDesk NettoPower Integration | |
| // @namespace http://www.nettopower.dk/ | |
| // @version 1.4 | |
| // @description Adds links from tickets to NettoPower Admin | |
| // @author Jacob Kjeldahl (jkj@nettopower.dk) | |
| // @match https://nettopower.zendesk.com/agent/* | |
| // @grant none | |
| // ==/UserScript== |
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
| // ==UserScript== | |
| // @name Play pause for Simpelt Regnskab | |
| // @namespace http://www.kjeldahl.it | |
| // @version 0.2 | |
| // @description Adds a play / pause button in the top navigation next to the TimeLog link so time tracking can be started from there | |
| // @author Jacob Kjeldahl | |
| // @match https://simpeltregnskab.dk/* | |
| // @grant none | |
| // ==/UserScript== | |
| $(function(){ |
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
| Get the number of hours in day, as this may vary depending on DST changes. |
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
| A tiny and very simple pasword generator |
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
| Modulus 10 (luhn) checksum validator. | |
| This may for instance be credit card or GSRN number validation using the luhn algorithm. | |
| See http://en.wikipedia.org/wiki/Luhn_algorithm | |
| Implementation using Rick Hull's comment on http://www.missiondata.com/blog/web-development/25/credit-card-type-and-luhn-check-in-ruby/ |
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
| # A patch to ActiveRecord 2.1.0 to allow multiple columns in grouped calculations | |
| # Thanks to Eric Lindvall for the patch at http://tinyurl.com/luas8x which needed only slight modifcations to work with version 2.1.0 | |
| module ActiveRecord | |
| module Calculations #:nodoc: | |
| module ClassMethods | |
| def construct_calculation_sql(operation, column_name, options) #:nodoc: | |
| operation = operation.to_s.downcase | |
| options = options.symbolize_keys |
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
| #!/bin/bash | |
| # | |
| # Copyright (c) 2007 Jean-Francois Richard <jean-francois@richard.name> | |
| # (c) 2008 Mauricio Fernandez <mfp@acm.org> | |
| # (c) 2009 Jacob Kjeldahl <jkj@lenio.dk> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 2 of the License, or | |
| # (at your option) any later version. |
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
| # DESCRIPTION | |
| # ----------- | |
| # | |
| # Loads rake tasks from gems configured in config/environment.rb | |
| # | |
| # Use it by adding it to your Rakefile | |
| # | |
| # Temporary work around for | |
| # http://rails.lighthouseapp.com/projects/8994/tickets/59-when-loading-a-plugin-via-rubygems-rake-tasks-aren-t-included | |
| # Based on the patch by James Healy |
NewerOlder