# Switch to the "master" branch:
$ git checkout master
# Rename it to "main":
$ git branch -m master main
# Get the latest commits (and branches!) from the remote:
$ git fetch
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
// Source: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch | |
// Example POST method implementation: | |
async function postData(url = '', data = {}) { | |
// Default options are marked with * | |
const response = await fetch(url, { | |
method: 'POST', // *GET, POST, PUT, DELETE, etc. | |
mode: 'cors', // no-cors, *cors, same-origin | |
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached | |
credentials: 'same-origin', // include, *same-origin, omit | |
headers: { |
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="index.html">
<system.webServer>
<httpProtocol>
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 id="q-app"> | |
<div class="q-ma-md"> | |
Fork and make your own! | |
Do NOT use self-closing tags here on Codepen. | |
</div> | |
<div class="q-ma-md"> | |
<q-btn label="Notify" color="primary" @click="notify"></q-btn> | |
</div> |
mkdir app
cd app
wget -r https://purecss.io/layouts/side-menu/
yarn init --yes
yarn add --dev parcel@next serve
// package.json
- Install Gimp: https://www.gimp.org/downloads/
- Open Pdf file with Gimp & select pages to import
- Goto File > Export
- Set file name File.ora (.ora == Open Raster)
- Open File.ora with 7zip
- Install Gimp : https://www.gimp.org/downloads/
- Install khalim19/gimp-plugin-export-layers plugin : https://github.com/khalim19/gimp-plugin-export-layers
Create an empty git repo or reinitialize an existing one
$ git init
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status
list which (unstaged) files have changed
Visit my blog or connect with me on Twitter
git init
or
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s
and return
to chop/fold long lines!
NewerOlder