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
#!/usr/bin/env ruby | |
verbose = ARGV[0] == '-v' | |
def colorize(text, color_code) | |
"\e[#{color_code}m#{text}\e[0m" | |
end | |
def red(text); colorize(text, 31); end | |
def green(text); colorize(text, 32); end |
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
javascript:var s=document.createElement('script');s.setAttribute('src','https://code.jquery.com/jquery.js');document.getElementsByTagName('body')[0].appendChild(s);var sum=0;$(".customfield_10004").each(function(){sum+= parseInt($(this).text(), 10);});var t=$('<span class="badge aui-badge" style="margin-left: 6px;"></span>');var h=$(".headerrow-customfield_10004");h.append(t);t.html(sum); |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery.js"></script> | |
<script> | |
$(function() { | |
$.get('http://localhost:3000') | |
}); | |
</script> | |
</head> | |
</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
var React = require('react') | |
var clone = require('lodash-node/modern/objects/clone') | |
module.exports = { | |
deleteState(stateAttrNames, done) { | |
if (!stateAttrNames) { | |
if (typeof done === 'function') return done() | |
return |
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 lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SVG Grad</title> | |
<style type="text/css"> | |
body { | |
font-family: sans-serif; | |
} | |
.line { |
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>Gradient following path stroke</title> | |
<style> | |
svg { | |
outline: 1px solid #ababab; | |
} | |
.line { |
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>Vertical gradient along path</title> | |
<style> | |
svg { | |
outline: 1px solid #ababab; | |
background: #fff; | |
} |
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>100% Height/Width Fills SVG Container</title> | |
<style> | |
svg { | |
display: block; | |
margin: 30px; | |
outline: 5px solid #0099ff; |
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 React = require('react') | |
var Comp = React.createClass({ | |
getInitialState: function () { | |
return { | |
books: [] | |
} | |
}, | |
componentWillMount: function () { | |
console.log('this.props', this.props) |
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 React = require('react') | |
var Router = require('react-router') | |
var Route = React.createFactory(Router.Route) | |
var Comp = React.createClass({ | |
getInitialState: function () { | |
return { | |
books: [] | |
} | |
}, |