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
qfind () { | |
PS3="Which one: " | |
select opt in $(find /Users/matija/ -name "$1*" -type f) quit | |
do | |
if [[ $opt = "quit" ]] | |
then | |
break | |
fi |
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
table.Bs.nH.iY tr td div div div div.u5, | |
table.Bs.nH.iY tr td div div div span.u7 {display: none !important;} |
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 | |
#Go to a folder | |
cd /home/matija/portal | |
echo Your SVN logs for $3.$2.$1 | |
echo | |
echo --------------- Portal ----------------- | |
/usr/bin/svn log -r '{'$1'-'$2'-'$3'}:{'$1'-'$2'-'$(($3+1))'}' | sed -n '/matija/ {; n; ; n; p;}'; | |
echo |
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
body, | |
td, | |
input, | |
textarea, | |
select, | |
.nJ, | |
.J-Zh-I, | |
.VP5otc-tOAp0c, | |
.VP5otc-ynQFL {font-family: Ubuntu, arial, sans-serif !important;} |
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
# Launch /Applications/Utilities/Terminal and do: | |
sudo chmod o+w /Library/Preferences | |
defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1 | |
# Restart your computer. | |
# From Finder, select an AFP server, or use "Connect To...". | |
# This will cause the AFP Client to create the full preferences file | |
# Launch Terminal again and do: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>...</title> | |
</head> | |
<body> | |
<!-- Header --> | |
<header>...</header> |
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
<?php | |
date_default_timezone_set('Europe/Belgrade'); | |
function align($string, $width) { | |
$spaces = 0; | |
$spaces = $width - strlen($string); | |
for($i = 0; $i < $spaces; $i++) { | |
$result .= " "; | |
} |
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 times, | |
opacity; | |
$("#torrenttable tbody tr").each(function() { | |
times = $(this).find('td').eq(5).text(); | |
//console.log(parseInt(times.replace("times", ""),10)); | |
opacity = (parseInt(times.replace("times", ""),10))*0.000225; | |
$(this).css('background-color', 'rgba(255,0,0,'+opacity+')'); | |
}); |
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 max_height = 0; | |
$(".resize-height li").removeAttr('style'); | |
$(".resize-height li").each(function() { | |
if($(this).outerHeight() > max_height) {max_height = $(this).outerHeight();} | |
}); | |
$(".resize-height li").css('min-height', max_height+5+'px'); |
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
// http://jsfiddle.net/2vbY8/1/ | |
var locator = { | |
current_location: null, | |
getLocation: function() { | |
if (navigator.geolocation) { | |
// Browser DOES support HTML location | |
navigator.geolocation.getCurrentPosition(locator.locationOK,locator.locationFAIL); | |
} else { |
OlderNewer