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
| export const POST = (auth) => ({ | |
| method: "POST", // *GET, POST, PUT, DELETE, etc. | |
| mode: "cors", // no-cors, cors, *same-origin | |
| headers: { | |
| "Content-Type": "application/json", | |
| ...(auth ? { "Authorization": auth } : {}) | |
| }, | |
| }) |
https://github.com/charliekassel/vuejs-datepicker
<Datepicker
id="deadlineDate"
placeholder="Select date"
:mondayFirst="true"
:format="format"
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
| #Update your apps by below command and install | |
| $ sudo apt-get update | |
| $ sudo apt-get install postgresql postgresql-contrib | |
| #Connect to PostgreSQL | |
| $ sudo su - postgres | |
| $ psql | |
| #Checking connection with user information |
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
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| const ParentComponent = React.createClass({ | |
| getDefaultProps: function() { | |
| console.log("ParentComponent - getDefaultProps"); | |
| }, | |
| getInitialState: function() { | |
| console.log("ParentComponent - getInitialState"); | |
| return { text: "" }; |
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
| #Example moving the DPSG Global Library | |
| # 1 Checkout the Beanstalk Repo | |
| git clone --bare git@codeandtheory.beanstalkapp.com:/dpsg-global-library.git | |
| # 2 Push into your desired GitHub repo. (Please note that you must create the github repo prior to this step) | |
| git push --mirror git@github.com:codeandtheory/dpsg-global-library.git |
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
| function en2bn(input){ | |
| var en = ["1","2","3","4","5","6","7","8","9","0"]; | |
| var bn = ["১","২","৩","৪","৫","৬","৭","৮","৯","০"]; | |
| input = input.toString(); | |
| for( var i = 0; i < 10; i++) | |
| { | |
| var re = new RegExp(en[i], 'g'); | |
| input = input.replace(re,bn[i]); | |
| } | |
| return input; |
NewerOlder