Skip to content

Instantly share code, notes, and snippets.

View kuasha's full-sized avatar

Maruf Md Maniruzzaman Abbasi kuasha

View GitHub Profile
@kuasha
kuasha / fntest.cpp
Last active June 12, 2022 10:17
LLVM Tutorial 1: A First Function
// FROM: https://releases.llvm.org/2.2/docs/tutorial/JITTutorial1.html
#include <llvm/IR/Module.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/CallingConv.h>
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/BasicBlock.h"
int main(int argc, char **argv)
#!/bin/bash
export MAKEFLAGS="-j 3"
set -e
VERSION="1.18.0"
LIBNICE_VERSION="0.1.17" # libnice (v>=0.1.14) needed for webrtcbin
LIBSRTP_VERSION="2.3.0" # libsrtp (v>=2.2.0) required for srtp plugin
WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
USRSCTP_VERSION="0.9.3.0" # usrsctp required for webrtc data channels (sctp)
@kuasha
kuasha / navigation.ino
Last active December 14, 2020 22:22 — forked from jgkawell/README.md
Code for the Autonomous Rover as shown in this video: https://www.youtube.com/watch?v=7baK2on4ls4
//Initialize the Lidar
#include <Wire.h>
#include <LIDARLite.h>
LIDARLite myLidarLite;
//Initialize the Servo
#include <Servo.h>
Servo myservo; // create servo object to control a servo
@kuasha
kuasha / zmq
Last active April 20, 2019 18:47
sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
git clone git://github.com/zeromq/libzmq.git
cd libzmq
./autogen.sh
# do not specify "--with-libsodium" if you prefer to use internal tweetnacl security implementation (recommended for development)
./configure --with-libsodium
make check
sudo make install
sudo ldconfig
@kuasha
kuasha / Installing Nvidia drivers on Ubuntu 16.04.md
Created July 13, 2018 05:31 — forked from iSkore/Installing Nvidia drivers on Ubuntu 16.04.md
Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Build Specification:

  • Intel i7-6850K @ 3.60GHz
  • GTX 1070

Prerequisites

  • Fresh install of Ubuntu 16.04

Note - did not encrypt home directory or xda drive

@kuasha
kuasha / drive.ino
Created February 28, 2017 16:37
Drive Traxxas Slash 4x4 using arduino
#include <Servo.h>
Servo myservo;
Servo stearing;
int state = 99;
const int trigPin = 2;
const int echoPin = 4;
// for power servo
/*
Analog Input
Demonstrates analog input by reading an analog sensor on analog pin 0 and
turning on and off a light emitting diode(LED) connected to digital pin 13.
The amount of time the LED will be on and off depends on
the value obtained by analogRead().
The circuit:
* Potentiometer attached to analog input 0
* center pin of the potentiometer to the analog pin
### Preprocess the data here.
### Feel free to use as many code cells as needed.
from tensorflow.contrib.layers import flatten
def LeNet(x):
# Hyperparameters
mu = 0
sigma = 0.1
@kuasha
kuasha / readme.md
Created January 2, 2017 17:53 — forked from baraldilorenzo/readme.md
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@kuasha
kuasha / AlexNet.py
Last active January 7, 2017 00:37 — forked from JBed/srds_edge.png
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
#AlexNet with batch normalization in Keras
#input image is 224x224
model = Sequential()
model.add(Convolution2D(64, 3, 11, 11, border_mode='full'))