Skip to content

Instantly share code, notes, and snippets.

View yunusga's full-sized avatar
👋
Hello World!

Yunus Gaziyev yunusga

👋
Hello World!
View GitHub Profile
@yunusga
yunusga / command.md
Created September 17, 2015 07:22
HOW TO get back to stock when your phone stuck in fastboot mode

download http://downloads.codefi.re/autoprime/LG/LG_G2

! ! ! NOTICE! The following is the method of repairing DOWNLOAD MODE:

1 get your phone into fastboot mode, connect to the computer with usb, wait for it automatically installing the driver 2 extract the 7Z file I provided into a ROOT drive,for example D: 3 Open CMD, input

fastboot erase recovery
@yunusga
yunusga / beml-block.sublime-snippet
Last active March 30, 2017 12:14
Sublime, Atom snippets for BEML
<snippet>
<content><![CDATA[
<${1:div} block="${2:block}" mod="${3:mod}">${4:content}</${1:div}><!-- b:${2:block} -->
]]></content>
<tabTrigger>block</tabTrigger>
</snippet>
@yunusga
yunusga / b-grid.styl
Created November 7, 2016 06:47
CSS сетка на stylus
gridColumns = 12
gridGutter = 15px
gridClass = 'b-grid'
gridClassList = 'list'
gridClassItem = 'item'
// размер элементов сетки
getGridBasis(size)
max-width floor((100/size) * 1%, 2)
flex-basis floor((100/size) * 1%, 2)
@yunusga
yunusga / yandex-jquery.html
Last active September 2, 2019 12:56
Подключение jQuery с CDN Яндекса
<script src="https://yastatic.net/jquery/3.1.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.1.0.min.js"><\/script>')</script>
@yunusga
yunusga / gist:33cf0ba9e311e12df4046722e93d4123
Created April 5, 2017 11:55
Debug WordPress 404 issues (permalinks, rewrite rules, etc.)
/* Produces a dump on the state of WordPress when a not found error occurs */
/* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */
ini_set( 'error_reporting', -1 );
ini_set( 'display_errors', 'On' );
echo '<pre>';
add_action( 'parse_request', 'debug_404_rewrite_dump' );
function debug_404_rewrite_dump( &$wp ) {
@yunusga
yunusga / visibly.js
Created April 20, 2017 13:57 — forked from juanmhidalgo/visibly.js
Cross-browser Page Visibility API polyfill
/*!
* isVis - v0.5.6 Sep 2012 - Page Visibility API Polyfill
* Copyright (c) 2011 Addy Osmani
* Dual licensed under the MIT and GPL licenses.
*/
/*
* Firefox support added based on https://developer.mozilla.org/en-US/docs/DOM/Using_the_Page_Visibility_API
* @juanmhidalgo
*/
@yunusga
yunusga / modals.multi.floor.bootstrap.js
Created June 9, 2017 13:12
Multi-floor bootstrap modal windows
var modalsOpened = 0,
openedModalZIndex = 0,
$currentModal = null;
$('.modal')
.on('show.bs.modal', function(e) {
$currentModal = $(e.delegateTarget);
openedModalZIndex = $currentModal.css('z-index') + modalsOpened;
@yunusga
yunusga / nunjucks-filter-limit-to.js
Created August 30, 2017 12:37 — forked from jbmoelker/nunjucks-filter-limit-to.js
Nunjucks limitTo filter. Creates a new array or string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array or string, as specified by the value and sign (positive or negative) of limit.
/**
* @module limitTo
*
* Creates a new array or string containing only a specified number of elements.
* The elements are taken from either the beginning or the end of the source array
* or string, as specified by the value and sign (positive or negative) of limit.
*
* Same behavior as AngularJS limitTo filter: http://docs.angularjs.org/api/ng/filter/limitTo
*
* To use this filter in a template, first register it in the Nunjucks environment:
@yunusga
yunusga / SketchSystems.spec
Last active June 13, 2018 15:05
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
My Awesome Sketch3
Second State
some event -> sad State
asd State

repostcss