Skip to content

Instantly share code, notes, and snippets.

Sul pezzo

Artur arturmamedov

Sul pezzo
Block or report user

Report or block arturmamedov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
arturmamedov / on_before_unload.js
Last active Jul 9, 2019
Window on before unload - for stop user to escape page before all data is not saved or an action not performed
View on_before_unload.js
// Message to be displayed on unload
var message = $('#jtrnslt #leavemess').text(), submitting = false;
// On Form submition set submitting to true for not fire onbeforeunload
$(document).on("submit", "form", function(event){
submitting = true;
// Window onbeforeunload fired when leave page but not if it a form submition or element with .noBeforeUnload class
window.onbeforeunload = function (e) {
e = e || window.event;
// Determine if you want to allow unload
arturmamedov / withEqualHeight.html
Last active Feb 3, 2017
Equl Height for elements
View withEqualHeight.html
* Boxes AutoHeight
* @param columns
* data-weh-add="50" add 50px to all
function withEqualHeight(columns) {
var tallestcolumn = 0, add = parseInt(columns.first().attr('data-weh-add'));
arturmamedov / merge_options.php
Last active Feb 12, 2019
Merge $defaults with custom passed $options
View merge_options.php
* spesso abbiamo bisogno di parametri default obbligatori
* ma che possono essere sovrascritti con quelli custom passati alla funzione ad ogni chiamata
* ... la suluzione in 4 righe e' questa
* ---
* [EN] often we need a mandatory options parameters that can be overriden by custom params passed each time
* the solution is here in 4 rows of code
arturmamedov / .htaccess
Last active Oct 25, 2017
Rewrite Rules - must used
View .htaccess
# 0 - Before any rule check for mod-rewrite module existance and enable it
<IfModule mod_rewrite.c>
# Enable before other rules
RewriteEngine On
# 1 - Folder rewrite
RewriteRule ^theme_fe_gs/(.*)$$1 [L]
# 2 - 301 Rediret with structural change in url
arturmamedov / to-top.html
Created Nov 22, 2016
To top JS and HTML
View to-top.html
<!-- 1 -->
<a href="#" id="totop">TOP</a>
if ($('#totop').length) {
var scrollTrigger = 100, // px
backToTop = function () {
var scrollTop = $(window).scrollTop();
if (scrollTop > scrollTrigger) {
} else {
arturmamedov / css_cursor_table
Created Sep 9, 2016
CSS cursor values Table
View css_cursor_table
<table class="data myne_kol" style="width:450px">
Tabella dei Cursori CSS
<th>Valore CSS</th>
arturmamedov / BSIT-gMaps.html
Last active Nov 15, 2017
gMaps - Implementations
View BSIT-gMaps.html
<script src="//" type="text/javascript"></script>
<script src="/bower_components/gmaps/gmaps.js" type="text/javascript"></script>
<script type="text/javascript">
INSPIRO.maps = function () {
View my-instagram-media.json
{"status": "ok", "items": [{"can_delete_comments": true, "code": "BGblVpbMyQkwm9MIUTWkdt9NCAuA37E28zSfi80", "location": null, "images": {"low_resolution": {"url": "", "width": 320, "height": 320}, "thumbnail": {"url": "", "width": 150, "height": 150}, "standard_resolution": {"url": "", "width": 612, "height": 612}}, "can_view_comments": true, "comments": {"count": 0, "data": []}, "alt_media_url": null, "caption": {"created_time": "1465469422", "text": "#putanesca puttana che esca", "from": {"username": "imartur", "profile_picture": "https://scontent-mxp1-1.cdnin
arturmamedov / instagram_api.php
Created Jun 15, 2016
Instagram API retrive access token with PHP curl
View instagram_api.php
// yo can follow this guide to
#1 first you need to create a Client in Instgram Developer Dashboard
#2 after you need to retrive a oAuth code for after get access_token
// change the params with your one and open link in browser
You can’t perform that action at this time.