This is one of those projects that are done for the fun of it. It uses x11 API calls to turn caps lock on and off, sometimes it doesn’t reset the caps lock state after exiting. Run in a console and use CTRL+C to exit.
Dependencies,
X11, libxtst-dev
This is one of those projects that are done for the fun of it. It uses x11 API calls to turn caps lock on and off, sometimes it doesn’t reset the caps lock state after exiting. Run in a console and use CTRL+C to exit.
Dependencies,
X11, libxtst-dev
It’s the longest C project I’ve written to date. I used linked lists in order to make it fast, one node of the list represents a number and its properties and the operator affecting it. Branches are introduced to mimic brackets. The user will give a normal string input like “1+2″ and the output will be 3. But what they don’t see is the implementation. The list will include two nodes for 1 and 2 and with their operators(both + in this case). Then the calculation function will go through this list.
When there are brackets, for example : 1+(1+5)/6 the two lists will be made and one will have +1,+5 and it’ll be linked at the appropriate location on the main list which will be like 1+[link_to_list_1]/6 since the calculation is done recursively, when the function reaches the end of the main list other child lists’ values will be assigned and then simplified.
It includes the following preset functions(it only supports one argument functions up to now),
sin, cos, tan, asin, acos, atan. dtor, rtod, fact
Phenny is an IRC bot. And Film Manager is a python module for Phenny which keeps track of the films that the people in some channel like/dislike. It needs sqlite 3 to keep track of the database
Add,
if not input.admin return
To the start of film_m.py’s fadd function to only allow admins to add films