openpgp4fpr:1746113F877E72AC51E75B970E41827D76D10766
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
package net.tonick.demo | |
import org.junit.jupiter.api.function.Executable; | |
import java.util.ArrayList; | |
import java.util.List; | |
import static org.junit.jupiter.api.Assertions.fail; | |
/** |
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 | |
instance="your.instance.org" | |
access_token="your_access-token" | |
account_id="your-account-id" | |
api_endpoint="https://${instance}/api/v1/accounts/${account_id}/statuses" | |
min_id="1" | |
while true; do | |
response=$(curl -s -X GET -H "Authorization: Bearer ${access_token}" "${api_endpoint}?min_id=${min_id}&limit=40") |
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
CREATE OR REPLACE FUNCTION get_vector_from_angles(azimuth double precision, altitude double precision) RETURNS double precision[] AS | |
$$ | |
DECLARE | |
vector double precision[]; | |
BEGIN | |
vector := ARRAY [ sin(azimuth) * cos(altitude),cos(azimuth) * cos(altitude), sin(altitude) ]; | |
RETURN vector; | |
END; | |
$$ LANGUAGE plpgsql IMMUTABLE; |