Skip to content

Instantly share code, notes, and snippets.

View ceaksan's full-sized avatar
🤹

Ceyhun Aksan ceaksan

🤹
View GitHub Profile
package main
import (
"bufio"
"fmt"
"io"
"io/ioutil"
"os"
)
#!/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
var variables = ""
for (var name in this)
variables += name + "\n";
$('img').one('error', function() {
// HIDE BROKEN IMAGES
dataLayer.push({
'event': 'brokenImage',
'eventLabel': this.src
});
$(this).hide();
});
$('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");
library("RWordPress")
library("tidyverse")
library("stringr")
options(WordPressLogin = c(kullaniciadi = "sifre"),
WordPressURL = "http://domain.com/xmlrpc.php")
checkWPOptions <- getUsersBlogs()
getPosts <- as_tibble(getPosts())
jQuery('ul li').map(function() {
return $(this).text();
}).get().join('|').toLowerCase();
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')]);
}
});