Skip to content

Instantly share code, notes, and snippets.

View ohcibi's full-sized avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
$ ->
delaySearch = null # WATCH OUT
updatePosts = ->
$.get $("#search input").attr("action"), $("#search").serialize(), null, "script"
false
startUpdatePosts = ->
delaySearch = setTimeout updatePosts, 3000 # YOU SEE?
/********************
* crispsContest.js *
********************
*
* The Algorithm is almost in our grasp!
* At long last, we will definitively establish
* that 3SAT is solvable in polynomial time. It's
* been a long, strange journey, but it will all be
* worth it.
*
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
@ohcibi
ohcibi / client.py
Last active July 14, 2018 09:13 — forked from caspian311/client.py
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
bus = dbus.SystemBus()
service = bus.get_object('com.example.service', "/com/example/service")
message = service.get_dbus_method('get_message', 'com.example.service.Message')
quit = service.get_dbus_method('quit', 'com.example.service.Quit')
print("Mesage from service: " + message())