Skip to content

Commit 209d1fc

Browse files
committed
First slides
0 parents commit 209d1fc

File tree

108 files changed

+19213
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+19213
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
.svn
3+
log/*.log
4+
tmp/**
5+
node_modules/
6+
.sass-cache
7+
.idea

.ruby-version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2.1.6
2+

Capfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
2+
3+
set :deploy_to, "/var/www/webdev101.makandra.de"
4+
set :user, "deploy-webdev_p"
5+
set :use_sudo, false
6+
set :deploy_via, :remote_cache
7+
set :copy_exclude, [ '.git' ]
8+
set :clear_cache, :false
9+
10+
set :repository, "git://github.com/makandra/webdev101"
11+
set :scm, :git
12+
13+
server "c23.bob.makandra.de", :app, :web, :primary => true
14+
server "c42.bob.makandra.de", :app, :web
15+
16+
ssh_options[:forward_agent] = true
17+
18+
namespace :deploy do
19+
20+
task :restart do
21+
end
22+
23+
task :start do
24+
end
25+
26+
task :stop do
27+
end
28+
29+
task :migrate do
30+
end
31+
32+
task :finalize_update do
33+
end
34+
35+
end
36+
37+
task :fix_remote_cache, :role => :app do
38+
if fetch(:deploy_via) == :remote_cache
39+
run "cd #{shared_path}/cached-copy; git remote set-url origin #{fetch(:repository)}"
40+
end
41+
end

Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'haml'
4+
gem 'guard-haml'
5+
gem 'redcarpet'
6+
7+
group :deploy do
8+
gem 'capistrano', '<3'
9+
gem 'capistrano_colors'
10+
end

Gemfile.lock

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
capistrano (2.15.6)
5+
highline
6+
net-scp (>= 1.0.0)
7+
net-sftp (>= 2.0.0)
8+
net-ssh (>= 2.0.14)
9+
net-ssh-gateway (>= 1.1.0)
10+
capistrano_colors (0.5.5)
11+
coderay (1.1.0)
12+
ffi (1.9.10)
13+
formatador (0.2.5)
14+
guard (2.13.0)
15+
formatador (>= 0.2.4)
16+
listen (>= 2.7, <= 4.0)
17+
lumberjack (~> 1.0)
18+
nenv (~> 0.1)
19+
notiffany (~> 0.0)
20+
pry (>= 0.9.12)
21+
shellany (~> 0.0)
22+
thor (>= 0.18.1)
23+
guard-haml (1.1.2)
24+
guard (~> 2.0)
25+
haml (>= 3.0)
26+
haml (4.0.7)
27+
tilt
28+
highline (1.7.8)
29+
listen (3.0.3)
30+
rb-fsevent (>= 0.9.3)
31+
rb-inotify (>= 0.9)
32+
lumberjack (1.0.9)
33+
method_source (0.8.2)
34+
nenv (0.2.0)
35+
net-scp (1.2.1)
36+
net-ssh (>= 2.6.5)
37+
net-sftp (2.1.2)
38+
net-ssh (>= 2.6.5)
39+
net-ssh (3.0.1)
40+
net-ssh-gateway (1.2.0)
41+
net-ssh (>= 2.6.5)
42+
notiffany (0.0.8)
43+
nenv (~> 0.1)
44+
shellany (~> 0.0)
45+
pry (0.10.3)
46+
coderay (~> 1.1.0)
47+
method_source (~> 0.8.1)
48+
slop (~> 3.4)
49+
rb-fsevent (0.9.6)
50+
rb-inotify (0.9.5)
51+
ffi (>= 0.5.0)
52+
redcarpet (3.3.3)
53+
shellany (0.0.1)
54+
slop (3.6.0)
55+
thor (0.19.1)
56+
tilt (2.0.1)
57+
58+
PLATFORMS
59+
ruby
60+
61+
DEPENDENCIES
62+
capistrano (< 3)
63+
capistrano_colors
64+
guard-haml
65+
haml
66+
redcarpet
67+
68+
BUNDLED WITH
69+
1.10.6

Gruntfile.js

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/* global module:false */
2+
module.exports = function(grunt) {
3+
var port = grunt.option('port') || 8000;
4+
// Project configuration
5+
grunt.initConfig({
6+
pkg: grunt.file.readJSON('package.json'),
7+
meta: {
8+
banner:
9+
'/*!\n' +
10+
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
11+
' * http://lab.hakim.se/reveal-js\n' +
12+
' * MIT licensed\n' +
13+
' *\n' +
14+
' * Copyright (C) 2015 Hakim El Hattab, http://hakim.se\n' +
15+
' */'
16+
},
17+
18+
qunit: {
19+
files: [ 'test/*.html' ]
20+
},
21+
22+
uglify: {
23+
options: {
24+
banner: '<%= meta.banner %>\n'
25+
},
26+
build: {
27+
src: 'js/reveal.js',
28+
dest: 'js/reveal.min.js'
29+
}
30+
},
31+
32+
sass: {
33+
core: {
34+
files: {
35+
'css/reveal.css': 'css/reveal.scss',
36+
}
37+
},
38+
themes: {
39+
files: [
40+
{
41+
expand: true,
42+
cwd: 'css/theme/source',
43+
src: ['*.scss'],
44+
dest: 'css/theme',
45+
ext: '.css'
46+
}
47+
]
48+
}
49+
},
50+
51+
autoprefixer: {
52+
dist: {
53+
src: 'css/reveal.css'
54+
}
55+
},
56+
57+
cssmin: {
58+
compress: {
59+
files: {
60+
'css/reveal.min.css': [ 'css/reveal.css' ]
61+
}
62+
}
63+
},
64+
65+
jshint: {
66+
options: {
67+
curly: false,
68+
eqeqeq: true,
69+
immed: true,
70+
latedef: true,
71+
newcap: true,
72+
noarg: true,
73+
sub: true,
74+
undef: true,
75+
eqnull: true,
76+
browser: true,
77+
expr: true,
78+
globals: {
79+
head: false,
80+
module: false,
81+
console: false,
82+
unescape: false,
83+
define: false,
84+
exports: false
85+
}
86+
},
87+
files: [ 'Gruntfile.js', 'js/reveal.js' ]
88+
},
89+
90+
connect: {
91+
server: {
92+
options: {
93+
port: port,
94+
base: '.',
95+
livereload: true,
96+
open: true
97+
}
98+
}
99+
},
100+
101+
zip: {
102+
'reveal-js-presentation.zip': [
103+
'index.html',
104+
'css/**',
105+
'js/**',
106+
'lib/**',
107+
'images/**',
108+
'plugin/**'
109+
]
110+
},
111+
112+
watch: {
113+
options: {
114+
livereload: true
115+
},
116+
js: {
117+
files: [ 'Gruntfile.js', 'js/reveal.js' ],
118+
tasks: 'js'
119+
},
120+
theme: {
121+
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
122+
tasks: 'css-themes'
123+
},
124+
css: {
125+
files: [ 'css/reveal.scss' ],
126+
tasks: 'css-core'
127+
},
128+
html: {
129+
files: [ 'index.html']
130+
}
131+
}
132+
133+
});
134+
135+
// Dependencies
136+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
137+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
138+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
139+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
140+
grunt.loadNpmTasks( 'grunt-contrib-watch' );
141+
grunt.loadNpmTasks( 'grunt-sass' );
142+
grunt.loadNpmTasks( 'grunt-contrib-connect' );
143+
grunt.loadNpmTasks( 'grunt-autoprefixer' );
144+
grunt.loadNpmTasks( 'grunt-zip' );
145+
146+
// Default task
147+
grunt.registerTask( 'default', [ 'css', 'js' ] );
148+
149+
// JS task
150+
grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
151+
152+
// Theme CSS
153+
grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
154+
155+
// Core framework CSS
156+
grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
157+
158+
// All CSS
159+
grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
160+
161+
// Package presentation to archive
162+
grunt.registerTask( 'package', [ 'default', 'zip' ] );
163+
164+
// Serve presentation locally
165+
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
166+
167+
// Run tests
168+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
169+
170+
};

Guardfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
# Sample guardfile block for Guard::Haml
5+
# You can use some options to change guard-haml configuration
6+
# output: 'public' set output directory for compiled files
7+
# input: 'src' set input directory with haml files
8+
# run_at_start: true compile files when guard starts
9+
# notifications: true send notifictions to Growl/libnotify/Notifu
10+
# haml_options: { ugly: true } pass options to the Haml engine
11+
12+
guard :haml, input: 'source' do
13+
watch(/^.+(\.html\.haml)$/)
14+
end

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2015 Hakim El Hattab, http://hakim.se
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Web development 101
2+
===================
3+
4+
To start the slides, open `index.html`
5+
6+
Slides are also deployed at <http://webdev101.makandra.de>
7+
8+
Code examples are in `examples`.
9+
10+
One-line web server to serve the presentation and all examples:
11+
12+
```
13+
ruby -run -ehttpd . -p8000
14+
```
15+
16+
17+
Making changes to the repo
18+
--------------------------
19+
20+
Edit slides in `source/index.haml`.
21+
22+
You can start guard using `bundle exec guard`.
23+
It will compile `source/index.haml` to `index.html` whenever you change it.

bin/server

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby -run -ehttpd . -p8000

0 commit comments

Comments
 (0)