A curated list of awesome Bash aliases.
Collected from: https://vikaskyadav.github.io/awesome-bash-alias/
# Calculator
- alias bc="bc -l"
# Clear
- alias c="clear"
[ | |
{ | |
"id": 1, | |
"coord": { | |
"lon": -4.00167, | |
"lat": 5.35444 | |
}, | |
"country": "Ivory Coast", | |
"name": "Abidjan" | |
}, |
{ | |
"arrowParens": "always", | |
"bracketSameLine": false, | |
"bracketSpacing": true, | |
"semi": true, | |
"singleQuote": false, | |
"quoteProps": "as-needed", | |
"singleAttributePerLine": true, | |
"htmlWhitespaceSensitivity": "css", | |
"tabWidth": 2, |
# VSCode italic font settings | |
*Add this to settings.json (`cmd ,`):* | |
``` | |
{ | |
"editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ |
head: { | |
htmlAttrs: { | |
lang: "en-GB", | |
}, | |
title: "Articles focused on learning Laravel and VueJS", | |
meta: [ | |
{ charset: "utf-8" }, | |
{ name: "HandheldFriendly", content: "True" }, | |
{ name: "viewport", content: "width=device-width, initial-scale=1" }, | |
{ |
async registerUser() { | |
try { | |
const accounts = await window.ethereum.request({ | |
method: "eth_requestAccounts", | |
}); | |
const user = accounts[0]; | |
const gasEstimate = await lcContract.methods | |
.registerUser(this.name, this.email, this.password) | |
.estimateGas({ from: user }); |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.0; | |
contract SolidityTest { | |
// constructor() public{ | |
// } | |
function getResult() public view returns(uint){ | |
uint a = 6; | |
uint b = 10; | |
return a + b; |
A curated list of awesome Bash aliases.
# Calculator
# Clear
Packages downloaded from https://cli.github.com or from https://github.com/cli/cli/releases
are considered official binaries. We focus on popular Linux distros and
the following CPU architectures: i386
, amd64
, arm64
, armhf
.
Other sources for installation are community-maintained and thus might lag behind our release schedule.
var x = 5; //minutes interval | |
var times = []; // time array | |
var tt = 0; // start time | |
var ap = ['AM', 'PM']; // AM-PM | |
//loop to increment the time and push results in array | |
for (var i=0;tt<24*60; i++) { | |
var hh = Math.floor(tt/60); // getting hours of day in 0-24 format | |
var mm = (tt%60); // getting minutes of the hour in 0-55 format | |
times[i] = ("0" + (hh % 12)).slice(-2) + ':' + ("0" + mm).slice(-2) + ap[Math.floor(hh/12)]; // pushing data in array in [00:00 - 12:00 AM/PM format] |
const formKeys = ['key1', 'key2', 'key3'] | |
formKeys.forEach(key => { | |
this.testData[key] = mainData[key] | |
}) |