Update slide copy
This commit is contained in:
parent
613c77f0c9
commit
f7cf6d9979
@ -18,10 +18,12 @@ html, body {
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: $mega-font-size;
|
font-size: $mega-font-size;
|
||||||
|
margin: 0.3em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: $mega-font-size / 12 * 9;
|
font-size: $mega-font-size / 12 * 9;
|
||||||
|
margin: 0.20em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
strong {
|
strong {
|
||||||
@ -42,8 +44,29 @@ li {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
color: $main-text;
|
color: $main-text;
|
||||||
font-size: $base-font-size;
|
font-size: $base-font-size;
|
||||||
|
//border: 1px solid black;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
display: inline-block;
|
||||||
|
width: 40%;
|
||||||
|
.page-1 &, .page-2 &, .page-12 & {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pre, code {
|
pre, code {
|
||||||
|
margin: 0;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
|
.page-25 & , .page-28 & {
|
||||||
|
font-size: 0.80em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: $slide-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,4 +5,7 @@
|
|||||||
- May 7, 2015
|
- May 7, 2015
|
||||||
- buddy.sandidge@gmail.com
|
- buddy.sandidge@gmail.com
|
||||||
- [github.com/xbudex/phantom-talk](https://github.com/xbudex/phantom-talk)
|
- [github.com/xbudex/phantom-talk](https://github.com/xbudex/phantom-talk)
|
||||||
- `$ docker run -p 8000:8000 buddys/phantom-talk`
|
|
||||||
|
```bawsh
|
||||||
|
$ docker run -p 8000:8000 buddys/phantom-talk
|
||||||
|
```
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
# But Buddy…
|
# But Buddy…
|
||||||
|
|
||||||
On npm there is a "phantom" and "phantomjs" package, what gives?
|
## On `npm` there is a "`phantom`" and "`phantomjs`" package, what gives?
|
||||||
|
|||||||
@ -15,7 +15,4 @@ int main() {
|
|||||||
```
|
```
|
||||||
```bash
|
```bash
|
||||||
APP
|
APP
|
||||||
$ ./a.out
|
|
||||||
Before pointer dereference
|
|
||||||
Segmentation fault (core dumped)
|
|
||||||
```
|
```
|
||||||
|
|||||||
@ -3,14 +3,3 @@
|
|||||||
- Create webpage object in JavaScript
|
- Create webpage object in JavaScript
|
||||||
- Close webpage in JavaScript
|
- Close webpage in JavaScript
|
||||||
- Do something with webpage in JavaScript
|
- Do something with webpage in JavaScript
|
||||||
|
|
||||||
```javascript
|
|
||||||
var phantom = this.phantom || {exit: function () {}};
|
|
||||||
var page = require('webpage').create();
|
|
||||||
// code, code, code…
|
|
||||||
page.open('about:blank', function () {
|
|
||||||
page.close();
|
|
||||||
console.log('☮ out!');
|
|
||||||
phantom.exit();
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|||||||
11
data/slide/130-use-after-free-code.md
Normal file
11
data/slide/130-use-after-free-code.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Use After Free
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var page = require('webpage').create();
|
||||||
|
// code, code, code…
|
||||||
|
page.open('about:blank', function () {
|
||||||
|
page.close();
|
||||||
|
console.log('☮ out!');
|
||||||
|
phantom.exit();
|
||||||
|
});
|
||||||
|
```
|
||||||
@ -3,6 +3,8 @@
|
|||||||
- phantom Object
|
- phantom Object
|
||||||
- Web Page Module
|
- Web Page Module
|
||||||
- Child Process Module
|
- Child Process Module
|
||||||
|
|
||||||
|
|
||||||
- File System Module
|
- File System Module
|
||||||
- System Module
|
- System Module
|
||||||
- Web Server Module
|
- Web Server Module
|
||||||
@ -3,9 +3,12 @@
|
|||||||
- exit
|
- exit
|
||||||
- onError
|
- onError
|
||||||
- version
|
- version
|
||||||
|
- libraryPath
|
||||||
|
- injectJs
|
||||||
|
|
||||||
|
|
||||||
|
- scriptName
|
||||||
- addCookie
|
- addCookie
|
||||||
- clearCookies
|
- clearCookies
|
||||||
- deleteCookie
|
- deleteCookie
|
||||||
- libraryPath
|
|
||||||
- injectJs
|
|
||||||
- …
|
- …
|
||||||
@ -9,9 +9,3 @@ child.stderr.on('data', function (data) {...})
|
|||||||
child.on('exit', function (code) {...})
|
child.on('exit', function (code) {...})
|
||||||
child.kill('SIGKILL')
|
child.kill('SIGKILL')
|
||||||
```
|
```
|
||||||
- execFile
|
|
||||||
```javascript
|
|
||||||
var execFile = require('child_process').execFile;
|
|
||||||
execFile('some-command', ['flags'], null, function (err, stdout, stderr) {
|
|
||||||
})
|
|
||||||
```
|
|
||||||
10
data/slide/180-child-2.md
Normal file
10
data/slide/180-child-2.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Child Process Module
|
||||||
|
|
||||||
|
- execFile
|
||||||
|
```javascript
|
||||||
|
var execFile = require('child_process').execFile;
|
||||||
|
function execCb(err, stdout, stderr) {
|
||||||
|
// handle callback
|
||||||
|
}
|
||||||
|
execFile('some-command', ['flags'], null, execCb);
|
||||||
|
```
|
||||||
@ -1,10 +1,14 @@
|
|||||||
# File System Module
|
# File System Module
|
||||||
|
|
||||||
|
- absolute
|
||||||
- read
|
- read
|
||||||
- move
|
- move
|
||||||
- remove
|
- remove
|
||||||
- list
|
- list
|
||||||
|
|
||||||
|
|
||||||
- makeDirectory/makeTree
|
- makeDirectory/makeTree
|
||||||
- isDirectory/isExecutable/isFile/isLink
|
- isDirectory/isFile
|
||||||
|
- isExecutable/isLink
|
||||||
- removeDirectory/removeTree
|
- removeDirectory/removeTree
|
||||||
- …
|
- …
|
||||||
@ -5,7 +5,10 @@
|
|||||||
- render
|
- render
|
||||||
- includeJs
|
- includeJs
|
||||||
- url
|
- url
|
||||||
|
|
||||||
|
|
||||||
- title
|
- title
|
||||||
- content
|
- content
|
||||||
- onResourceReceived/onResourceRequested
|
- onResourceReceived
|
||||||
|
- onResourceRequested
|
||||||
- …
|
- …
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var phantom = phantom || {exit: function () {}};
|
var phantom = phantom || {exit: function () {}};
|
||||||
var _ = require('../../vendor/underscore/underscore');
|
window._ = require('../../vendor/underscore/underscore');
|
||||||
phantom.injectJs('../../vendor/backbone/backbone.js');
|
phantom.injectJs('../../vendor/backbone/backbone.js');
|
||||||
console.log(_.toString());
|
console.log(_.toString());
|
||||||
console.log(Backbone.View.toString());
|
console.log(Backbone.View.toString());
|
||||||
@ -1,6 +0,0 @@
|
|||||||
# More goodies
|
|
||||||
|
|
||||||
- The `--remote-debugger-port [debug-port]` flag
|
|
||||||
- Web server module
|
|
||||||
- Use a WebSocket in a webpage
|
|
||||||
- So much awesomeness
|
|
||||||
6
data/slide/290-more.md
Normal file
6
data/slide/290-more.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# What about the rest of the browser?
|
||||||
|
|
||||||
|
- HTML5?
|
||||||
|
|
||||||
|
|
||||||
|
- CSS3?
|
||||||
Loading…
Reference in New Issue
Block a user