A |
Alpha Time |
UTC+1 |
B |
Bravo Time |
UTC+2 |
C |
Charlie Time |
UTC+3 |
D |
Delta Time |
UTC+4 |
E |
Echo Time |
UTC+5 |
F |
Foxtrot Time |
UTC+6 |
G |
Golf Time |
UTC+7 |
H |
Hotel Time |
UTC+8 |
I |
India Time |
UTC+9 |
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
| import java.awt.BorderLayout; | |
| import java.awt.Dimension; | |
| import java.io.File; | |
| import javax.swing.JFrame; | |
| import javax.swing.JMenuBar; | |
| import javax.swing.JPanel; | |
| import javax.swing.SwingUtilities; | |
| import javax.swing.UIManager; |
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 commonCrap = copySpec { | |
| from('dir1') { | |
| include '**/*.jar' | |
| } | |
| from('dir2') { | |
| include '**/*.dll' | |
| } | |
| } | |
| task copy1(type: Copy) { |
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
| pipeline { | |
| // ... | |
| stages { | |
| // ... | |
| customMatrix { | |
| matrix [name: 'debian', prettyName: 'Debian'], | |
| [name: 'ubuntu', prettyName: 'Ubuntu'], | |
| [name: 'centos', prettyName: 'CentOS'], | |
| [name: 'macos', prettyName: 'macOS'], | |
| [name: 'windows', prettyName: 'Windows'] |
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
| #!/usr/bin/env python3 | |
| # | |
| # TootsExporter.py | |
| # - Another Mastodon Toots Exporter in Python 3. | |
| # | |
| # Dependency: | |
| # - pip(3) install "requests[socks]" | |
| # | |
| # License: MIT |
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
| public interface Converter<T> | |
| { | |
| String toString(T thing); | |
| T fromString(String string); | |
| } |
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
| // Distance from a point in 2D space to an arc starting at arc_r on the X axis | |
| // and rotating through arc_theta in the positive direction. | |
| float sdArc(float2 p, float arc_r, float arc_theta) | |
| { | |
| float p_theta = atan2(p.y, p.x); | |
| if (p_theta < 0.0) | |
| { | |
| p_theta += UNITY_TWO_PI; | |
| } |
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
| package magicutilities; | |
| import java.util.Objects; | |
| import java.util.function.Function; | |
| import java.util.function.ToIntFunction; | |
| import javax.annotation.Nonnull; | |
| import javax.annotation.Nullable; | |
| public class EvenMoreObjects { |
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
| .../MimeWalker.java:128: warning: [OperatorPrecedence] Use grouping parenthesis to make the operator precedence explicit | |
| (contentType.startsWith("application/octet-stream")) && | |
| ^ | |
| (see https://errorprone.info/bugpattern/OperatorPrecedence) | |
| Did you mean '((contentType.startsWith("application/octet-stream")) &&'? | |
| .../MimeWalker.java:128: warning: [UnnecessaryParentheses] Unnecessary use of grouping parentheses | |
| (contentType.startsWith("application/octet-stream")) && | |
| ^ | |
| (see https://errorprone.info/bugpattern/UnnecessaryParentheses) | |
| Did you mean 'contentType.startsWith("application/octet-stream") &&'? |
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
| import hudson.util.RemotingDiagnostics | |
| Jenkins.instance.slaves | |
| .findAll { node -> node.labelString.contains('debian') } // not production-safe | |
| .each { slave -> | |
| println slave.name | |
| def channel = slave.channel | |
| if (channel != null) { | |
| println RemotingDiagnostics.executeGroovy(""" |