install heroku cli tools
cd "C:\Program Files\heroku\bin"
heroku login
heroku keys:add --select right ssh key (if there are multiples)
heroku create node-av-weather-application -- from the application folder.(name should be unique)
| <NotepadPlus> | |
| <UserLang name="LogFile" ext="log"> | |
| <Settings> | |
| <Global caseIgnored="yes" /> | |
| <TreatAsSymbol comment="no" commentLine="no" /> | |
| <Prefix words1="no" words2="no" words3="no" words4="no" /> | |
| </Settings> | |
| <KeywordLists> | |
| <Keywords name="Delimiters">[(0])0</Keywords> | |
| <Keywords name="Folder+"></Keywords> |
| // mock file | |
| function MockFile() { }; | |
| MockFile.prototype.create = function (name, size, mimeType) { | |
| name = name || "mock.txt"; | |
| size = size || 1024; | |
| mimeType = mimeType || 'plain/txt'; | |
| function range(count) { | |
| var output = ""; |
| @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
| choco feature enable -n allowGlobalConfirmation | |
| choco install conemu /y | |
| choco install 7zip.install /y | |
| choco install git /y | |
| choco install git.install /y | |
| choco install nvm /y | |
| choco install notepadplusplus /y |
| # working with npm | |
| npm install -g yarn | |
| npm install -g npx | |
| npm install -g np | |
| npm install -g npm-name-cli | |
| # debugging | |
| npm install -g ndb | |
| npm install -g node-inspector |
| # add it in the default profile \Users\{username}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
| # https://stackoverflow.com/a/41862274/2043920 | |
| # https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx | |
| # Remove Defaults | |
| rename-item alias:\gc gk -force | |
| rename-item alias:\gcm gkm -force | |
| rename-item alias:\gl gll -force | |
| rename-item alias:\gsn gsnn -force | |
| rename-item alias:\gm gmm -force |
| import React, { Component } from 'react' | |
| import { Link } from 'react-router' | |
| // Drag and Drop | |
| import { DragDropContext } from 'react-dnd' | |
| import HTML5Backend from 'react-dnd-html5-backend' | |
| // Material UI | |
| import { List } from 'material-ui/List' | |
| import Subheader from 'material-ui/Subheader' | |
| class ReorderableList extends Component { |
install heroku cli tools
cd "C:\Program Files\heroku\bin"
heroku login
heroku keys:add --select right ssh key (if there are multiples)
heroku create node-av-weather-application -- from the application folder.(name should be unique)
| "use strict"; | |
| var crypto = require("crypto"); | |
| var EncryptionHelper = (function () { | |
| function getKeyAndIV(key, callback) { | |
| crypto.pseudoRandomBytes(16, function (err, ivBuffer) { | |
| var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ; |
rip off from
(1) Inside git local repostitory, create a new sh file
touch getAllBranches.sh
vi getAllBranches.sh
(2) Insert the below content to getAllBranches.sh file: