Easy JSON wrapper modfied to wrok with suggestions

Easy JSON wrapper modfied to wrok with suggestions. This was made for small discord bots, for big bots you should not use this. Clone this file into your project folder. Add from suggester import SuggestionBoard to the top of your project. board.add_suggestion(content: str, author: int) Creates a suggestion in the draft category. Will return the suggestions ID (sID). “1234567890”: {“content”: content, “author”: author} board.approve_suggestion(sID: str) Moves a suggestion from the draft category to the approved category. Will raise: NoSuchSuggestion: if […]

Read more

Simple Python Script to Parse Apache Log, Get all Unique IPs and Urls visited by that IP

Simple Python Script to Parse Apache Log, Get all Unique IPs and Urls visited by that IP. It will create 3 different files. allIP.txt – Contains all the IPs in raw uniqueIP.txt – Contains all unique IP’s ipAndUrl.txt – Contains list of Urls visited by that particular IP. git clone https://github.com/KathanP19/Parse_Apache_Log cd Parse_Apache_Log Usage: parse_log.py [options] Options: -h, –help show this help message and exit -f FILE, –file=FILE Path of you apache log file. -v, –verbose Verbose Mode. python3 parse_log.py […]

Read more

Equibles Stocks API for Python

Requirements. Python 2.7 and 3.4+ Installation & Usage pip install If the python package is hosted on Github, you can install directly from Github pip install git+https://github.com/equibles/stocks-python.git (you may need to run pip with root permission: sudo pip install git+https://github.com/equibles/stocks-python.git) Then import the package: Setuptools Install via Setuptools. python setup.py install –user (or sudo python setup.py install to install the package for all users) Then import the package: Getting Started Please follow the installation procedure and then run the following:

Read more

NuPIC Studio – An all­-in-­one tool that allows users create a HTM neural network from scratch

NuPIC Studio NuPIC Studio is an all­-in-­one tool that allows users create a HTM neural network from scratch, train it, collect statistics, and share it among the members of the community. It is not just a visualization tool but an HTM builder, debugger and laboratory for experiments. It is ideal for newbies with little intimacy with NuPIC code as well as experts that wish a better productivity. Among its features and advantages: Users can open, save, or change their “HTM […]

Read more

A web-based visualization and debugging platform for NuPIC

A web-based visualization and debugging platform for NuPIC. Usage Set up cerebro2.server to export your model state. Then, run: cd static python -m SimpleHTTPServer 8000 Finally, visit the following URL in your browser: Screenshots To enable taking screenshots with the p keyboard shortcut, open js/classes/abstract_visualization.js and uncomment the line under the note about screenshots. Quicker Setup See ‘run_server.py’ for a quicker setup. GitHub View Github    

Read more

Code examples for running V4L2 USB Cameras on NVIDIA Jetson Developer Kits

Code examples for running V4L2 USB Cameras on NVIDIA Jetson Developer Kits Here are a few examples on how to interface a USB Camera with a Jetson Developer Kit through V4L2 and GStreamer. “Plug and Play” USB cameras on Linux, such as webcams, use the kernel module uvcvideo to interface with the Video 4 Linux subsystem (V4L2). Several specialty cameras such as the Stereolabs ZED camera and Intel RealSense cameras also use uvcvideo. In the Jetson Camera Architecture, you can […]

Read more

Cross-seed utility with web interface

A Web app to Cross-Seed torrents in Deluge/qBittorrent/Transmission based on CrossSeedAutoDL Require Jackett Deluge/qBittorrent/Transmission Docker Installation docker run -d –name seedcross -p 8019:8019 ccf2012/seedcross:latest Login open http://:8019 in browser login with admin:admin Settings Start from Settings tab, fill the fields carefully: Download Client Setting: Type, Host, Port, Username, Password as usual, note the Host must be an IP address, not url. Jackett Setting: you should have started a proper configured Jackett server, thus you can get the Jackett Url and […]

Read more

Team project Hilo Game

Team project Hilo Game A game where the player is dealt a card, then must guess if the next card will be higher or lower. If he guesses correctly, he wins points. If not, he loses points. Hilo is played according to the following rules. The player starts the game with 300 points.Individual cards are represented as a number from 1 to 13.The current card is displayed.The player guesses if the next one will be higher or lower.The the next […]

Read more

A note taking app with python

A simple note-taking app. Think ‘sticky notes’ but slightly more organized. A place for all of your quick notes, reminders, or lists. All viewable in a single, unobtrusive interface and stored locally. Made using tkinter. Installation Either download the pre-packaged exe here, Or package yourself using pyinstaller main.py -w , source code on github, Or run main.py file. May also run the CLI by running the rubicon_reminders_cli file. Note that these programs do not share notes between eachother. GitHub View […]

Read more

Tic-Tac-Toe game in python

This game is very popular amongst all of us and even fun to build as a Python project. I am pretty sure most of us know how to play it but let me give a quick brush up. It is a two-player game and consists of a nine-square grid. Each player chooses their move and with O or X and marks their square one at each chance. The player who succeeds in making their marks all in one line whether […]

Read more
1 304 305 306 307 308 985