This file contains hidden or 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
getDataOptions = () => { | |
return { | |
headers: { | |
'User-Agent': 'app', | |
'Authorization': `key=${this.state.api_key}`, | |
}, | |
timeout: 5000 | |
}; | |
} |
This file contains hidden or 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
componentDidMount() { | |
this.loadFromStorage() | |
.then(() => { | |
if (this.state.api_key) { | |
this.fetchData(); | |
}}) | |
.done(); | |
} |
This file contains hidden or 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 BitminterNative extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
user: null, | |
api_key: null, | |
input_value: null, | |
}; | |
} | |
} |
This file contains hidden or 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
import { Component } from "react" | |
import ReactMixin from "react-mixin" | |
import { Likeable } from "app/client/mixins" | |
@ReactMixin.decorate(Likeable) | |
export default class Article extends Component { | |
// everything else | |
} |
This file contains hidden or 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
import { Likes } from "apollos/core/lib/collections" | |
import { nav as navActions, liked as likedActions } from "apollos/core/client/actions" | |
import Helpers from "app/client/helpers" | |
const Likeable = { | |
componentWillMount: function() { | |
this.likeableAction = this.onClickAction.bind(this) | |
}, |
This file contains hidden or 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 Article extends React.Component { | |
// everything else | |
} |
This file contains hidden or 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 Article = React.createClass({ | |
mixins: [Likeable], | |
// everything else | |
}); |
This file contains hidden or 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
machine: | |
pre: | |
- brew update; brew cleanup; brew cask cleanup | |
- brew uninstall --force brew-cask; brew update | |
- brew install brew-cask | |
- brew install homebrew/versions/node010 | |
- curl https://install.meteor.com | sh | |
- brew cask install google-chrome | |
- brew install chromedriver |
This file contains hidden or 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
require 'net/http' | |
require 'json' | |
# contants | |
BASECAMP_USERNAME = ARGV[0] | |
BASECAMP_PASSWORD = ARGV[1] | |
BASECAMP_EMAIL = ARGV[2] | |
BASECAMP_COMPANY_IDS = ARGV[3].split(",") | |
QUERY = ARGV[4] |
This file contains hidden or 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
while :; do; say -v Whisper "is anybody there"; sleep 3; done |