Skip to content

Instantly share code, notes, and snippets.

#include <Arduino.h>
#include <SPI.h>
#define SYNTHESIZERREGISTERA 0x00
#define SYNTHESIZERREGISTERB 0x01
#define SYNTHESIZERREGISTERC 0x02
#define RFVCODFCCONTROLREGISTER 0x03
#define VCOCONTROLREGISTER 0x04
#define VCOCONTROLREGISTERCONT 0x05
#define AUDIOMODULATORCONTROLREGISTER 0x06
@martinsv
martinsv / RX5808_set_freq_example.ino
Created February 28, 2025 14:14 — forked from JyeSmith/RX5808_set_freq_example.ino
RX5808 set freq example
#include <SPI.h>
#define SPI_ADDRESS_SYNTH_B 0x01
#define PIN_SPI_SLAVE_SELECT 22
#define RSSIA_PIN 36
#define RSSIB_PIN 39
uint16_t freq = 5740;
void setup() {
@martinsv
martinsv / README.md
Created January 31, 2020 14:13 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@martinsv
martinsv / htb-css3-leaderboard-full.html
Created May 12, 2017 06:23 — forked from djleeds/htb-css3-leaderboard-full.html
Hit the Bits! - CSS3 Leaderboard - Full
<style type="text/css">
#leaderboard li {
font-family: sans-serif;
font-size: 12px;
line-height: 12px;
}
#leaderboard #players li {
display:block;
clear: both;
position: absolute;
@martinsv
martinsv / recordCam.sh
Created January 31, 2017 13:45 — forked from LucaTNT/recordCam.sh
Record Foscam IP camera live feed
#!/bin/bash
# recordCam.sh
# ------------
# This script saves the live video from the Foscam IP camera to a full-quality mp4 file.
# I chose to split the files every 15 minutes (900 seconds), to quickly find the time I need.
# Note: audio is not saved as my cameras don't have a microphone connected to them.
# -----------
# Author: @LucaTNT
# License: BSD
@martinsv
martinsv / log-speedtest.sh
Created January 31, 2017 13:44 — forked from LucaTNT/log-speedtest.sh
A script that appends to a CSV file the results of your internet speed test (via speediest-cli)
#!/bin/bash
OUTPUT="`speedtest-cli --simple`"
PING=`echo "$OUTPUT" | grep Ping | sed 's/[a-zA-Z:]* \([0-9]*\.[0-9]*\) [a-zA-Z/]*/\1/'`
DOWNLOAD=`echo "$OUTPUT" | grep Download | sed 's/[a-zA-Z:]* \([0-9]*\.[0-9]*\) [a-zA-Z/]*/\1/'`
UPLOAD=`echo "$OUTPUT" | grep Upload | sed 's/[a-zA-Z:]* \([0-9]*\.[0-9]*\) [a-zA-Z/]*/\1/'`
DATE=`date +%Y/%m/%d`
TIME=`date +%H:%M:%S`
@martinsv
martinsv / topkeywords.js
Created September 15, 2016 06:13 — forked from elliotbonneville/topkeywords.js
Find top keywords associated with a Google search with this Node.js application.
var request = require("request"),
cheerio = require("cheerio"),
url = "https://www.google.com/search?q=data+mining",
corpus = {},
totalResults = 0,
resultsDownloaded = 0;
function callback () {
resultsDownloaded++;
<?php
namespace App;
/*
$users = [
"pilot-1" => [XXXX, XYXY, ...],
"pilot-2" => [POPO, RARA, ...]
];
*/
@martinsv
martinsv / README.md
Created January 18, 2016 19:51 — forked from tashian/README.md
Just-in-time label printing on the Zebra ZP450 using node.js + Easypost + Pusher + cups

This is the script we use at yerdle to print labels from our Rails backend to our Zebra ZP450 printer.

the Zebra

See this blog post for the whole story.

package simplejavaserver;
import java.net.*;
import java.io.*;
public class SimpleJavaServer extends Thread
{
private ServerSocket serverSocket;
public SimpleJavaServer(int port) throws IOException