.
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
if(NOT(DEST)) | |
message(FATAL_ERROR "DEST NOT DEFINED") | |
endif() | |
if(SHA1) | |
string(TOLOWER ${SHA1} SHA1) | |
endif() | |
if(EXISTS "${DEST}") | |
if(NOT(SHA1)) |
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 | |
function die { | |
echo "$*" 1>&2 ; | |
exit 1; | |
} | |
CC=${CC:-/usr/bin/gcc} | |
CXX=${CXX:-/usr/bin/g++} |
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 "dart:convert"; | |
main() { | |
var input = ["{\"key\":\"value0\"}{\"key\":\"value1\"}"]; | |
Stream.fromIterable(input) | |
.transform(JsonDecoder()) | |
.listen((item) { | |
print("item: $item\n"); | |
}); | |
} |
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
# Perl one liner which convert CRLF to LF | |
perl -i -pe 's#\r\n$#\n#g' |
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 | |
# inspired from https://stackoverflow.com/a/53805392 | |
import pkg_resources | |
try: | |
from pip import get_installed_distributions | |
except: | |
from pip._internal.utils.misc import get_installed_distributions |
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
--- !tapi-tbd-v3 | |
archs: [ armv7, armv7s, arm64, arm64e ] | |
uuids: [ 'armv7: B41C63AE-D89D-3E89-9582-FA88DFB4A813', 'armv7s: 8D4659D4-1F05-3002-AD00-9152E1483631', | |
'arm64: 23B2D15C-5687-3176-BB4F-2BF05FC942BB', 'arm64e: C4263B03-FE8A-37A2-AC08-E77C7082038F' ] | |
platform: ios | |
install-name: '/usr/lib/libc++.1.dylib' | |
current-version: 902 | |
exports: | |
- archs: [ armv7, armv7s ] | |
symbols: [ __ZNKSt3__18messagesIcE6do_getEiiiRKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE, |
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 | |
import argparse | |
import sys | |
import re | |
# third_party | |
import graphviz # pip3 install graphviz | |
import yaml # pip install pyyaml |
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 | |
__doc__ = """Analyze Go package dependencies.""" | |
import argparse | |
import json | |
import os | |
import shlex | |
import subprocess | |
import sys |
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
[ | |
{ | |
"left": { | |
"path": "swift-5.9-RELEASE-centos7/usr/bin/clang", | |
"glibc_version": "2.16", | |
"libstdcpp_version": "3.4.19", | |
"shared_objects": [ | |
"libtinfo.so.5" | |
] | |
}, |
OlderNewer