Skip to content

Instantly share code, notes, and snippets.

View Xinayder's full-sized avatar

Alexandre Oliveira Xinayder

View GitHub Profile
@nicoguaro
nicoguaro / phase_portrait.png
Last active March 10, 2022 12:06
Phase portrait for a system with a strange critical point.
phase_portrait.png
@nicoguaro
nicoguaro / neon_example.png
Last active March 19, 2024 06:03
Plots with neon-glow in Matplotlib.
neon_example.png
@keyou
keyou / socket_portable
Created August 26, 2019 06:16 — forked from FedericoPonzi/socket_portable.c
C sockets portable in windows/linux example
// As seen on http://www.di.uniba.it/~reti/LabProRete/Interazione(TCP)Client-Server_Portabile.pdf
#if defined WIN32
#include <winsock.h>
#else
#define closesocket close
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#endif
#include <stdio.h>
@mforets
mforets / plot_sage.md
Last active February 23, 2024 10:41
plotting cheatsheet for SageMath
@nicoguaro
nicoguaro / mohr2d.py
Last active July 28, 2022 11:12
Scripts to plot Mohr circles.
"""
Mohr circle in 2D.
@author: Nicolás Guarín-Zapata
@date: May 2020
"""
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams['font.family'] = 'serif'
@jirutka
jirutka / rules-both.iptables
Created September 18, 2012 12:42
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is