This file contains 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
## This is a test | |
first issue, quote does not escape so `#` will be treated as header. | |
second issue, the end of this line is again treated as header # as comments | |
```bash | |
# this should not be a header but it is by markdowndrawer - third issue | |
echo "testing" |
This file contains 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/expect -f | |
set user [lindex $argv 0]; | |
set hosts { | |
"host1" "host2" | |
} | |
stty -echo | |
send_user -- "Enter your password:" | |
expect_user -re "(.*)\n" |
This file contains 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 com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonValue; | |
import java.util.HashMap; | |
import java.util.Map; | |
public enum DeviceScheduleFormat { | |
WEEKDAY("weekday"), | |
EVEN_ODD("even-odd"), |
This file contains 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
final IssueInputBuilder issueInputBuilder = new IssueInputBuilder("SUP", 10900L, "summary"); | |
final Map<String, Object> childField = new HashMap<>(); | |
childField.put("value", "Outage"); | |
final Map<String, Object> customField = new HashMap<>(); | |
customField.put("value", "Customer Call"); | |
customField.put("child", new ComplexIssueInputFieldValue(childField)); | |
issueInputBuilder.setFieldInput(new FieldInput("customfield_12345", new ComplexIssueInputFieldValue(customField))); |
This file contains 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 bash | |
BRANCHES_TO_SKIP=(master develop test) | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" | |
DASHES="${BRANCH_NAME//[^-]}" | |
if [ ${#DASHES} -gt 1 ]; then |
This file contains 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
ClassLoader classLoader = TestContact.class.getClassLoader(); | |
URL resource = classLoader.getResource("org/apache/http/impl/client/HttpClientBuilder.class"); |
This file contains 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 class Utils { | |
public static List<IArtist> cull(List<IArtist> artists, List<GenreType> include, List<GenreType> exclude) { | |
List<GenreType> optExclude = Optional.ofNullable(exclude).orElse(new ArrayList<GenreType>()); | |
List<GenreType> optInclude = Optional.ofNullable(include).orElse(new ArrayList<GenreType>()); | |
return artists.stream() | |
.filter(isMatch(optInclude)) | |
.filter(isMatch(optExclude).negate()) | |
.collect(Collectors.toList()); | |
} |
This file contains 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
<html> | |
<head> | |
<title>Daily Standup</title> | |
<style type="text/css"> | |
#dailyStatus { | |
width: 100%; height: 100%; left: 0; top: 0; z-index: 10; padding: 4rem; font-size:2rem; font-family:Helvetica; line-height:1.4; margin:0 auto;white-space: pre;overflow: auto | |
} | |
</style> | |
<script> |
This file contains 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
<html> | |
<head> | |
<script> | |
var standup = {}; | |
standup.webdb = {}; | |
standup.webdb.db = null; | |
standup.webdb.open = function() { | |
var dbSize = 5 * 1024 * 1024; // 5MB | |
standup.webdb.db = openDatabase("Standup", "1", "standup manager", dbSize); | |
} |
This file contains 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 bash | |
files=$(git diff --name-only HEAD | tr '\n' ' ' ) | |
e=0 | |
for f in $files | |
do | |
if ! git show :"$f" | iconv -f UTF-8 -t UTF-8 "$f" >/dev/null 2>&1 | |
then | |
e=1 | |
echo "The following file is not UTF-8: $f" |
NewerOlder