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
// PrintCommentsPassedBy prints comments if they are before the given ParseLocationPoint | |
// and returns if comments are emitted. | |
bool Unparser::PrintCommentsPassedBy(const ParseLocationPoint point, void* data) { | |
if (data == nullptr) { | |
return false; | |
} | |
auto parse_tokens = static_cast<std::deque<std::pair<std::string, ParseLocationPoint>>*>(data); | |
if (parse_tokens == nullptr) { | |
return false; | |
} |
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
// Visitor implementation. | |
void Unparser::visitASTHintedStatement(const ASTHintedStatement* node, | |
void* data) { | |
visitASTChildren(node, data); | |
} |
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
FROM l.gcr.io/google/bazel:1.0.0 as builder | |
# Use gcc because clang can't build m4 | |
RUN apt-get update && \ | |
apt-get install build-essential software-properties-common -y && \ | |
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
apt-get update && \ | |
# Use gcc-9 for using std::filesystem api | |
apt-get install --no-install-recommends -y make gcc-9 g++-9 && \ | |
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 \ |
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
docker run -it --rm -v `pwd`:/home:Z matts966/zetasql-formatter:latest paths/to/sql/files |
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
tap "adoptopenjdk/openjdk" | |
tap "crisidev/chunkwm" | |
tap "d12frosted/emacs-plus" | |
tap "github/gh" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
tap "homebrew/php" | |
tap "homebrew/science" | |
tap "homebrew/services" |
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
resolver: lts-9.12 | |
packages: | |
- . | |
- hie-plugin-api | |
extra-deps: | |
- apply-refact-0.3.0.1 | |
- brittany-0.11.0.0 | |
- butcher-1.3.1.1 | |
- constrained-dynamic-0.1.0.0 |
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
from sys import stdin | |
index = 0 | |
finding_author = False | |
author = "" | |
finding_publish_year = False | |
publish_year = "" | |
etal = False | |
for line in stdin: | |
if line.startswith("TI"): | |
index += 1 |
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
void setup() { | |
asm volatile(R"( | |
ldi r16, 0b00001000 | |
out 0x17, r16 | |
ldi r19, 0 | |
ldi r20, 1 | |
ldi r21, 1 | |
task1: | |
ldi r16, 0b00001000 | |
out 0x18, r16 |
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
void setup() { | |
asm volatile(R"( | |
ldi r16, 0b00001000 | |
out 0x17, r16 | |
ldi r19, 1 | |
ldi r20, 1 | |
task1: | |
ldi r16, 0b00001000 | |
out 0x18, r16 | |
rcall delay0 |
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
// single line example | |
#define ASM(x) asm volatile(x "\n\t") | |
void setup() { | |
ASM("ldi r16, 0b00001000"); | |
ASM("out 0x17, r16"); | |
ASM("ldi r19, 1"); | |
ASM("ldi r20, 1"); | |
task(); | |
} |
NewerOlder