Skip to content

Instantly share code, notes, and snippets.

@Piyush3dB
Piyush3dB / install-opencv.sh
Created September 2, 2016 22:23
OpenCV installation Ubuntu 14.04
# KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# INSTALL THE DEPENDENCIES
@Piyush3dB
Piyush3dB / BlahutArimoto.m
Created June 30, 2015 14:03
Blahut-Arimoto algorithm implementation in Matlab
function [C r] = BlahutArimoto(p)
disp('BlahutArimoto')
% Capacity of discrete memoryless channel
% Blahut-Arimoto algorithm
% Input
% p: m x n matrix
% p is the transition matrix for a channel with m inputs and n outputs
@Piyush3dB
Piyush3dB / compStr.uml
Created August 10, 2017 22:07
PlantUML Composite structure diagram
@startuml
sprite $businessProcess [16x16/16] {
FFFFFFFFFFFFFFFF
FFF000000000FFFF
FFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF
FFFFFFFFFF0FFFFF
FFFFFFFFFF00FFFF
FF00000000000FFF
FF000000000000FF
@Piyush3dB
Piyush3dB / .block
Created December 22, 2020 04:48 — forked from tonyhschu/.block
Small Scroll-linked Animation Demo
scrolling: yes
license: MIT
import bpy
import math
class flower(object):
def __init__(self):
# mesh arrays
verts = []
faces = []
-- Import packages
require 'torch'
require 'gnuplot'
--------------------------------------
-- Define the Kalman filter 'class' --
--------------------------------------
-- Constructor
Kalman = {}
Kalman.__index = Kalman
@Piyush3dB
Piyush3dB / error_ellipse.m
Last active October 16, 2020 21:24
Error Ellipse plot in Matlab
clear all;
close all;
% Mean and Covariance
avg = [ 0 0 ]
covariance = [ 15.1607 4.0102
4.0102 4.8819 ]
[eigenvec, eigenval] = eig(covariance)
import bpy
from random import randint
class Monkey(object):
def __init__(self, location=(0,0,0)):
self.location = location
import bpy
class Robot(object):
def __init__(self):
pass
def addBody(self, value=(0, 0, 0)):
#body
@Piyush3dB
Piyush3dB / readme
Last active February 27, 2019 07:43
Sqlite sakila database
sqlite3
.read schema.sql
.read insert.sql
.tables
.schema
.save sakila.db
.quit
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;