View debug_dalek_http_auth.js
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
module.exports = { | |
'A lot of screenshots': function (test) { | |
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}]; | |
var pages = ['http://123:www@google.com']; | |
resolutions.forEach(function (res) { | |
pages.forEach(function (page) { | |
test.open(page) | |
.resize(res) |
View test_stage.rake
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
desc "Test env" | |
task :test_env do | |
on roles(:all) do | |
puts fetch(:stage) # puts "local" | |
if fetch(:stage) == 'local' | |
puts "helo" # does not put "helo", when called as "cap local test_env", why? | |
end | |
end |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://fb.me/react-15.3.0.min.js"></script> | |
<script src="https://fb.me/react-dom-15.3.0.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.4.5/react-redux.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="React workshop boilerplate"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"/> | |
<style type="css"> |
View action-object-1.js
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
{ | |
type: 'BACKSPACE' | |
} |
View redux-action-object-2.js
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
{ | |
type: 'CHARACTER_TYPED', | |
character: 'x' | |
} |
View redux-action-creator.js
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
const insertCharacterActionCreator = (char) => { | |
return { | |
type: 'CHARACTER_TYPED', | |
character: char | |
} | |
}; |
View redux-reduder-concept.js
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
function (a, b) { | |
// c = Processing result of a and b | |
return c; | |
}; |
View redux-reducer-concept-2.js
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
function (state, action) { | |
// newState = Processing result of state and action | |
return newState; | |
} |
View redux-reducer.js
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
const reducer = (state = '', action) => { | |
switch (action.type) { | |
case 'CHARACTER_TYPED': | |
const { character } = action; | |
return state + character; | |
case 'BACKSPACE': | |
return state.substr(0, state.length - 1); | |
OlderNewer