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
| def job = Jenkins.instance.getItem("the_job_name") | |
| job.getBuilds().each { | |
| if(it.result == Result.FAILURE){ | |
| // Delete failed job | |
| it.delete() | |
| } | |
| } |
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
| class Graph: | |
| def __init__(self): | |
| self.nodes = set() | |
| self.edges = defaultdict(list) | |
| self.distances = {} | |
| def add_node(self, value): | |
| self.nodes.add(value) | |
| def add_edge(self, from_node, to_node, distance): |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Tournament Bracket Generator</title> | |
| <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script src="http://underscorejs.org/underscore-min.js"></script> | |
| <script> | |
| $(document).on('ready', function() { | |
| var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes) |
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
| <select name="DropDownTimezone" id="DropDownTimezone"> | |
| <option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option> | |
| <option value="-11.0">(GMT -11:00) Midway Island, Samoa</option> | |
| <option value="-10.0">(GMT -10:00) Hawaii</option> | |
| <option value="-9.0">(GMT -9:00) Alaska</option> | |
| <option value="-8.0">(GMT -8:00) Pacific Time (US & Canada)</option> | |
| <option value="-7.0">(GMT -7:00) Mountain Time (US & Canada)</option> | |
| <option value="-6.0">(GMT -6:00) Central Time (US & Canada), Mexico City</option> | |
| <option value="-5.0">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> | |
| <option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option> |
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
| The MIT License (MIT) | |
| Copyright (c) 2015 J Kishore Kumar | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| """ | |
| Read graphs in Open Street Maps osm format | |
| Based on osm.py from brianw's osmgeocode | |
| http://github.com/brianw/osmgeocode, which is based on osm.py from | |
| comes from Graphserver: | |
| http://github.com/bmander/graphserver/tree/master and is copyright (c) | |
| 2007, Brandon Martin-Anderson under the BSD License | |
| """ |
NewerOlder