create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
$(document).ready(function () { | |
var oFra = $("#iframe_id"); | |
$("#button3").click(function () { | |
oFra.attr("scrolling", "yes"); | |
oFra.attr("src", oFra.attr("src")); | |
}); | |
}); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
<img src="<?= $this->Thumb->clip_thumb('ImageFilename','300x300'); ?>" alt="" /> |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 1 seconds" | |
ExpiresByType image/x-icon "access plus 2692000 seconds" | |
ExpiresByType image/jpeg "access plus 2692000 seconds" | |
ExpiresByType image/png "access plus 2692000 seconds" | |
ExpiresByType image/gif "access plus 2692000 seconds" | |
ExpiresByType application/x-shockwave-flash "access plus 2692000 seconds" | |
ExpiresByType text/css "access plus 2692000 seconds" | |
ExpiresByType text/javascript "access plus 2692000 seconds" |
function doc_append ( obj ){ | |
if( document.getElementsByTagName("head").length > 0 ){ | |
document.getElementsByTagName("head")[0].appendChild( obj ); | |
} | |
else{ | |
document.getElementsByTagName("body")[0].appendChild( obj ); | |
} | |
} | |
var url_css = 'http://example.com/css/file.css'; |
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://example.com/js/bookmarklet.min.js?r='+(Math.random()*99999999);})(); |
/* | |
AI, Auto Select an item from select dropdown, based on url | |
* @author fedmich | |
* @version 1.0 | |
*/ | |
function ai_autoselect ( css_select , url ){ | |
if( ! url ){ return; } | |
var obj_sel = $( css_select ) | |
if(obj_sel.val()){ | |
return true; //user already picked something, just skip |
=hyperlink("http://www.google.com/search?q=site:fedmich.com inurl:/works/";"site:fedmich.com inurl:/works/") |
import httplib, urllib | |
params = urllib.urlencode({ | |
'param': 'value', | |
'param2': 'value2' | |
}) | |
headers = { | |
"Content-type": "application/x-www-form-urlencoded", | |
"Accept": "text/plain" |
/* | |
Hides iframe from youtube, embedded objects | |
*/ | |
function hide_other_elements(){ | |
var iframes = document.getElementsByTagName('iframe'); | |
jQuery(iframes).each(function(){ | |
if( (this.src + '').match('http://www.youtube.com/embed/') ){ | |
jQuery( this ).parent().addClass('hidden_elements'); | |
} | |
}); |