Skip to content

Instantly share code, notes, and snippets.

@Madmals
Madmals / semantic-commit-messages.md
Created September 18, 2021 22:26 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Madmals
Madmals / destructuring_note.js
Last active September 15, 2021 00:31 — forked from mikaelbr/destructuring.js
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@Madmals
Madmals / fetch_gist.js
Last active September 13, 2021 18:04
GET METHOD FETCH GIST
// access token in setting then developer
const token = access_token
const githubgist = async ()=>{
let res = await fetch('https://api.github.com/gists',{
'headers': {'Authorization': `token ${token}`}
})
let data = await (res.json())
console.log(data)
@Madmals
Madmals / post_on_githubGist.js
Last active October 23, 2021 17:13
FETCH POST METHOD ON GITHUB GIST
content = {
"description": "TITLE ",
"public": false,
"files":
{
"post1.md": {
"content": "THIS IS WHERE CONTENT WILL BE PUT"
}
}