This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am heftig on github. | |
* I am heftig (https://keybase.io/heftig) on keybase. | |
* I have a public key whose fingerprint is 8218 F888 49AA C522 E94C F470 A5E9 288C 4FA4 15FA | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def evaluate(expression) | |
stack = [] | |
expression.split.each do |word| | |
case word | |
when "+" | |
stack << (stack.pop + stack.pop) | |
when "-" | |
arg1 = stack.pop | |
arg2 = stack.pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo: screensaver-gdbus.c foo.c | |
$(CC) -Wall -Wextra -Wno-unused-parameter $(CFLAGS) -o $@ `pkg-config --cflags --libs glib-2.0 gio-2.0 gio-unix-2.0` $^ | |
%-gdbus.c %-gdbus.h: %-dbus.xml | |
gdbus-codegen --interface-prefix org.gnome. --generate-c-code $*-gdbus --c-namespace Foo_DBus $< | |
screensaver-dbus.xml: | |
gdbus introspect -e -d org.gnome.ScreenSaver -o /org/gnome/ScreenSaver -x > $@ | |
clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jul 17 04:08:49 philomeena systemd-bus-proxyd[667]: Dropped unmatched broadcast: uid=120 gid=120 message=signal path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged | |
Jul 17 04:08:52 philomeena systemd-bus-proxyd[667]: Dropped unmatched broadcast: uid=120 gid=120 message=signal path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged | |
Jul 17 04:08:52 philomeena systemd-bus-proxyd[667]: Dropped unmatched broadcast: uid=120 gid=120 message=signal path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged | |
Jul 17 04:08:52 philomeena systemd-bus-proxyd[992]: Dropped unmatched broadcast: uid=1000 gid=1000 message=signal path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged | |
Jul 17 04:08:52 philomeena systemd-bus-proxyd[992]: Dropped unmatched broadcast: uid=1000 gid=1000 message=signal path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged | |
Jul 17 04:08:52 philomeena systemd-bus-proxyd[992] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EVEMU 1.2 | |
# Input device name: "SynPS/2 Synaptics TouchPad" | |
# Input device ID: bus 0x11 vendor 0x02 product 0x07 version 0x1b1 | |
# Supported events: | |
# Event type 0 (EV_SYN) | |
# Event code 0 (SYN_REPORT) | |
# Event code 1 (SYN_CONFIG) | |
# Event code 2 (SYN_MT_REPORT) | |
# Event code 3 (SYN_DROPPED) | |
# Event code 4 ((null)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char *foo2 () | |
{ | |
return "FOO"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Always wanted to chain comparisons the snaky way? | |
# | |
# puts 'Right there!' if 5 < x <= 15 | |
# | |
# There you go. | |
class FalseClass | |
['<', '>', '<=', '>='].each do |op| | |
eval "def #{op}(other) false end" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "deluge/ui/gtkui/connectionmanager.py", line 172, in show | |
response = self.connection_manager.run() | |
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 120, in wrapper | |
return real_cb(real_s, condition) | |
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 283, in callback | |
self.simulate() # fire Twisted timers | |
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 293, in simulate | |
self.runUntilCurrent() | |
--- <exception caught here> --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit f1b805f1fcbc84784253f823ec1266f4c664f331 | |
Author: Jan Steffens <jan@silver.(none)> | |
Date: Fri Feb 5 05:06:31 2010 +0100 | |
Make compatible with Ruby 1.9.1 reduced unit/test implementation | |
diff --git a/koans/edgecase.rb b/koans/edgecase.rb | |
index acb032b..2aedde7 100644 | |
--- a/koans/edgecase.rb | |
+++ b/koans/edgecase.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a feature request for better VCS support. | |
E.g., for Mercurial: | |
vcs=('vim:hg:http://vim.googlecode.com/hg/vim') # array of 'dest:vcs:source' | |
rev_vim=1290 | |
This would checkout revision 1290 of | |
http://vim.googlecode.com/hg/vim into $srcdir/vim: |
OlderNewer