Skip to content

Instantly share code, notes, and snippets.

$ gpg -vv
gpg: Go ahead and type your message ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJXWz8jAAoJEFfFec8qXSuDILkQAJ8z03FyfLZpwaQPRKPEGRyz
pkdOeHm6BDEbxB4VLeSrzUgzI2EcTMuTuFbev6EyAbpP+qnAKCjQU71GpBkpBipF
wEwmQfl1+/mLmkt2y8jdmpTndmvaaQ+hfNsp1H674vGWLx8GwVUwrdeDFUuqxk0m
ueaGQI296ClNgUIVeqx+gIIkZqyluilnZqLJnWosrIz9kRl3GhhL+yeP8bLCa+t8
SHyktvjwJ6QKGE9GkoHuM7j1ehSZ8irWZcTHnmUyxeRj6UN182Uj6RUFTAY3syH+
00d2910: 4350 5520 7469 6d65 206c 696d 6974 2065 CPU time limit e
00d2920: 7863 6565 6465 6400 0000 0000 0000 0000 xceeded.........
00d2930: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00d2940: 5029 4d00 0000 0000 1100 0000 0000 0000 P)M.............
00d2950: 4845 4c4c 4f20 4845 4c4c 4f20 6865 6c6c HELLO HELLO hell
00d2960: 6f00 0000 0000 0000 0000 0000 0000 0000 o...............
00d2970: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00d2980: 9029 4d00 0000 0000 1200 0000 0000 0000 .)M.............
00d2990: 5246 5320 7370 6563 6966 6963 2065 7272 RFS specific err
00d29a0: 6f72 0000 0000 0000 0000 0000 0000 0000 or..............
.hero {
background: ".."
&__overlay {
background: ".."
}
}
Here the concrete Game we play on IRC is defined???
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/word_game.rb#L12
Notice the Game class is created here... it inherits from a game class for the WordGames module
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/word_game.rb#L179
And then we have what I believe to be the abstract class here:
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/wordgames/game.rb#L7-L8
match(/guess (\S+)/, method: :guess)
def guess(m, guessed_word)
result = @game.guess(guessed_word)
reply = case result
when :missed_north
"My word comes after #{guessed_word}."
when :missed_south
"My word comes before #{guessed_word}."
when :correct
/*
* Styles defined here are loaded by the action center iframe embed.
*/
html {
margin-left: auto;
margin-right: auto; }
body {
font-size: 21px; }
html {
width: 70%;
margin-left: auto;
margin-right: auto;
}
h2.tool-title {
display:none;
require 'kindler'
require 'ostruct'
book = Kindler::Book.new title: "Cool Magazine"
book.mobi_type = :magzine
# articles = Article.all
a1 = OpenStruct.new({ "title" => "My Important News", "author" => "Max", "content" => "Bla bla bla bla bla", "section" => "News" })
a2 = OpenStruct.new({ "title" => "My Irrelivant News", "author" => "Max", "content" => "Bla bla bla bla bla", "section" => "News" })
a3 = OpenStruct.new({ "title" => "My Interesting Story", "author" => "Max", "content" => "Bla bla bla bla bla", "section" => "Stories" })
@TheNotary
TheNotary / bucket_sync_service.rb
Created November 27, 2015 01:24 — forked from bantic/bucket_sync_service.rb
ruby class to copy from one aws s3 bucket to another
require 'aws/s3' # gem name is 'aws-sdk'
class BucketSyncService
attr_reader :from_bucket, :to_bucket, :logger
attr_accessor :debug
DEFAULT_ACL = :public_read
# from_credentials and to_credentials are both hashes with these keys:
# * :aws_access_key_id
(Map.h)
#ifndef HEADER_MAP
#define HEADER_MAP
class Map {
public:
Map(uint8_t walls_bmp[8]);
uint8_t walls[8];
void draw(Adafruit_BicolorMatrix matrix);
};