Skip to content

Instantly share code, notes, and snippets.

Ahmed Samir Samir55

Block or report user

Report or block Samir55

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmp2.py
import numpy as np
def run(input_file, step=0.1, iterations=1):
n = 0 # Number of nodes.
m = 0 # Number of voltage sources.
components = [] # List of all components found in the netlist.
node_res_dic = {} # Dictionary of resistances where key is the node number and the resistance is the value.
res_node_dic = {} # Dictionary of resistances where key is the resistance and the node number is the value.
View TMP.py
import ast
def encode(input_file, output_file):
payloads = [x.rstrip() for x in open(input_file)]
# Append char count
payloads_with_char_count = []
for pl in payloads:
payload_with_char_count = str(len(pl) + 2) + pl
payloads_with_char_count.append(payload_with_char_count)
@Samir55
Samir55 / textmass.py
Created Jul 28, 2018 — forked from kanzure/textmass.py
hplusroadmap irc log visualization
View textmass.py
"""
Render an image of the "text mass" per minute per day of logs. Horizontal
minutes against vertical days. The color of each pixel represents the relative
text mass for that time slice (that minute).
http://gnusha.org/logs/graphs/300-days-anycolor-heatmap-cropped-sorted.png
1440 minutes/day
2555 days
1440 * 2555
View GoLangRequirement.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"strings"
)
You can’t perform that action at this time.