Skip to content

Instantly share code, notes, and snippets.

View varzin's full-sized avatar
🏠
Working from home

Sergei varzin

🏠
Working from home
View GitHub Profile
brew install smartmontools
sudo smartctl --all /dev/disk0
# Look for 'Percentage used' line.
@varzin
varzin / keybindings.json
Created December 26, 2020 05:16
VSCode keybinding to move cursor 10 lines up/down
// Place your key bindings in this file to override the defaults
[
// Keybindings that are active when the focus is in the editor
{
"key": "cmd+alt+up",
"command": "cursorMove",
"args": {
"to": "up",
"by": "line",
"value": 10
@varzin
varzin / gulpfile.js
Last active May 13, 2024 23:56
Gulp File
const gulp = require('gulp');
const sass = require('gulp-sass');
const autorefixer = require('gulp-autoprefixer');
const sourcemaps = require('gulp-sourcemaps');
const browserSync = require('browser-sync').create();
// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function (done) {
gulp.src("./styles/common.scss")
.pipe(sourcemaps.init())
@varzin
varzin / medium-com_preloader.html
Last active October 23, 2017 17:00
medium.com - Simple and beautiful animated Preloader
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="160" height="160">
<path class="loader-a" fill="none" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-miterlimit="10" stroke-dasharray="128" stroke-dashoffset="128" d="M25.36,5.18h0a4.76,4.76,0,0,1-6.73,0h0a4.76,4.76,0,0,0-6.73,0L5.18,11.91a4.76,4.76,0,0,0,0,6.73h0a4.76,4.76,0,0,1,0,6.73h0a4.76,4.76,0,0,0,0,6.73l6.73,6.73a4.76,4.76,0,0,0,6.73,0h0a4.76,4.76,0,0,1,6.73,0h0a4.76,4.76,0,0,0,6.73,0l6.73-6.73a4.76,4.76,0,0,0,0-6.73h0a4.76,4.76,0,0,1,0-6.73h0a4.76,4.76,0,0,0,0-6.73L32.09,5.18A4.76,4.76,0,0,0,25.36,5.18Z"/>
<path class="loader-b" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-miterlimit="10" stroke-dasharray="128" stroke-dashoffset="128" d="M25.36,5.18h0a4.76,4.76,0,0,1-6.73,0h0a4.76,4.76,0,0,0-6.73,0L5.18,11.91a4.76,4.76,0,0,0,0,6.73h0a4.76,4.76,0,0,1,0,6.73h0a4.76,4.76,0,0,0,0,6.73l6.73,6.73a4.76,4.76,0,0,0,6.73,0h0a4.76,4.76,0,0,1,6.73,0h0a4.76,4.76,0,0,0,6.73,0l6.73-6.73a4.76,
@varzin
varzin / footer-year
Created February 6, 2014 06:58
Simple code to display the interval between the year of foundation and the current year.