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
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp | |
index 723cfd5022..f6f75d2731 100644 | |
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp | |
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp | |
@@ -74,7 +74,11 @@ CodePointBreakIterator::~CodePointBreakIterator() | |
clearCurrentCharIter(); | |
} | |
+#if U_ICU_VERSION_MAJOR_NUM >= 70 | |
+bool CodePointBreakIterator::operator==(const BreakIterator& that) const |
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 | |
# reflog: Pretty format `git reflog show` with optional flag options for refining reflog output | |
reflog () { | |
if [[ ! "$(git rev-parse --is-inside-work-tree)" ]] 2>/dev/null; then | |
echo "fatal: Not a git repository (or any of the parent directories): .git" | |
return 1 | |
fi | |
# decorated `git reflog show` graph format style |
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
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp | |
index 723cfd5022..f6f75d2731 100644 | |
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp | |
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp | |
@@ -74,7 +74,11 @@ CodePointBreakIterator::~CodePointBreakIterator() | |
clearCurrentCharIter(); | |
} | |
+#if U_ICU_VERSION_MAJOR_NUM >= 70 | |
+bool CodePointBreakIterator::operator==(const BreakIterator& that) const |
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 | |
### | |
### alphanum: Generate pseudo-random alphanumeric string of n characters. | |
### | |
LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | head -c $1 | xargs ; |
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 | |
### | |
### prsg: Generate pseudo-random string of n characters. | |
### | |
if [[ $# -eq 0 ]]; then | |
printf 'Usage: prsg LENGTH\n' | |
exit 1 |
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 | |
### | |
### extract: Utility for extracting various archive types. | |
### | |
shopt -s extglob | |
USAGE="Usage: extract FILE [FILE] ..." |
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
#include <string.h> | |
/** | |
* Check if a string exists in an array. | |
*/ | |
int in_array (const char* const str, const char *arr[], size_t size) { | |
int i; | |
for (i = 0; i < size; i += 1) { | |
if (!strcmp(arr[i], str)) { |
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
(function () { | |
'use strict'; | |
// queryTarget hash delimiter | |
var HASH_DELIM = '#::'; | |
/** | |
* @ref https://gist.github.com/nickolasburr/9ebee93c0ac155cc25d54eaf44952a0e | |
*/ |
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
set color | |
set craction = 1 | |
set numeric | |
set !optimize |
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
default_programmer = "arduino"; | |
default_serial = "/dev/tty.usbmodemFD121"; | |
programmer | |
id = "arduino"; | |
desc = "Arduino Uno"; | |
type = "arduino"; | |
connection_type = serial; | |
baudrate = 9600; | |
; |
NewerOlder