Skip to content

Instantly share code, notes, and snippets.

View gus3inov's full-sized avatar
🤔
Thinking

Muslim Guseinov gus3inov

🤔
Thinking
  • Serbia, Belgrade
  • 02:18 (UTC +02:00)
View GitHub Profile
<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
@gus3inov
gus3inov / gulpfile.js
Last active May 6, 2017 08:13
Gulp task
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
browserSync = require('browser-sync').create(),
concat = require('gulp-concat'),
uglify = require('gulp-uglifyjs');
gulp.task('browser-sync', ['styles', 'scripts'], function() {
@gus3inov
gus3inov / scroll-next.js
Created May 6, 2017 08:14
jQuery Scroll To Next Section
$(".scroll-next").click(function() {
var cls = $(this).closest(".section").next().offset().top;
$("html, body").animate({scrollTop: cls}, "slow");
});
@gus3inov
gus3inov / index,html
Created May 6, 2017 08:21
Tabs short on JQuery
<div class="wrapper">
<div class="tabs">
<span class="tab">Вкладка 1</span>
<span class="tab">Вкладка 2</span>
<span class="tab">Вкладка 3</span>
</div>
<div class="tab_content">
<div class="tab_item">Содержимое 1</div>
<div class="tab_item">Содержимое 2</div>
<div class="tab_item">Содержимое 3</div>
@gus3inov
gus3inov / prefix.sql
Created May 7, 2017 10:41
change prefix phpMyAdmin
Первая команда для SQL
SELECT * FROM нов-преф_usermeta WHERE meta_key LIKE 'wp_%'
Вторая команда
SELECT * FROM нов-преф_options WHERE option_name LIKE 'wp_%'
@gus3inov
gus3inov / index.html
Created May 7, 2017 12:52
Form for log in
<body>
<div class="container">
<form action="">
<img src="http://www.iconsfind.com/wp-content/uploads/2015/08/20150831_55e46ad551392.png" alt=""
width="120px" height="120px"/>
<div class="dws-input">
<input type="text" name="username" placeholder="Enter your login"/>
</div>
<div class="dws-input">
<input type="password" name="password" placeholder="Enter your password"/>
@gus3inov
gus3inov / node-sample.js
Created November 24, 2017 18:07 — forked from andrIvash/node-sample.js
get battery info with node.js
const http = require('http');
const PORT = Number(process.argv[2]) || 8080;
const child_process = require('child_process');
const Routes = {
BATTERY: /\/battery\/?/
};
const Status = {
NOT_FOUND: 404,
@gus3inov
gus3inov / gist:cc9746d55c278b39cfa0ed5e4aeb7839
Created November 28, 2017 19:01 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@gus3inov
gus3inov / hoc.js
Created January 30, 2018 05:45
HIgh order component
function logProps(Component){
class LogProps extends React.Component{
componentWillReceiveProps(nextProps){
console.log('prevProps', this.props);
console.log('nextProps', nextProps);
}
render(){
return <Component {...this.props}/>
}
@gus3inov
gus3inov / StringHelper.js
Created March 14, 2018 22:05
String Helper
console.clear()
function StringHelper(){
let self = this
this.lat = [
'a', 'b', 'v', 'g', 'd', 'e',
'e', 'gh', 'z', 'i', 'y', 'k', 'l', 'm', 'n', 'o',
'p', 'r', 's', 't', 'u', 'f', 'h', 'c', 'ch', 'sh',
'sch', 'y', 'y', 'y', 'e', 'yu', 'ya'