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
When running any composer commands, sometimes you see the following error stack: | |
``` | |
[ReflectionException] | |
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist | |
[ErrorException] |
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
## Step 1: Check System Architecture. | |
getconf LONG_BIT | |
uname -p | |
## Step 2: Download the latest version. current LTS release is 4.2.1. | |
wget https://nodejs.org/dist/v4.2.1/node-v4.2.1-linux-x64.tar.gz | |
## Step 3: Installing the downloaded binary | |
tar -C /usr/local --strip-components 1 -xzf node-v4.2.1-linux-x64.tar.gz |
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
<form name="checkoutform" action="/payment" method="POST"> | |
<input type="hidden" name="stripeToken" id="stripe_token" /> | |
</form> | |
<script src="https://checkout.stripe.com/checkout.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<button id="customButton" style="display:none;">Purchase</button> | |
<script> | |
var handler = StripeCheckout.configure({ |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
NewerOlder