Show Hidden Files in Mac OS X
Terminal commands..
Show -
defaults write com.apple.Finder AppleShowAllFiles TRUE
Hide -
defaults write com.apple.Finder AppleShowAllFiles FALSE
UnFriend For Facebook
Every time you log in you’ll be ask to re-enter your API Access Token, since this site does not ask for your Facebook email and password. The safest was for us to gathered your friend list, is by the API Access Token.
Bookmarklet Like Pinterest
<a href=”javascript:window.open(‘http://domain.com/?url=’+encodeURIComponent(location.href)+’&title=’+encodeURIComponent(document.title),’newWindowName’,'width=500,height=400,scrollbars=no,status=no,titlebar=no,toolbar=no’);void(0);”> Pin </a>
window.open = your domain
?url= get url
&title= get domain title
Using PHP & Osascript to open google
if($post == “google”) {
$url=”http://google.com”;
exec(“osascript -e ‘say \”$post\” using \”Samantha\”‘”);
exec(“osascript -e ‘tell application \”Safari.app\” to Get URL \”$url\”‘”);
}
PHP To Email
$to=”to@email.com”;
$subject=”Title”;
$header=”From: <your email>”;
$message=”This is your email message.”;
$sentmail = mail($to,$subject,$message,$header);
if($sentmail){
echo “Email Has Been Sent.”;
}else {
echo “Cannot Send Email.”;
}
CSS Keyframe Animation
<div class="slide">box</div>
.slide {
position: relative;
-webkit-animation: slide 5s infinite;
}
or
.slide {
position: relative;
-webkit-animation-name: slide;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: 10;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: ease-out;
-webkit-animation-fill-mode: forwards;
-webkit-animation-delay: 2s;
}
and
@-webkit-keyframes slide {
0% { left: 0px; }
50% { left: -50px; }
100% { left: 100px; }
}

