v4.42.0 (2020-01-24)
Implemented enhancements:
#!/usr/bin/env python | |
# encoding: utf-8 | |
# Copyright (C) 2001-2007 Martin Blais. All Rights Reserved | |
# Copyright (C) 2010 Bear http://code-bear.com/bearlog/ | |
# Copyright (C) 2013 lrq3000 | |
# Excerpt from SnakeFood to recursively list all imports of modules using AST parsing | |
# Additions to print the versions of each module if available |
""" | |
This creates the following GIF, where the text appears to be "embedded" | |
in the video and "disappears" behind rapunzel. | |
http://i.imgur.com/gxEHfLX.gif | |
""" | |
from moviepy.editor import * | |
import numpy as np | |
import skimage.morphology as skm |
#!/bin/bash | |
# Packets Loss Watch | |
# Simple SHELL script for Linux and UNIX system monitoring with | |
# ping command | |
# | |
# Copyright (c) 2006 nixCraft project <http://www.cyberciti.biz/fb/> | |
# Copyleft 2013 Stephen Larroque | |
# This script is licensed under GNU GPL version 2.0 or above | |
# | |
# This script was inspired by a nixCraft script http://www.cyberciti.biz/tips/simple-linux-and-unix-system-monitoring-with-ping-command-and-scripts.html |
; N-Layer Neural Network semi-vectorized implementation in NetLogo 5.0.4 by Stephen Larroque | |
; This code implements standalone procedure to learn a n-layer neural network in regression/prediction of real-valued outputs or classification using one-vs-all in case of multiple classes. See go-learn for a practical example of usage. | |
; This is a somewhat direct translation from an Octave code, hence the recreation of missing functions like matrix:slice. | |
; This code does not necessitate any external library but the matrix extension, included in the standard NetLogo. | |
; Licensed under Simplified BSD License, feel free to reuse the code. | |
; | |
; TODO: implement nnCheckGradient | |
; TODO: implement classification | |
; TODO: implement optional visualisation, with turtles nodes, links, label on nodes and links with values (both forward and backward), one output node to show the prediction and two controls to disable/enable and for refresh rate |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
QVMDisas.py | |
Created by Macpunk on 2009-09-20. | |
Updated by GrosBedo on 2010-04-12 | |
Copyright (c) 2009 Dalton M. Cummings. All rights reserved. | |
CHANGELOG |
from modulefinder import ModuleFinder | |
finder = ModuleFinder() | |
finder.run_script('yourscript.py') | |
moduleslist = {} | |
for name, mod in finder.modules.iteritems(): | |
filename = mod.__file__ | |
if filename is None: | |
continue |
#!/usr/bin/env python | |
# | |
# Flattened nested dict | |
# Copyright (C) 2017 Larroque Stephen | |
# | |
# Licensed under the MIT License (MIT) | |
# | |
# 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 |
import dis | |
import types | |
def getFuncByName(fname): | |
possibles = globals().copy() | |
possibles.update(locals()) | |
f = possibles.get(fname) | |
if f: | |
return f | |
else: |
## issue: https://bugs.python.org/issue19264 | |
import ctypes | |
import subprocess | |
import _subprocess | |
from ctypes import byref, windll, c_char_p, c_wchar_p, c_void_p, \ | |
Structure, sizeof, c_wchar, WinError | |
from ctypes.wintypes import BYTE, WORD, LPWSTR, BOOL, DWORD, LPVOID, \ | |
HANDLE |