Skip to content

Instantly share code, notes, and snippets.

@k1r8r0wn
k1r8r0wn / mattermost-material-theme.txt
Last active January 6, 2021 11:16
Material theme for Mattermost (Mattermost -> Account Settings ->Display -> Theme -> Copy to related input)
{"sidebarBg":"#263238","sidebarText":"#FFFFFF","sidebarUnreadText":"#FFFFFF","sidebarTextHoverBg":"#13191C","sidebarTextActiveBorder":"#80CBC4","sidebarTextActiveColor":"#FFFFFF","sidebarHeaderBg":"#2E3A40","sidebarHeaderTextColor":"#FFFFFF","onlineIndicator":"#50FA7B","awayIndicator":"#E0B333","dndIndicator":"#F74343","mentionBg":"#13191C","mentionBj":"#13191C","mentionColor":"#FFFFFF","centerChannelBg":"#13191C","centerChannelColor":"#FFFFFF","newMessageSeparator":"#f80","linkColor":"#2389D7","buttonBg":"#26A970","buttonColor":"#FFFFFF","errorTextColor":"#FD5960","mentionHighlightBg":"#2E3A40","mentionHighlightLink":"#2F81B7","codeTheme":"solarized-dark"}
@k1r8r0wn
k1r8r0wn / rails_status_code_symbols.md
Last active March 11, 2019 08:07
List of Rails Status Code Symbols
Status Code Status Message Symbol
1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok
201 Created :created
202 Accepted :accepted
@k1r8r0wn
k1r8r0wn / capybara_cs.rb
Created May 9, 2017 16:19
Capybara/Cucumber cheat sheet
# Navigating
visit('/projects')
visit(post_comments_path(post))
# Clicking links and buttons
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@k1r8r0wn
k1r8r0wn / linux_tips.md
Last active April 11, 2024 20:48
Linux tips

Linux tips

1. Основы

pwd - вывести текущую директорию (print working directory)

ls - вывести содержимое директории (list directory content)

ls --all --human-readable -l _путь_
@k1r8r0wn
k1r8r0wn / index.html
Created August 28, 2016 05:33
Best practices of css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1">
<title></title>
<style type="text/css" media="screen">
body {
font-size: calc(1em + .5vw);
@k1r8r0wn
k1r8r0wn / devise.ru.yml
Last active May 12, 2023 18:47
Russian i18n locale for `Devise` gem
# Русский перевод для https://github.com/plataformatec/devise/tree/v4.7.1
# Другие переводы на https://github.com/plataformatec/devise/wiki/I18n
ru:
devise:
confirmations:
confirmed: "Ваша учётная запись успешно подтверждена."
send_instructions: "В течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи."
send_paranoid_instructions: "Если ваш адрес email есть в нашей базе данных, то в течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи."
failure:
@k1r8r0wn
k1r8r0wn / main.css
Created December 25, 2015 07:12
Simple grid
@media (min-width: 769px) {
[class^="col-"] {
float: left;
padding: 0 1rem;
}
.col-1 {
width: calc(100% / 12);
}
@k1r8r0wn
k1r8r0wn / index.html
Last active November 7, 2015 09:52
Loading dots
<div class="loading-dots">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
@k1r8r0wn
k1r8r0wn / script.js
Last active October 13, 2015 14:42
Background Gradient with animated Hue on JavaScript
function changeBackground() {
//change color every frame
//initialise colors ( hue, lightness)
var hue = 360;
var light = 0;
function changeHue() {
var col1 = Math.abs((hue % 720) - 360);
var col2 = Math.abs( ( (hue+90) % 720) - 360);
hue++ ;
@k1r8r0wn
k1r8r0wn / index.html
Created July 29, 2015 06:59
Close button in CSS
<a href="#" class="close">