Skip to content

Instantly share code, notes, and snippets.

View a1ex7's full-sized avatar

TAlex a1ex7

  • NDA
  • Kharkov
View GitHub Profile
@a1ex7
a1ex7 / scroll-top.html
Created March 25, 2017 16:20 — forked from agragregra/scroll-top.html
Scroll Top Button
<div class="top" title="Наверх"><i class="fa fa-angle-double-up"></i></div>
.top
position: fixed
bottom: 25px
background-color: #E0E0E0
border-radius: 10em
color: #666
font-size: 26px
width: 50px
@a1ex7
a1ex7 / button.sass
Created March 25, 2017 16:24 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
@a1ex7
a1ex7 / jquery-active.js
Created March 25, 2017 16:26 — forked from agragregra/jquery-active.js
jQuery Active Menu
//Active menu
$("li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
Keymap (Windows Users):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
]
Settings:
{
"show_definitions": false,
"auto_complete": false,
"bold_folder_labels": true,
@a1ex7
a1ex7 / gulpfile.js
Created March 25, 2017 16:27 — forked from agragregra/gulpfile.js
Jekyll, Browsersync and Gulp
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
@a1ex7
a1ex7 / scroll-next.js
Last active June 26, 2017 14:25 — forked from agragregra/scroll-next.js
jQuery Scroll To Next Section
/* Button for scroll to next section */
$('.scroll-next').click(function() {
var cls = $(this).closest('.section').next().offset().top;
$('html, body').animate({scrollTop: cls}, 'slow');
});
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@a1ex7
a1ex7 / ChromeExtensionGulp.js
Created July 29, 2017 12:46 — forked from TravelingTechGuy/ChromeExtensionGulp.js
Gulp file for building a Chrome Extension
'use strict';
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev
var gulp = require('gulp'),
clean = require('gulp-clean'),
cleanhtml = require('gulp-cleanhtml'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
stripdebug = require('gulp-strip-debug'),
@a1ex7
a1ex7 / create_laravel_app.sh
Created August 22, 2017 15:03 — forked from connor11528/create_laravel_app.sh
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
cp .env.example .env
git init
git add -A
@a1ex7
a1ex7 / dark-theme.css
Created November 9, 2017 20:59
Dark theme 153 bytes
:root {
background-color: #fefefe;
filter: invert(100%);
}
* {
background-color: inherit;
}
img:not([src*=".svg"]), video {
filter: invert(100%);
}