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
stages: | |
- build | |
compile: | |
stage: build | |
script: | |
- go build -ldflags "-s -w -X main.Version=$CI_COMMIT_TAG" | |
artifacts: | |
name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG" | |
paths: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:b4448800f2129cd9e136bfffb64fdf3b2d8b022c] |
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
#!/bin/bash | |
if tty | fgrep -q pts ; then | |
export LANG=zh_CN.UTF-8 | |
fi |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
class VagrantPlugins::ProviderVirtualBox::Config < Vagrant.plugin("2", :config) | |
def update_customizations(customizations) | |
@customizations = customizations | |
end | |
end | |
class VagrantPlugins::ProviderVirtualBox::Action::Customize |
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 <math.h> | |
/** | |
* 3v3 --- [10K] -+- [NTC] --- GND | |
* | | |
* +-- ADC | |
*/ | |
#define NTC_V 3300 | |
#define NTC_R_PULLUP 10000 | |
#define NTC_R(v) (NTC_R_PULLUP * (v) / (NTC_V - (v))) |
OlderNewer