A Pen by ayhan sipahi on CodePen.
This file contains hidden or 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
sudo apt-get install nodejs | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
curl https://npmjs.org/install.sh | sudo sh |
This file contains hidden or 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/sh | |
sudo aptitude install nodejs | |
sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100 | |
curl https://www.npmjs.org/install.sh | sudo sh |
This file contains hidden or 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
wget -qO ~/node.tar.gz http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz | |
tar xf ~/node.tar.gz && cd ~/node-v0.10.32 | |
./configure --prefix=$HOME | |
make && make install && cd | |
rm -rf ~/node{-v0.10.32,.tar.gz} |
This file contains hidden or 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
$(function(){window.top!==window.self&&parent.$.colorbox.resize({width:$(document).width(),height:$(document).height()})}); |
This file contains hidden or 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 sendgroup = $(".sendgroup:checked").map(function(){ | |
return $(this).val(); | |
}).get(); |
This file contains hidden or 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
$(function() { | |
if (window.Modernizr) { | |
if (!Modernizr.input.placeholder) { | |
$("[placeholder]").focus(function() { | |
var input; | |
input = $(this); | |
if (input.val() === input.attr("placeholder")) { | |
input.val(""); | |
return input.removeClass("placeholder"); | |
} |
This file contains hidden or 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
<filesMatch "\.(html|htm|js|css|jpg|png|jpeg|gif)$"> | |
FileETag None | |
<ifModule mod_headers.c> | |
Header unset ETag | |
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" | |
</ifModule> | |
</filesMatch> |
This file contains hidden or 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
<div id="google_translate_element"></div> | |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | |
<script> | |
function googleTranslateElementInit() { | |
new google.translate.TranslateElement({ | |
pageLanguage: 'en', | |
autoDisplay: false, | |
gaTrack: true, | |
layout: google.translate.TranslateElement.InlineLayout.SIMPLE | |
}, 'google_translate_element'); |
This file contains hidden or 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 tmpTime= new Date().getTime(); | |
var tmpid ="result_not_found"+tmpTime; | |
var noResult ='<div id="'+tmpid+'" class="alert alert-error"><button type="button" class="close" data-dismiss="alert">×</button>Sorry,no result found!</div>'; | |
$("#content").prepend(noResult); | |
setTimeout(function(){$("#"+tmpid).fadeOut()},3000); |