For Crafter > Java, Git
use root:
sudo -i
# switch back with 'su - vagrant' when needed
If you haven't updated to the latest version of git take a look at this SO post on [installing Git on CentOS] also take a look at the [full post here] for installing fish on other OS'
# switch back with 'su - vagrant' or preferred user when needed
sudo -i
cd /etc/yum.repos.d/
# install wget
yum -y install wget
If you haven't updated to the latest version of git take a look at this SO post on [installing Git on CentOS]
# switch back with 'su - vagrant' or preferred user when needed
sudo -i
cd /etc/yum.repos.d/
# for CentOS 7
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
export const slugIt = text => { | |
if (!text) return | |
return text | |
.toString() | |
.toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, '') // Trim - from end of text |
// credit: https://github.com/styled-components/styled-components/issues/233#issuecomment-292602734 | |
export function fontFace(name, src, fontWeight = 'normal', fontStyle = 'normal'){ | |
return ` | |
@font-face{ | |
font-family: "${name}"; | |
src: url(${require('../../public/fonts/' + src + '.eot')}); | |
src: url(${require('../../public/fonts/' + src + '.eot')}?#iefix) format("embedded-opentype"), | |
url(${require('../../public/fonts/' + src + '.woff')}) format("woff"), |
const originalArray = [1, 2, 3]; | |
const newArray = originalArray.map(item => item * 2); | |
console.log(newArray); |
const arr = [1,2,2,3,3,3,4,5,6,6,6,7,7,8] | |
const uniqueArray = [...new Set(arr)] | |
console.log(uniqueArray) |
const dictionary = { | |
words: [ | |
`accountable talk`, | |
`action item`, | |
`after I ran into Helen at a restaurant, I realized she was just office pretty`, | |
`anti-pattern`, | |
`are there any leftovers in the kitchen?`, | |
`are we in agreeance`, | |
`at the end of the day`, | |
`back of the net`, |