Skip to content

Instantly share code, notes, and snippets.

View SYZYGY-DEV333's full-sized avatar

SYZYGY-DEV333 SYZYGY-DEV333

View GitHub Profile
@SYZYGY-DEV333
SYZYGY-DEV333 / task-killer.c
Last active January 23, 2017 15:21
Task-killer: a command-line Windows task manager/task killer in C
#include <stdio.h>
#include <stdlib.h>
// Copyright (c) 2016, SYZYGY-DEV333
// All rights reserved.
// Licensed under SPL 1.0 [splicense.pen.io]
int menu();
void lista_processos();
void mata_processo_nome();
@SYZYGY-DEV333
SYZYGY-DEV333 / polyfactor.py
Last active February 10, 2016 22:44
Factor a polynomial using the roots
#!/usr/bin/env python
# Polynomial Root Finder
# SYZYGY-DEV333
# Apache 2.0
step = 0.001 # smaller steps are more accurate, but slower
start = -10 # these parameters should be fine at -10 and 10
stop = 10
print "Python Polynomial Factoring"
@SYZYGY-DEV333
SYZYGY-DEV333 / rootfinder.py
Last active February 7, 2016 13:40
Polynomial root finder in Python. Quick and dirty, but it works. Have fun! :-)
#!/usr/bin/env python
# Polynomial Root Finder
# SYZYGY-DEV333
# Apache 2.0
print "Python Polynomial Root Finder"
print "Use '**' to mean '^'"
while 1 == 1: