Skip to content

Instantly share code, notes, and snippets.

View bizikov's full-sized avatar

Alexandr Bizikov bizikov

View GitHub Profile
@drugoi
drugoi / slack.js
Last active June 21, 2017 09:03
Отправка ошибок в текстах в Slack
let lastSelectedText;
const SLACK_HOOK_URL = 'URL TO INCOMING HOOK';
$(document).keydown(e => {
if ((e.keyCode == 10 || e.keyCode == 13) && e.ctrlKey) {
const selectedText = utils.getSelectionText();
if (
lastSelectedText === selectedText ||
selectedText.replace(/ /g, '') === ''
) {
console.warn('Текст не выделен или это повторная ошибка');
@rey
rey / archive.html
Last active October 28, 2016 19:25
Archive page for my blerg
<section id="archive">
<h3>This year's posts</h3>
{%for post in site.posts %}
{% unless post.next %}
<ul class="this">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
@kevinSuttle
kevinSuttle / meta-tags.md
Last active March 31, 2024 14:26 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@joelverhagen
joelverhagen / README.md
Created February 12, 2012 02:14
Jekyll YouTube Embed Plugin

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}