Skip to content

Instantly share code, notes, and snippets.

View ghadesi's full-sized avatar
🪢
Playing

Amin Ghadesi ghadesi

🪢
Playing
View GitHub Profile
@ghadesi
ghadesi / developer_persian_dance.py
Created March 7, 2020 10:55 — forked from iamvee/developer_persian_dance.py
رقص کامندلاینی مخصوص دولوپر‌ها
import time
import os
frames = [
" \n \n uj))===~===9 \n |==))===~===))2 \n |========~======i \n 7=)%)f====~=======! \n GhhO)(|1~i~~~~~||(|~ \n hhhh)((|~~~~~~~|(|x)I \n n+lh))(g~~~~~~~((che4n \n ~~~~))f&{~~~~~~()rheZh< \n w4% ()))v)}7eh7~===()?hehhf
@ghadesi
ghadesi / install-opencv-2.4.13-in-ubuntu.sh
Created January 26, 2017 13:51 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install opencv-2.4.13 in Ubuntu 16.04
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
@ghadesi
ghadesi / .gitignore
Created July 16, 2016 13:57 — forked from reagent/.gitignore
Curses Windowing Example
demo
*.swp
@ghadesi
ghadesi / cbrgen.tcl
Created July 4, 2016 05:02 — forked from xu3kev/cbrgen.tcl
ns2
#
# Copyright (c) 1999 by the University of Southern California
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@ghadesi
ghadesi / aodv_802_15_4.tcl
Created July 4, 2016 04:33 — forked from abhinavgupta/aodv_802_15_4.tcl
A code snippet that implements a simple star topology with IEEE 802.15.4. Routing protocol - AODV. Simple Beginner simulation in NS2.
# Generated by Topology Generator for Network Simulator (c)
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy/802_15_4 ;# network interface type
set val(mac) Mac/802_15_4 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 100 ;# max packet in ifq
set val(nn) 500 ;# number of mobilenodes
@ghadesi
ghadesi / linux_fun.md
Created October 28, 2015 09:57 — forked from marianposaceanu/linux_fun.md
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!