tag | ||
---|---|---|
|
- [[#Общая часть|Общая часть]]
- [[#1. Сложность алгоритмов|1. Сложность алгоритмов]]
javascript:(async () => { | |
/* Ensure the script is run on a valid GitHub repository page */ | |
const ensureForksPage = () => { | |
const match = window.location.href.match(/^https:\/\/github\.com\/([^/]+)\/([^/]+)(\/forks\/?)?/); | |
if (!match) { | |
alert('Run this from a GitHub repository page.'); | |
throw new Error('Not on a valid GitHub repository page.'); | |
} | |
if (!match[3]) { | |
window.location.href = `https://github.com/${match[1]}/${match[2]}/forks`; |
#!/usr/bin/python3 | |
from abc import ABC, abstractmethod | |
from typing import List | |
import random | |
class AbstractPhrasePart(ABC): | |
def __str__(self): | |
return f"{self._prefix()} {random.choice(self._phrases())}" |
"extensionsGallery": { | |
-- "nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/", | |
-- "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", | |
-- "itemUrl": "https://marketplace.visualstudio.com/items", | |
-- "publisherUrl": "https://marketplace.visualstudio.com/publishers", | |
-- "resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}", | |
-- "controlUrl": "https://az764295.vo.msecnd.net/extensions/marketplace.json" | |
++ "serviceUrl": "https://open-vsx.org/vscode/gallery", | |
++ "itemUrl": "https://open-vsx.org/vscode/item" | |
}, |
{ | |
"name": "Model M-us6.25", | |
"vendorId": "0xEB88", | |
"productId": "0x0024", | |
"lighting": "qmk_rgblight", | |
"matrix": { | |
"rows": 6, | |
"cols": 18 | |
}, | |
"layouts": { |
for i in {0..255} | |
do | |
printf "\x1b[38;5;%smcolour%s " "${i}" "${i}" | |
if (( ($i + 1) % 8 == 0 )) | |
then | |
echo "" | |
fi | |
done | |
# or |
#!/bin/zsh | |
set -e | |
git_get_head() { | |
(git symbolic-ref "refs/remotes/${@}/HEAD" --short || git remote show "${@}" ) 2>/dev/null | grep "${@}/\|HEAD branch" | sed -E "s#${@}/|HEAD branch:##" | sed 's# ##g' | |
} | |
git_get_head "${1}" | |
exit 0 |
Оригинал Effective GO go version go1.7.4
Основы Ansible для новичка
Эта статья не замена https://docs.ansible.com/, а скорее 101 - база, которая поможет начать понимать основные принципы работы
Ansible - в каноничном определении, система управления конфигурациями.