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
// check version | |
node -v || node --version | |
// list installed versions of node (via nvm) | |
nvm ls | |
// install specific version of node | |
nvm install 6.9.2 | |
// set default version of node |
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
using System; | |
using System.Net; | |
using System.Text; | |
using RestSharp; | |
namespace RestSharpExtensions | |
{ | |
internal static class RestSharpExtensions | |
{ |
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
Create.Table("AspNetRoles") | |
.WithColumn("Id").AsString().PrimaryKey("PK_AspNetRoles").NotNullable() | |
.WithColumn("ConcurrencyStamp").AsString().Nullable() | |
.WithColumn("Name").AsString(256).NotNullable() | |
.WithColumn("NormalizedName").AsString(256).Nullable() | |
.Indexed("RoleNameIndex"); | |
Create.Table("AspNetUserTokens") | |
.WithColumn("UserId").AsString().PrimaryKey("PK_AspNetUserTokens").NotNullable() |
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
https://stripe.com/docs/testing | |
#Test credit card numbers to use when developing with Stripe | |
4242424242424242 Visa | |
4012888888881881 Visa | |
4000056655665556 Visa (debit) |
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
1. Open bash under admin | |
2. npm config set cache C:\tmp\nodejs\npm-cache --global | |
3. npm config set cache "C:\Users\SABAHA~1\AppData\Roaming\npm-cache" --global | |
4. After you change the path, uninstall the global create-react-app npm uninstall -g create-react-app, and try using npx again. |
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
<div class="fab"> + </div> | |
.fab { | |
width: 70px; | |
height: 70px; | |
background-color: red; | |
border-radius: 50%; | |
box-shadow: 0 6px 10px 0 #666; | |
transition: all 0.1s ease-in-out; | |
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
Create a file history.js | |
import { createBrowserHistory } from 'history'; | |
export const history = createBrowserHistory(); | |
Import this file to any component that you want to access history | |
import { history } from '../_helpers'; |
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
1. In the server folder, package.json folder, add these node values: | |
"engines": { | |
"node": "12.13.0", | |
"npm": "6.12.0" | |
}, | |
and | |
2. "heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm i --prefix client && npm run build --prefix client" | |
3. if (process.env.NODE_ENV === "production") { | |
// Express will serve up production assets |
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
Create a new branch on local and push into remote repo | |
git checkout -b <branch> | |
//Edit files, add and commit. Then push with the -u (short for --set-upstream) option: | |
git push -u origin <branch> | |
### How to create a local branch and check it to remote repository: | |
1. git checkout -b <nameofYourBranch> | |
2. git add . | |
3. git commit -m "your message here" | |
4. git push -u <yourRemoteName> <nameofYourBranch> |
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
@echo off | |
cd "C:\Program Files\MongoDB\Server\4.0\bin" | |
start mongod.exe | |
timeout 4 | |
start mongo.exe | |
exit |