Skip to content

Instantly share code, notes, and snippets.

View wiless's full-sized avatar
💭
I may be slow to respond.

wireless wiless

💭
I may be slow to respond.
View GitHub Profile
@wiless
wiless / downloadobs.go
Last active April 5, 2023 09:20
Downloads an observablehq and create dataflow script (ojs)
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"log"
"net/http"
@wiless
wiless / DGIndicator.ino
Created January 23, 2022 07:37
Code for NodeMCU to update status from PES DG Indicator
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <Firebase_ESP_Client.h>
#include <addons/TokenHelper.h>
#define HOSTNAME "DG_INDICATOR2" // Name of the
#define API_KEY ""
@wiless
wiless / latlong.csv
Created April 14, 2021 09:30
Latlong.csv
Latitude Longitude SrNo
28.57 34.22138889 1
26.10916667 91.72194444 2
13.03333333 80.25 3
28.57916667 77.34333333 4
22.66138889 88.4325 5
17.35972222 78.43 6
19.00388889 72.82722222 7
20.29305556 85.85388889 8
26.175 91.75694444 9
We can't make this file beautiful and searchable because it's too large.
Az,El,Ah,Av,Ag,Aa
-180.000000,0.000000,-30.000000,-23.005917,-22.000000,-16.644234
-180.000000,1.000000,-30.000000,-22.497515,-22.000000,-16.660422
-180.000000,2.000000,-30.000000,-21.994793,-22.000000,-16.709261
-180.000000,3.000000,-30.000000,-21.497751,-22.000000,-16.791585
-180.000000,4.000000,-30.000000,-21.006391,-22.000000,-16.908808
-180.000000,5.000000,-30.000000,-20.520710,-22.000000,-17.062959
-180.000000,6.000000,-30.000000,-20.040710,-22.000000,-17.256745
-180.000000,7.000000,-30.000000,-19.566391,-22.000000,-17.493626
-180.000000,8.000000,-30.000000,-19.097751,-22.000000,-17.777938
@wiless
wiless / ngso-in-use.csv
Last active April 1, 2021 06:49
ngso-in-use.csv
Satellite Name ADM ORG Long_nom Date Status Expiry Date Provision
SROSS-3 IND N-GSO 01.10.1994 C 11.2
MMI IND N-GSO 05.11.2013 C 11.2
IRS-P4 IND N-GSO 10.06.1999 C 11.2
IRS-P5 IND N-GSO 15.05.2005 C 11.2
IRS-1E IND N-GSO 15.10.1994 C 11.2
MEGHA-TROPIQUES IND N-GSO 15.10.2011 C 11.2
IRS-CARTOSAT-2 IND N-GSO 20.01.2007 C 11.2
PSLV IND N-GSO 20.09.1993 C 11.2
INSAT-NAVR-GS IND N-GSO 21.08.2016 C 11.2
@wiless
wiless / satellite-in-use.csv
Created April 1, 2021 06:21
satellite-in-use.csv as on March 31
Satellite Name ADM ORG Long_nom Date Status Expiry Date for Bringing Into Use Provision
INSAT-2C IND 74 31.12.1992 C A30B#8.1
INSAT-EK74R IND 74 31.07.2004 C 11.2
INSAT-2(74) IND 74 31.01.1994 C 11.2
INSAT-EK55 IND 55 30.11.2003 C 11.2
INSAT-2(83) IND 83 30.07.1993 C 11.2
INSAT-2A IND 83 30.07.1993 C A30B#8.1
INSAT-MET82E IND 82 28.07.2013 C 11.2
INSAT-NAVR(83) IND 83 26.07.2015 C 11.2
INSAT-TTC(55)E IND 55 26.03.2013 C 11.2
@wiless
wiless / readicontobytes.go
Created April 6, 2020 11:16
Read small icon files and covert to []byte variable to embed in go code
package main
import (
"fmt"
"io/ioutil"
"os"
"strings"
)
// Reads the input file (e.g. favicon.ico) and creates outputs variable=[...bytes].. build go files with the output for embeddineg ico impages
@wiless
wiless / quickplot.py
Last active March 9, 2020 04:38
Short reference file for plotting
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
#
# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)
#t=[0,1,2,4] # Note always have ","
@wiless
wiless / matreadwrite.go
Last active April 6, 2020 11:14
Sample code to read and write XCorr and SqrtXcorr files
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"github.com/Sirupsen/logrus"
@wiless
wiless / iperfgo.go
Created September 29, 2019 17:53
iperf async cmd stream
package main
import (
"fmt"
"os"
"strings"
"time"
"github.com/go-cmd/cmd"
)