This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <bitbar.title>SSH Tunnel</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Ceyhun Enki Aksan</bitbar.author> | |
# <bitbar.author.github>ceaksan</bitbar.author.github> | |
# <bitbar.desc>-</bitbar.desc> | |
# <bitbar.dependencies></bitbar.dependencies> | |
# <bitbar.image></bitbar.image> | |
read -p 'Server IP: ' serverIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var variables = "" | |
for (var name in this) | |
variables += name + "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('img').one('error', function() { | |
// HIDE BROKEN IMAGES | |
dataLayer.push({ | |
'event': 'brokenImage', | |
'eventLabel': this.src | |
}); | |
$(this).hide(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('img').one('error', function() { | |
// REPLACE BROKEN IMAGES | |
// Exmaple 1 | |
this.src = 'http://www.clker.com/cliparts/J/h/C/1/o/C/broken-file-icon-hi.png'; | |
// Example 2 | |
// $(this).attr("src", "http://www.clker.com/cliparts/J/h/C/1/o/C/broken-file-icon-hi.png"); | |
// Example 3 | |
// $(this).prop("src", "http://www.clker.com/cliparts/J/h/C/1/o/C/broken-file-icon-hi.png"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("RWordPress") | |
library("tidyverse") | |
library("stringr") | |
options(WordPressLogin = c(kullaniciadi = "sifre"), | |
WordPressURL = "http://domain.com/xmlrpc.php") | |
checkWPOptions <- getUsersBlogs() | |
getPosts <- as_tibble(getPosts()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('ul li').map(function() { | |
return $(this).text(); | |
}).get().join('|').toLowerCase(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('a').each(function(index) { | |
var getAttrText = jQuery(this).text(); | |
if (getAttrText != ''){ | |
jQuery(this).attr('title', jQuery.trim(getAttrText)); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('a').click(function() { | |
getURL = jQuery(this).attr('href'); | |
getURLParts = /^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(getURL); | |
getHostname = getURLParts[1]; | |
getPath = getURLParts[2]; | |
alert(getPath); | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
jQuery(':input').blur(function () { | |
var formName = {{FORM NAME}}; // Change {{FORM NAME}} | |
if(jQuery(this).val().length > 0) { | |
_gaq.push(['_trackEvent', formName, 'Completed', jQuery(this).attr('name')]); | |
} | |
else { | |
_gaq.push(['_trackEvent', formName, 'Canceled', jQuery(this).attr('name')]); | |
} | |
}); |