Skip to content

Instantly share code, notes, and snippets.

View HASPIMA's full-sized avatar

Harrison Pinto HASPIMA

  • Universidad Nacional de Colombia
  • Bogotá, Colombia
  • 22:55 (UTC -05:00)
  • LinkedIn in/harrison-pinto
View GitHub Profile
@HASPIMA
HASPIMA / ns3.md
Created October 2, 2025 11:58
This a way for me to cope with the fact that installing ns3 on an Arch-based system is harder hahah

Setup on Arch-based systems for ns3.45

Setup

Building ns3

  1. Enable your virtualenv:
@HASPIMA
HASPIMA / GitHubFlavoredMarkdown.md
Created May 16, 2025 17:28 — forked from Myndex/GitHubFlavoredMarkdown.md
GitHub Flavored Markdown Cheat Sheet

Unofficial Bash Strict Mode

Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:

set -euo pipefail

set -e

@HASPIMA
HASPIMA / ns3.md
Created December 3, 2024 02:38 — forked from SGman98/ns3.md

NS3 + opengym manual installation

references: ns3 ns3-gym

Run the one line command or follow the step by step guide

One line command

@HASPIMA
HASPIMA / gaussLegendreQuadrature.py
Last active November 3, 2018 04:27
This software was made for my integral calculus class. Its main purpose is to use the Gauss–Legendre quadrature for make an approximation to integral.
# /usr/bin/python3
from math import e, sqrt
# coefficients has the respective values for each n
coefficients = (((0.0, 2.0), ()), # ((xi, wi))
((1 / sqrt(3), 1), (-1 / sqrt(3), 1)),
((0, 8 / 9), (sqrt(3 / 5), 5 / 9), (-sqrt(3 / 5), 5 / 9)),
(
(sqrt((3 - 2 * sqrt(6 / 5)) / 7), (18 + sqrt(30)) / 36),