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
// Return coins that match text | search by name & symbol. | |
export const findCoins = (txt, coins) => { | |
const checkText = (k, c) => (textMatch(txt, c[k].toLowerCase()) ? c : null); | |
const curriedCheckText = R.curry(checkText); | |
const byName = R.map(curriedCheckText('name'), coins); | |
const bySymbol = R.map(curriedCheckText('symbol'), coins); | |
const matchNames = R.reject(R.isNil, byName); | |
const matchSymbols = R.reject(R.isNil, bySymbol); | |
const combinedSearch = (matchNames.concat(matchSymbols)); |
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
/* eslint-disable import/prefer-default-export */ | |
import { initialStates } from '../reducers/'; | |
const defaultPropDef = { | |
value: null, | |
writable: false, | |
configurable: true, | |
enumerable: 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
#!/usr/bin/python | |
# coding=utf-8 | |
# | |
# <bitbar.title>Bitcoin coin Ticker ($1USD)</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>impshum</bitbar.author> | |
# <bitbar.author.github>impshum</bitbar.author.github> | |
# <bitbar.desc>Displays current Bitcoin price for $1 from Coinmarketcap</bitbar.desc> | |
# <bitbar.image>https://i.imgur.com/CyCMvOT.jpg</bitbar.image> | |
# |
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 webpack from 'webpack' | |
import path from 'path' | |
import HtmlWebpackPlugin from 'html-webpack-plugin' | |
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | |
template: __dirname + '/app/index.html', | |
filename: 'index.html', | |
inject: 'body' | |
}) |