install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
This will take filePath
as a function parameter and reads the file via fs
module and get the file and converts it's size into more humanly readable format.
function getFileSize(filePath) {
var stats = fs.statSync(filePath);
// console.log('stats', stats);
var size = stats["size"];
// convert it to humanly readable format.
function getUrlParams(search) { | |
let hashes = search.slice(search.indexOf('?') + 1).split('&') | |
let params = {} | |
hashes.map(hash => { | |
let [key, val] = hash.split('=') | |
params[key] = decodeURIComponent(val) | |
}) | |
return params | |
} |
const getUrlParams = (search = ``) => { | |
const hashes = search.slice(search.indexOf(`?`) + 1).split(`&`) | |
return hashes.reduce((acc, hash) => { | |
const [key, val] = hash.split(`=`) | |
return { | |
...acc, | |
val: decodeURIComponent(val) | |
} | |
}, {}) | |
} |
'use strict'; | |
// The STRIPE-supported currencies, sorted by code | |
export const currencies = [ | |
{ | |
'code':'AED', | |
'description':'United Arab Emirates Dirham' | |
}, | |
{ | |
'code':'AFN', |
# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g') | |
echo $PACKAGE_VERSION |
###Steps:
<!-- Sample of code generated -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
class MyWrapper { | |
return React.Children.only(this.props.children); | |
} | |
class MyLibraryComponent { | |
render() { | |
return <div><span><whatever><MyWrapper ref=...>{this.props.statelessComponentThatIWantToReference}</MyWrapper></whatever></span></div>; | |
} |
No, this isn't about render props
I'm going to clean this up and publish it in my newsletter next week!
So react-i18n
(not the npm one... one we made at PayPal internally) has this