Skip to content

Instantly share code, notes, and snippets.

View aquatiko's full-sized avatar
👾
OSS at Yugabyte

Rohit Kumar aquatiko

👾
OSS at Yugabyte
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aquatiko on github.
  • I am rkumar_yb (https://keybase.io/rkumar_yb) on keybase.
  • I have a public key ASBstspHbIEk5_nvVI_2_ixrJVfyX4zaZPeKIcNV4pwJDwo

To claim this, I am signing this object:

@aquatiko
aquatiko / server.go
Last active July 22, 2020 06:06
Server file which need to run on laptop for screen-latency-testing
package main
import (
"bufio"
"bytes"
"fmt"
"net"
"os/exec"
"strconv"
"time"
@aquatiko
aquatiko / server.py
Created July 14, 2020 01:16
Server on laptop for screen-latency testing
# first of all import the socket library
import socket
import os
# next create a socket object
s = socket.socket()
print("Socket successfully created")
# reserve a port on your computer in our
# case it is 12345 but it can be anything
@aquatiko
aquatiko / AstroImageView.jl
Created July 27, 2019 05:16
Basic UI panel AstroImageView
using AstroImages, GtkReactive, Gtk.ShortNames, Graphics, Gtk, Colors, IntervalSets, Cairo
using AstroImages: render
using WCS, FITSIO
function ui(img::AstroImage, indx = 1)
header = WCS.to_header(img.wcs[indx])
win = Window("Image", 700,700)
g = Grid()
push!(win, g)
using SkyCoords: lon, lat
using FITSIO, WCS, SkyCoords, Interpolations
function wcs_to_celestial_frame(wcs::WCSTransform)
if wcs.latpole == -1 && wcs.lonpole == -1 # or lat/lng ?
return nothing
end
radesys = wcs.radesys
if !isnan(wcs.equinox)
equinox = wcs.equinox
@aquatiko
aquatiko / gist:0b08f6b8efcb460bb550fcfeaa00ce30
Last active April 7, 2019 07:25
Gtk initial Interface for AstroImage
# creates a zoom-able window with feature to view coordinate of AstroImage by hovering mouse over it
using AstroImages, GtkReactive, Gtk.ShortNames, Graphics, Gtk, Colors, IntervalSets, Cairo
using AstroImages: render
function ui(img::AstroImage{T,C}) where {T,C}
win = Window("Image")
g = Grid()
push!(win, g)
l1 = Label("X =")
l2 = Label("Y =")
g[1,2] = l1