Skip to content

Instantly share code, notes, and snippets.

View beshur's full-sized avatar

Alex Buznik beshur

View GitHub Profile
@beshur
beshur / key.pgp
Created September 23, 2014 19:02
keybase key
### Keybase proof
I hereby claim:
* I am beshur on github.
* I am shu (https://keybase.io/shu) on keybase.
* I have a public key whose fingerprint is 65F7 5F9A D475 5021 D0A5 16FC 14A2 E7D5 F5A4 8746
To claim this, I am signing this object:
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
@beshur
beshur / jk-nav.js
Created November 24, 2014 22:17
jQuery wordpress j/k next/prev navigation
// Simple J/k navigation for Wordpress
// by Alex Buznik (@beshur)
//
// Change t value for the correct selectors of the items that need to be traversed
(function($) {
$(function() {
var is_blog = true;
if (!$("body").hasClass("blog")) {
is_blog = false;
}
@beshur
beshur / socketHelper.js
Created March 10, 2015 11:53
socket helper
var socketHelper = function() {
this.clientId = "";
this.getClientId = function() {
return this.clientId;
}
this.address = "localhost";
@beshur
beshur / getTpl.js
Created March 25, 2015 15:18
getTpl - underscore templates shorthand
function getTpl(tpl, options) {
if (!tpl) return;
if (!options) options = null;
var prepare = false;
if (options == 1) {
options = {};
prepare = true;
console.log('prepare');
}
@beshur
beshur / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@beshur
beshur / scss.scss
Last active August 29, 2015 14:21
scss trick with ears
.b_imageload {
&__thumbnail {
color: green;
&--profile & {
color: red;
}
}
@beshur
beshur / gm-fsdfm.php
Last active August 29, 2015 14:24 — forked from gmazzap/gm-fsdfm.php
<?php namespace GM\FSDFM;
/**
* Plugin Name: Fullscreen Distraction-Free Mode (pre v4.1)
* Description: Allows to use the distraction-free mode that was active pre 4.1 WP version.
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/c081ce03a68b00d983d5
* Author: Giuseppe Mazzapica
* Author URI: https://gm.zoomlab.it
* License: MIT
* Version: 1.0.0
*/
@beshur
beshur / b_skeletons.js
Last active September 10, 2015 14:49
Backbone Collection Bootstrap - Skeleton
/** General Skeletons controller */
var Skeletons = Backbone.View.extend({
model: SkeletonsModel,
el: ".b_skeletons",
events: {
},
@beshur
beshur / gist:2050911
Created March 16, 2012 16:30
Forms input hover
$("form *").hover(function () {
$(this).focus();
});