Skip to content

Instantly share code, notes, and snippets.

View cseas's full-sized avatar
👨‍💻
Excelsior!

Abhijeet Singh cseas

👨‍💻
Excelsior!
View GitHub Profile
@cseas
cseas / file.py
Created February 22, 2020 05:09
hello
print("hello")
@cseas
cseas / simple.tcl
Last active December 20, 2023 14:26
TCL script to run a simple simulation using NS2 and NAM
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
@cseas
cseas / points.cpp
Created February 10, 2019 06:05
Simple C++ OpenGL program to draw points on a 2D canvas
#include<GL/glut.h>
void display() {
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 0.0, 0.0);
glBegin(GL_POINTS);
glVertex2f(10.0, 10.0);
glVertex2f(150.0, 80.0);
glVertex2f(100.0, 20.0);