Skip to content

Instantly share code, notes, and snippets.

View keks55's full-sized avatar

keks55

View GitHub Profile
@keks55
keks55 / Git aliases
Last active September 16, 2017 10:02
# git
alias ss='git status'
alias ff='git diff'
alias ll='git log'
alias show='git show'
# git add
alias dd='git add'
alias ddd='git add .'
alias cc='git commit -m'
alias ppp='git push -u origin master'
$(window).scroll(function() {
var sticky = $('.header,.header-wrap'),
scroll = $(window).scrollTop();
(scroll >= 100 ) ? sticky.addClass('fixed') : sticky.removeClass('fixed');
});
/*css*/
.fixed{
position:fixed;
background: #BEEB9F;
$(window).on('scroll', function() {
$('*[class^="land"]').each(function() {
if($(window).scrollTop() >= $(this).offset().top) {
var id = $(this).attr('id');
$('a').removeClass('current');
$('a[href=#'+ id +']').addClass('current');
}
});
});
//jQuery for page scrolling feature
$(function() {
$('.nav li a').on('click', function(event) {
$('html, body').stop().animate({
scrollTop: $($(this).attr('href')).offset().top
}, 900);
if ($(window).width() < 769) {
$(".nav").slideToggle("fast");
}
event.preventDefault();
$(".popup-click").click(function(){
//$(".popup").slideToggle("fast");
//$('.mask').toggleClass('open');
$(".popup,.mask").addClass("open");
$("a.close").click(function(){
$(".popup,.mask").removeClass("open");
});
return false;
});
@keks55
keks55 / ajax-message.txt
Last active September 15, 2017 04:39
WP- Ajax Message
<?php
/*
Plugin Name: Ajax message
Plugin URI: http://keksus.com/wordpress-plugins/ae.html
Description: Send message to email with ajax form
Version: 0.0.1
Author: Keksus
Author URI: http://keksus.com/
Text Domain: ae
Domain Path: /languages/
@keks55
keks55 / menu.xml
Created September 17, 2017 08:40
Openbox menu.xml
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Terminal emulator">
<action name="Execute">
<execute>x-terminal-emulator</execute>
</action>
</item>
<item label="Web browser">
<action name="Execute">
@keks55
keks55 / rc.xml
Created September 17, 2017 08:41
Openbox rc.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@keks55
keks55 / autostart
Created September 17, 2017 08:43
Openbox autostart
#
# When rebooting, restore the image to the desktop background
eval `cat $HOME/.fehbg` &
tint2 &
@keks55
keks55 / tint2rc
Created September 17, 2017 08:49
Tint2 - tint2rc
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #FFFFFF 16