Skip to content

Instantly share code, notes, and snippets.

View luigifcruz's full-sized avatar
👨‍💻
Coding!

Luigi Cruz luigifcruz

👨‍💻
Coding!
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am luigifcruz on github.
  • I am luigifcruz (https://keybase.io/luigifcruz) on keybase.
  • I have a public key whose fingerprint is DBA3 8A3F 5E05 367D E666 827D 89BF 7538 9620 0263

To claim this, I am signing this object:

/*
Compilation (macOS):
gcc test.c -o test -lglfw -framework OpenGL -Wno-deprecated-declarations
*/
#include <stdio.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
const char *vertex_shader_str =
import simpleaudio as sa
from rtlsdr import RtlSdr
import math
import signal
def signal_handler(signum, frame):
exit(-1)
signal.signal(signal.SIGINT, signal_handler)
# User definable settings
@luigifcruz
luigifcruz / gnss_view.js
Created September 20, 2019 18:58
React Orbits Module
import React, { Component } from 'react'
import * as d3 from "d3";
import '../../styles/Orbits.scss'
Number.prototype.pad = function(size) {
var s = String(this);
while (s.length < (size || 2)) {s = "0" + s;}
return s;
}
@luigifcruz
luigifcruz / correios.html
Last active September 18, 2018 03:18
Correios API POST Rastreamento
<!doctype html>
<html lang="en">
<body>
<form action="https://www2.correios.com.br/sistemas/rastreamento/ctrl/ctrlRastreamento.cfm?" method="post">
<textarea style="display: none;" name="objetos">RX859960588CN</textarea>
<input type="submit" value="Go to Correios">
</form>
</body>
</html>

Keybase proof

I hereby claim:

  • I am luigifreitas on github.
  • I am luigifcruz (https://keybase.io/luigifcruz) on keybase.
  • I have a public key ASBVhSfHNZSwa_Mun1fEnoeES3DATfds40samZVmj_HrMgo

To claim this, I am signing this object:

import numpy as np
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
sns.set()
sps = 3.75e6
samples_per_us = sps*1e-6
max_range_us = samples_num/samples_per_us
@luigifcruz
luigifcruz / outernet_arm.sh
Created August 4, 2017 03:45
ARM Outernet LeanDVB
./rtl_sdr -f 1539832500 -p 78 -s 300e3 -g 0 - | \
./../../../leandvb.embedded -f 300e3 --anf 0 --tune 42e3 --const BPSK --drift --sr 4200 --roll-off 0.2 --sampler rrc --rrc-rej 5 --viterbi --fastlock --hdlc --packetized -v -d | \
./uncat /var/run/ondd.data
@luigifcruz
luigifcruz / outernet.sh
Created August 3, 2017 20:39
Laptop Outernet Demodulator
rtl_sdr -f 1539832500 -p 78 -s 960e3 -g 0 - |
./leandvb -f 960e3 --anf 0 --tune 42e3 --const BPSK --drift --sr 4200 --roll-off 0.2 --sampler rrc --rrc-rej 5 --viterbi --fastlock --hdlc --packetized -v -d --gui > /tmp/hdlcframes.bin