Skip to content

Commit

Permalink
inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
omgitsads committed Jan 19, 2012
1 parent cb20d97 commit bcf6e20
Show file tree
Hide file tree
Showing 15 changed files with 454 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source "http://rubygems.org"

gem "showoff"
31 changes: 31 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,31 @@
GEM
remote: http://rubygems.org/
specs:
blankslate (2.1.2.4)
bluecloth (2.2.0)
gli (1.4.0)
json (1.6.3)
nokogiri (1.5.0)
parslet (1.2.3)
blankslate (~> 2.0)
rack (1.4.0)
rack-protection (1.2.0)
rack
showoff (0.7.0)
bluecloth
gli (>= 1.3.2)
json
nokogiri
parslet
sinatra
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
tilt (1.3.3)

PLATFORMS
ruby

DEPENDENCIES
showoff
2 changes: 2 additions & 0 deletions config.ru
@@ -0,0 +1,2 @@
require "showoff"
run ShowOff.new
26 changes: 26 additions & 0 deletions features/01-new_api.md
@@ -0,0 +1,26 @@
<!SLIDE center #api>

# New API

<!SLIDE #api>

@@@ ruby
Scamp.new do |bot|
bot.match /^ping$/ do |room, msg|
room.say "pong"
end

bot.connect!
end

<!SLIDE center #api>

## No more instance eval hacks

<!SLIDE center #api>

## Less Pretty :(

<!SLIDE center #api>

## Way More Flexible!
43 changes: 43 additions & 0 deletions features/02-adapters.md
@@ -0,0 +1,43 @@
<!SLIDE center #adapters>

# Adapters

<!SLIDE #adapters>

@@@ ruby
Scamp.new do |bot|
bot.adapter :campfire,
Scamp::Campfire::Adapter,
subdomain: 'nwrug',
api_key: 'as89...',
rooms: [12345]

bot.connect!
end

<!SLIDE center #adapters>

# Run Multiple adapters
## Even of the same type!

<!SLIDE center #adapters>

# Super Simple API

<!SLIDE #adapters>

@@@ ruby
class TestAdapter < Scamp::Adapter
def connect!
push [nil,
Scamp::Message.new(body: "Hello")]
end
end

<!SLIDE center #adapters>

## Currently have adapters for IRC & Campfire

<!SLIDE center #adapters>

## Speak to me after if you want to write another!
31 changes: 31 additions & 0 deletions features/03-plugins.md
@@ -0,0 +1,31 @@
<!SLIDE center #plugins>

# Plugins

<!SLIDE #plugins>

@@@ ruby
Scamp.new do |bot|
bot.plugin MyPlugin

bot.connect!
end

<!SLIDE center #plugins>

# Super Simple API

<!SLIDE #plugins>

@@@ ruby
class MyPlugin < Scamp::Plugin
match /^ping$/, :say_pong

def say_pong room, msg
room.say "pong"
end
end

<!SLIDE center #plugins>

## Speak to me after if you want to write a plugin!
Binary file added font/.DS_Store
Binary file not shown.
Binary file added font/Museo_Slab_500-webfont.eot
Binary file not shown.
227 changes: 227 additions & 0 deletions font/Museo_Slab_500-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added font/Museo_Slab_500-webfont.ttf
Binary file not shown.
Binary file added font/Museo_Slab_500-webfont.woff
Binary file not shown.
25 changes: 25 additions & 0 deletions resources/resources.md
@@ -0,0 +1,25 @@
<!SLIDE center #resources>

# Github Repo
### https://github.com/wjessop/scamp/tree/2.0

<!SLIDE center #resources>

# Example bot
### https://github.com/omgitsads/Rugbot/tree/scamp
### Runs Rugbot in #nwrug (or will do)

<!SLIDE center #resources>

# When will it release?
### A week or two.

<!SLIDE center #resources>

# What adapters will it have?
### Campfire and IRC at a minimum.

<!SLIDE center #resources>

# Want to contribute?
### Speak to Me and Will after.
9 changes: 9 additions & 0 deletions showoff.json
@@ -0,0 +1,9 @@
{
"name": "Scamp 2.0",
"description": "An introduction to Scamp 2.0",
"sections": [
{"section": "title"},
{"section": "features"},
{"section": "resources"}
]
}
42 changes: 42 additions & 0 deletions slides.css
@@ -0,0 +1,42 @@
@font-face {
font-family: 'MuseoSlab500';
src: url('/file/font/Museo_Slab_500-webfont.eot');
src: url('/file/font/Museo_Slab_500-webfont.eot?#iefix') format('embedded-opentype'),
url('/file/font/Museo_Slab_500-webfont.woff') format('woff'),
url('/file/font/Museo_Slab_500-webfont.ttf') format('truetype'),
url('/file/font/Museo_Slab_500-webfont.svg#MuseoSlab500') format('svg');
font-weight: normal;
font-style: normal;
}

body {
font-family: 'MuseoSlab500';
}

#title {
background-color: #E9EFEF;
}

#api {
background-color: #EDEFC3;
}

.sh_sourceCode {
background-color: #F0F0F0;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: 7px solid #949494;
}

#adapters {
background-color: #BFDADA;
}

#plugins {
background-color: #F4DFCA;
}

#resources {
background-color: #DEF4CF;
}
15 changes: 15 additions & 0 deletions title/title.md
@@ -0,0 +1,15 @@
<!SLIDE title #title>

# Scamp

<!SLIDE center #title>

## SRLY?

<!SLIDE center #title>

# 2.0

<!SLIDE center #title>

# New Features

0 comments on commit bcf6e20

Please sign in to comment.