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
{ | |
"name": "prometheus_node", | |
"json_class": "Chef::Role", | |
"default_attributes": { | |
"twodrops_prometheus": { | |
"components": { | |
"node_exporter": { | |
"install?": true, | |
"cli_opts": { | |
"collector.systemd": "", |
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
INSIDE OF .taskrc: | |
report.monwait.columns=id,start.active,project,tags,wait,wait.remaining,due,until,description | |
report.monwait.description=tasks sorted by due date ascending | |
report.monwait.filter=wait:mon | |
report.tuewait.columns=id,start.active,project,tags,wait,wait.remaining,due,until,description | |
report.tuewait.description=tasks sorted by due date ascending | |
report.tuewait.filter=wait:tue |
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
def print_bill | |
outstanding = 0.0 | |
#print banner | |
puts "*************************" | |
puts "******Customer Owes******" | |
puts "*************************" | |
# calculate outstanding |
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 ReactDOM = require('react-dom'); | |
// var $ = require('jquery'); | |
module.exports = { | |
propTypes: { | |
onSubmit: React.PropTypes.func.isRequired | |
}, |
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'); | |
module.exports = React.createClass({ | |
displayName: 'TextField', | |
propTypes: { | |
label: React.PropTypes.string.isRequired, | |
value: React.PropTypes.string.isRequired, | |
}, |
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 DialogMixin = require('../mixins/DialogMixin'); | |
var StringField = require('../fields/StringField'); | |
var TextField = require('../fields/TextField'); | |
var BooleanField = require('../fields/BooleanField'); | |
var NumberField = require('../fields/NumberField'); | |
var _ = require('lodash'); | |
var reduxForm = require('redux-form').reduxForm; | |
var Field = require('redux-form').Field; |
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
handleCompletedClick = () => { | |
const originalTodo = Object.assign({}, this.props.todo); | |
let todo = this.props.todo; | |
todo.completed = true | |
this.props.update(todo, originalTodo); | |
} | |
export const updateTodo = (todo, originalTodo) => { | |
const url = 'http://localhost:3001/todos/' + todo.id; |
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
class Change | |
def change(amount) | |
available_coins = [100,50,25,10,5,1] # http://en.wikipedia.org/wiki/Coins_of_the_United_States_dollar | |
coins = [] | |
index = 0 | |
coin = available_coins[index] | |
remaining_amount = amount | |
until remaining_amount == 0 | |
until remaining_amount >= coin | |
index = index + 1 |
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
It's 4 days now that I've tried to fix a use case of copying and pasting content blocks and I'm sad to say I don't | |
have it fixed yet. BUT. Five minutes ago I thought of a good idea that I feel fairly confident is going to work. | |
The use case: | |
I've already shown that content blocks can be copied and pasted as content blocks. It's already finished | |
for the case where a person selects a content block sandwiched between two selections of text. Where it's not finished | |
is if the the content block appears at the beginning or end of a selection, or if it's a content block | |
alone that's being selected. |
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
SweetAlert = require('react-swal') | |
AlertComponent = React.createClass | |
render: -> | |
<SweetAlert isOpen={true} type="warning" confirmButtonText="Yup" | |
cancelButtonText="Nope"/> | |
module.exports = AlertComponent |
NewerOlder