Skip to content

Instantly share code, notes, and snippets.

View hashb's full-sized avatar
🛴
vroom..vroom

Chenna Kautilya hashb

🛴
vroom..vroom
View GitHub Profile
@hashb
hashb / colors.js
Last active May 1, 2022 12:17
Google Calendar colors
{ 'updated': '2012-02-14T00:00:00.000Z',
'event':
{ '1': { foreground: '#1d1d1d', background: '#a4bdfc' },
'2': { background: '#7ae7bf', foreground: '#1d1d1d' },
'3': { foreground: '#1d1d1d', background: '#dbadff' },
'4': { foreground: '#1d1d1d', background: '#ff887c' },
'5': { foreground: '#1d1d1d', background: '#fbd75b' },
'6': { foreground: '#1d1d1d', background: '#ffb878' },
'7': { foreground: '#1d1d1d', background: '#46d6db' },
'8': { background: '#e1e1e1', foreground: '#1d1d1d' },
#! /usr/bin/env python
import os
import sys
import numpy as np
import pandas as pd
import scipy.stats as stats
import matplotlib
import matplotlib.pyplot as plt
@hashb
hashb / meta-knowledgebase.md
Last active December 4, 2019 02:43
meta knowledgebase

meta-knowledge

💡 A list of knowledge repositories

Use GitHub repositories to document everything. \o/

Repositories

@hashb
hashb / simple_message.py
Last active July 30, 2019 22:13
test ROS simple_message
#!/usr/bin/python
import struct
class SimpleMessage(object):
COMM_TOPIC = 1
COMM_REQUEST = 2
COMM_REPLY = 3
REPLY_NA = 0
@hashb
hashb / add.f90
Last active June 30, 2019 05:20
hello world in fortran77
! all programs must start with `program` and end with `end program`
program add_nums
! this statement tells compiler to check all variable types
implicit none
! declare variables and types
real :: a, b, ans
! statements
a = 2.0
@hashb
hashb / wol.sh
Last active August 26, 2017 07:15
Configure 'Wake on Lan' on linux
#!/bin/bash
{
if [ "$(id -u)" != "0" ]; then
echo -e "\\e[31mrun this script as sudo\\e[0m"
exit
fi
set -ex
# update your sources
@hashb
hashb / redshift.conf
Last active July 29, 2017 23:42 — forked from roobie/redshift.conf
redshift conf Salt Lake City, UT
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5500
temp-night=2000
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
Verifying that "hashb.id" is my Blockstack ID. https://onename.com/hashb
@hashb
hashb / publish_custom_point_cloud.py
Created March 14, 2017 03:37 — forked from yuma-m/publish_custom_point_cloud.py
ROS Customized PointCloud2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
from std_msgs.msg import Header
from sensor_msgs.msg import PointCloud2, PointField
import sensor_msgs.point_cloud2 as pc2
# 点の座標を定義するフレームの名前
HEADER = Header(frame_id='/sample_frame')

Keybase proof

I hereby claim:

  • I am hashb on github.
  • I am hashb (https://keybase.io/hashb) on keybase.
  • I have a public key ASBC8tluNe6l1A8qpwziX03xkw-ox1YfnW3ZE-bctthsewo

To claim this, I am signing this object: