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
/* | |
* gcc -g `pkg-config gtk+-3.0 --libs --cflags` main.c -o main | |
*/ | |
#include <err.h> | |
#include <stddef.h> | |
#include <stdlib.h> | |
#include <gtk/gtk.h> |
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
account default | |
host mail.messagingengine.com | |
port 587 | |
protocol smtp | |
auth on | |
from [email protected] | |
user [email protected] | |
password topsecretpassword! | |
tls on | |
tls_nocertcheck |
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
/* Does not work if apmd(8) is running. */ | |
/* Requires read-write access to /dev/apmctl. */ | |
#include <sys/types.h> | |
#include <sys/event.h> | |
#include <sys/time.h> | |
#include <sys/ioctl.h> | |
#include <machine/apmvar.h> | |
#include <fcntl.h> |
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 mc_sort(l) | |
a = l.dup | |
while (! sorted?(a)) | |
a.shuffle! | |
end | |
a | |
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
*dynamicColors:true | |
*rightScrollBar:true | |
*reverseWrap:true | |
*multiScroll:true | |
*scrollTtyOutput:false | |
*scrollKey:true | |
*saveLines:10000 | |
*showMissingGlyphs:true | |
*termName:xterm-new | |
*colorULMode:true |
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
= HMAC (H-based Message Authentication Codes): | |
RFC 2104 | |
H is the hashing function. | |
HMAC-SHA1 sets H=SHA1. | |
H(K xor O, H(K xor I, E)) | |
where | |
K = shared secret key | |
O = padding, 0x5C repeated B times | |
I = padding, 0x36 repeated B times |
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
if true { | |
fileinto "Inbox"; | |
addflag "\\Seen"; | |
fileinto "INBOX.Archive"; | |
removeflag "\\Seen"; | |
} |
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
#!/bin/sh | |
main() { | |
hello_world=0 | |
quine=0 | |
nine=0 | |
plus=0 | |
accumulator=0 | |
while getopts hq9+ opt; do |
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
class ThingyMaker(object): | |
def __init__(self): | |
self.thingy = None | |
self.widget = None | |
def with_thingy(self, thingy): | |
self.thingy = thingy | |
return self | |
def with_widget(self, widget): |
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
class Io | |
attr_reader :action | |
def initialize(&action) | |
@action = action | |
end | |
def bind(&f) | |
Io.new do | |
result = @action.call | |
f.call(result) |
NewerOlder