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
.neonHeader { | |
filter: drop-shadow(0px 0px 10px #ff0000); | |
} |
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
sudo nvram StartupMute=%00 |
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
image:path.svg?style=svg["Alt", link="link"] |
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
(defn roll | |
"Roll the Crew Dragon left or right (CCW or CW)." | |
([driv dir max-roll-rate] | |
(if (or | |
(< (math/abs (@tel/telem :roll-rate)) max-roll-rate) | |
(and | |
(pos? (@tel/telem :roll-rate)) (= dir "left")) | |
(and | |
(neg? (@tel/telem :roll-rate)) (= dir "right"))) |
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
;; Yaw | |
(defn get-yaw-delta | |
"" | |
[driv] | |
(let [yaw-delta-q (query driv {:css "#yaw > div.error"}) | |
yaw-delta (get-element-text-el driv yaw-delta-q)] | |
(parse-delta yaw-delta))) | |
(defn get-yaw-rate |
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
(defn poll | |
"Poll telemetry and update the state." | |
[driv] | |
(if true | |
(do | |
(Thread/sleep poll-interval) | |
(let [t (System/currentTimeMillis) | |
dt (* (+ poll-interval (- t (@telem :t))) 0.001) | |
x (get-x driv) | |
y (get-y driv) |
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
(defn align-pitch-rot | |
"Align rotation on pitch axis." | |
[driv] | |
(if (pitch-within-error?) | |
(kill-pitch-rot driv) | |
(align-pitch driv)) | |
(recur driv)) |
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
(defn align-y | |
"docstring" | |
[driv] | |
(let [y (@tel/telem :y) | |
vy (@tel/telem :vy)] | |
(if (pos? y) | |
(when (or (> (math/abs y) deadzone) | |
(pos? vy)) | |
(translate driv "left")) | |
(when (or (> (math/abs y) deadzone) |
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 html.parser import HTMLParser | |
import http.client | |
from http.client import HTTPException | |
import json | |
import os | |
from urllib.parse import urljoin | |
SRI_HOST = "lietus.lv" | |
TELEGRAM_API_HOST = "api.telegram.org" |
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
{elvis, | |
[#{dirs => ["apps/*/src", "src"], | |
filter => "*.erl", | |
rules => [{elvis_style, line_length, | |
#{ignore => [], | |
limit => 100, | |
skip_comments => false}}, | |
{elvis_style, no_tabs}, | |
{elvis_style, no_trailing_whitespace}, | |
{elvis_style, macro_names, #{ignore => []}}, |
OlderNewer