- global structure for CSS-naming is:
.block__element-subelement-subsubelement--modificator; .blockin CSS is page or global block of site (.header,.footer,.sidebarand others);- don't use tags and id's in CSS (only classes);
- use for modification CSS-modificators only (
.block__element--modificator) or pseudo-classes (:hover,:activeand others); - use id's (
<div id="idName">) and data-binds (<a data-bind="bindName">) for JavaScript only; - don't use classes and tags in JavaScript for binds (use id's and data-binds only);
- use camelCase-style in JavaScript (for variable's and function's naming).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is a function to decrypt (deobscure) rclone passwords | |
| Author: Danil Valov | |
| Original code: https://github.com/maaaaz/rclonedeobscure (Thomas D.) | |
| */ | |
| import crypto from 'crypto'; | |
| // AES-256-CBC always has a block size of 16 bytes | |
| const AESBlockSize = 16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const sass = require('node-sass'); | |
| const imageSizeOf = require('image-size'); | |
| module.exports = { | |
| 'image-width($imageUrl)': function (imageUrl) { | |
| const absoluteImagePath = this.options.includePaths.split(':').pop(); | |
| const absoluteImageUrl = path.resolve(absoluteImagePath, imageUrl.getValue()); | |
| const dimensions = imageSizeOf(absoluteImageUrl); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('async-request'); | |
| module.exports = async (tag) => { | |
| try { | |
| const response = await request(`https://www.instagram.com/explore/tags/${encodeURIComponent(tag)}/?__a=1`); | |
| if (response.statusCode != 200) { | |
| return throw response.statusCode; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| IFS=$'\n'; set -f | |
| for file in $(find ./ -name '*.ass'); | |
| do | |
| filename=${file%.ass}; | |
| dir=$(dirname "${file}") | |
| if [ -f "$filename".ass ] && [ ! -f "$filename".srt ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| templates: | |
| global: | |
| transmission: | |
| host: xxxxxxxxxxxx | |
| port: xxxx | |
| username: xxxxxxx | |
| password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| tvshows: | |
| set: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set runtext=Запустили | |
| tasklist|find /I "qbinder.exe">nul && ((taskkill /im "qbinder.exe">nul) && (taskkill /f /im "qbinder.exe">nul) && (set runtext=Перезапустили)) | |
| set profile=%~1 | |
| set settingsfile=C:\Progra~2\QuickBinder\settings.ini | |
| set tmpfile=C:\Progra~2\QuickBinder\settings_tmp.ini | |
| if exist %tmpfile% del /q %tmpfile% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| templates: | |
| movies: | |
| set: | |
| path: /tmp/mnt/94E8B2B1E8B290CA/Torrents/download/DLNA/Movies | |
| transmission: | |
| host: ************ | |
| port: **** | |
| username: ************* | |
| password: ************* | |
| email: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "remove-empty-rulesets": true, | |
| "always-semicolon": true, | |
| "color-case": "lower", | |
| "block-indent": " ", | |
| "color-shorthand": true, | |
| "element-case": "lower", | |
| "eof-newline": true, | |
| "leading-zero": true, | |
| "quotes": "single", |