Skip to content

Instantly share code, notes, and snippets.

View imandarabi's full-sized avatar

iman darabi imandarabi

View GitHub Profile
@imandarabi
imandarabi / SNCEP521.pm
Created June 24, 2014 05:14
ZoneMinder Sony Network Camera SNC-EP521 Control Protocol Module
# ==========================================================================
#
# ZoneMinder Sony Network Camera SNC-EP521 Control Protocol Module, date: Sun Jun 22 10:26:25 IRDT 2014
# Copyright (C) 2013-2014 Iman Darabi <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@imandarabi
imandarabi / RX550.pm
Last active August 29, 2015 14:03
ZoneMinder Sony Network Camera RX550 Control Protocol Module
# ==========================================================================
#
# ZoneMinder Sony Network Camera RX550 Control Protocol Module, date: Sun Jul 6 16:20:25 IRDT 2014
# Copyright (C) 2013-2014 Iman Darabi
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@imandarabi
imandarabi / One_tire_CRAN.py
Last active January 17, 2019 12:59
Energy-efficient resource assignment and power allocation / simulation
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from numpy.random import randint, uniform # generate random matrix
from math import log, hypot # log base 2 => log(num,2)
from copy import deepcopy
class One_tire_CRAN (object):
def __init__ (self):
self.sigma = None
@imandarabi
imandarabi / rfm130.c
Last active March 30, 2019 09:12
functions for 13.56MHz RFID Reader / Writer Module ( RFM-130)
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/time.h>