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 giveTip(currencyFirst, currencySecond, sum){ | |
let arr = []; | |
arr[0] = 0; | |
for(let i = 1; i <= sum; i++){ | |
let minA, minB; | |
if( i < currencyFirst){ | |
minA = currencyFirst - i; | |
}else{ | |
minA = arr[i - currencyFirst]; | |
} |
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
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import config from '../config/config'; | |
import actions from '../redux/actions'; | |
import ReactDOM from 'react-dom'; | |
import Sources from '../config/sources'; | |
@connect((state) => state) | |
export default class MainChart extends Component { |
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
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import config from '../config/config'; | |
import actions from '../redux/actions'; | |
import ReactDOM from 'react-dom'; | |
import Sources from '../config/sources'; | |
@connect((state) => state) | |
export default class MainChart extends Component { |
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 Sources = { | |
gplus: { | |
name: 'Gplus', | |
color: 'rgb(170, 70, 67, 1)', | |
fillColor: 'rgb(170, 70, 67, 0.2)', | |
img: 'imgs/common/icons/gplus.png' | |
}, | |
freehacks: { | |
name: 'Freehacks', | |
color: 'rgb(159, 21, 97, 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
import React, { Component } from 'react'; | |
import Post from './Post'; | |
import { connect } from 'react-redux'; | |
import InfiniteScroll from 'react-infinite-scroller'; | |
import CircularProgress from 'material-ui/CircularProgress'; | |
import config from '../../config/config'; | |
import actions from '../../redux/actions'; |
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
import React, {Component} from 'react'; | |
import ReactTable from 'react-table'; | |
import { Typeahead } from 'react-bootstrap-typeahead'; | |
import Sources, { Categories } from '../config/sources'; | |
import IconButton from 'material-ui/IconButton'; | |
import DeleteForever from 'material-ui/svg-icons/action/delete-forever'; | |
import Toggle from './SMTA/Toggle'; | |
import moment from 'moment'; | |
import config from '../config/config'; |
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
/* style for atom having both firacode and operetor mono */ | |
atom-text-editor.editor { | |
font-family: "Operator Mono light"; | |
text-rendering: optimizeLegibility; | |
font-size: 15px; | |
font-weight: 400; | |
line-height: 1.4; | |
atom-text-editor.editor .syntax--string.syntax--quoted, |
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
{ | |
// Place your settings in this file to overwrite the default settings | |
"atomKeymap.promptV3Features": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnPaste": true, | |
"editor.renderWhitespace": "boundary", | |
"editor.rulers": [100], | |
"editor.cursorBlinking": "solid", | |
"workbench.iconTheme": "vscode-icons", | |
"editor.fontFamily": "Operator Mono light, 'Fira Code'", |
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
gitstatus=`git status 2> /dev/null` | |
if [[ `echo $gitstatus | grep "Changes to be committed"` != "" ]] | |
then | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1***)/' | |
elif [[ `echo $gitstatus | grep "Changes not staged for commit"` != "" ]] | |
then | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1**)/' | |
elif [[ `echo $gitstatus | grep "Untracked"` != "" ]] | |
then | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1*)/' |
OlderNewer