Skip to content

Instantly share code, notes, and snippets.

@zoonderkins
zoonderkins / mac-install-nerd-font.md
Last active June 13, 2023 10:07
Mac install Nerd Font

Mac install Nerd Font (Fire code)

brew cask
brew tap homebrew/cask-fonts 
brew install font-fira-code
brew install font-Fira-Code-nerd-font
brew install font-hack-nerd-font
@ArtMan-8
ArtMan-8 / TravisCI-on-Github.md
Last active February 9, 2024 18:28
настройка Travis-CI для автоматической сборки проекта на Github

Настройка Travis-CI для github

Устанавливаем Travis-CI в github, и даём доступ к репозиториям.

Идём на travis-ci.com, и логинимся через github. Должна выскочить панель. Если проекты автоматически не появятся, то жмём крестик.


На travis-ci.com нужно будет добавить ключ для проекта. Для этого идём в github, в настройки разработчика, и переходит к персональным токенам и жмём сюда для генерации ключа.

package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"regexp"
"time"
@Imater
Imater / tomat.sh
Last active June 7, 2023 09:23
> tomat 25 'Название дела'
#!/usr/bin/env bash
SLEEP_DURATION=${SLEEP_DURATION:=1} # default to 1 second, use to speed up tests
progress-bar() {
local duration
local columns
local space_available
local fit_to_screen
local space_reserved
@letulip
letulip / cards.html
Last active November 13, 2019 09:36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- <link rel="stylesheet" href="style.css"> -->
<title>Document</title>
<style>
html {
@bigspawn
bigspawn / download-from-facecast.md
Last active April 28, 2024 12:18
How download video from facecast.net
@neretin-trike
neretin-trike / metatag.md
Last active September 23, 2023 04:06
SEO оптимизация сайта

Основные мета-теги

Мета-теги - это служебные слова, которые содержат важную информацию о веб-документе для поисковых систем. В большинстве случаев размещаются внутри тега head.
Список мета-тегов для атрибута name:

  • description — описание веб-страницы, должно быть достаточно длинным и полным
  • keywords — ключевые слова,
  • generator — CMS сайта,
  • author — автор,
  • copyright — авторские права,
  • robots — правила индексирования страницы для роботов,
  • viewport — данные о настройке области просмотра
@ceejbot
ceejbot / esm_in_node_proposal.md
Last active June 20, 2024 10:45
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

// Swift's untyped errors are a goddam PiTA. Here's the pattern I use to try to work around this.
// The goal is basically to try to guarantee that every throwing function in the app throws an
// ApplicationError instead of some unknown error type. We can't actually enforce this statically
// But by following this convention we can simplify error handling
enum ApplicationError: Error, CustomStringConvertible {
// These are application-specific errors that may need special treatment
case specificError1
case specificError2(SomeType)