List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
--- | |
created: <% tp.file.creation_date() %> | |
--- | |
tags:: [[+Daily Notes]] | |
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %> | |
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >> | |
--- |
import { useState, useEffect, useRef } from 'react'; | |
// import { HideUntilLoaded } from 'react-animation'; | |
import PropTypes from 'prop-types'; | |
import Spinner from '../spinner/Spinner'; | |
import ErrorMessage from '../errorMessage/ErrorMessage'; | |
import MarvelServices from '../services/MarvelServices'; | |
import './charlist.scss'; |
class Stack { | |
constructor() { | |
this.items = [] | |
this.count = 0 | |
} | |
// Add element to top of stack | |
push(element) { | |
this.items[this.count] = element | |
console.log(`${element} added to ${this.count}`) |
import React, { Component } from 'react'; | |
import 'whatwg-fetch'; | |
import { | |
getFromStorage, | |
setInStorage, | |
} from '../../utils/storage'; | |
class Home extends Component { | |
constructor(props) { |
# General | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
POWERLEVEL9K_COLOR_SCHEME='dark' | |
# Prompts | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir virtualenv vcs) | |
else | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir virtualenv vcs) | |
fi |
package com.Lesson6; | |
// Дано текст и определенное слово. Посчитать сколько раз заданное слово встречается в тексте. | |
public class Lesson6_2 { | |
public static void main(String[] args) { | |
String text = "Ехал Грека через реку, видит Грека в реке рак, сунул Грека руку в реку, рак за руку Грека цап"; | |
String word = "Грека"; |