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
timer = setInterval(function(){ | |
if(!document.querySelector('a.pipeline_stage[href*="vans-test-6"]').classList.contains('building')){ | |
clearInterval(timer); | |
alert('done'); | |
} | |
}); |
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
// pass in either location.search or location.hash, taking care to remove the leading '?' or '#' first. | |
function getParams(str) { | |
return str.split("&").reduce(function(params, keyValuePair){ | |
keyValuePair = keyValuePair.split('='); | |
params[decodeURIComponent(keyValuePair[0])] = decodeURIComponent(keyValuePair[1]); | |
return params; | |
}, {}); | |
} |
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
// inspect the dom to obtain the sprintId, and update it below | |
sprintId = 267; | |
stories = []; | |
$$('[data-sprint-id="' + sprintId + '"] .ghx-issue-content').forEach(function(item){ | |
stories.push([ | |
item.querySelector('.ghx-key').innerText, | |
item.querySelector('.ghx-summary').innerText | |
].join(' ')); | |
}); | |
console.log(stories.join('\n')); |
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
$$('.btn-link.text-gray').forEach(function(item){ | |
if(item.innerHTML.match(/Show outdated/)){ | |
item.dispatchEvent(new MouseEvent('click', { | |
view: window, | |
bubbles: true, | |
cancelable: true | |
})); | |
} | |
}); |
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
{ | |
"componentName": "HelloMessage", | |
"props": { | |
"greeting": "Hello", | |
"subject": "World" | |
} | |
} |
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
<div data-react="HelloMessage"> | |
<div data-prop="greeting">Hello</div> | |
<div data-prop="subject">World</div> | |
</div> |
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 charset="UTF-8" /> | |
<title>Hello React</title> | |
<script src="https://fb.me/react-0.14.8.js"></script> | |
<script src="https://fb.me/react-dom-0.14.8.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
</head> | |
<body> |
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 charset="UTF-8" /> | |
<title>Hello React</title> | |
<script src="https://fb.me/react-0.14.8.js"></script> | |
<script src="https://fb.me/react-dom-0.14.8.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
</head> | |
<body> |
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
var HelloMessage = React.createClass({ | |
render: function() { | |
return <div>Hello, {this.props.subject}</div>; | |
} | |
}); | |
ReactDOM.render(<HelloMessage subject="World" />, mountNode); |
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
var fs = require('fs'); | |
var path = require('path'); | |
var markup = fs.readFileSync('sprite.svg').toString(); | |
var lines = markup.split(/\n/g); | |
var symbols = {}; | |
var currentSymbol = null; |
NewerOlder