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
dirceu@macbook:~/Documents/tmp$ | |
→ mv ~/Downloads/Applications/riak-0.10.1.tar.gz . | |
dirceu@macbook:~/Documents/tmp$ | |
→ tar -xzf riak-0.10.1.tar.gz | |
dirceu@macbook:~/Documents/tmp$ | |
→ cd riak-0.10.1 | |
dirceu@macbook:Documents/tmp/riak-0.10.1$ | |
→ make all ; make devrel | |
./rebar get-deps | |
==> luke (get-deps) |
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
dirceu@macbook:Documents/tmp/riak[git:master] $ | |
→ make all ; make devrel | |
abortado: Não há um repositório do Mercurial aqui (.hg não encontrado) | |
./rebar get-deps | |
==> luke (get-deps) | |
==> riak_core (get-deps) | |
Pulling mochiweb from {hg,"http://bitbucket.org/basho/mochiweb","115"} | |
ERROR: Rebar requires version {1,1} or higher of hg | |
make: *** [deps] Error 1 | |
abortado: Não há um repositório do Mercurial aqui (.hg não encontrado) |
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
dirceu@macbook:Documents/tmp/riak[hg:default] $ | |
→ make ; make devrel | |
./rebar get-deps | |
==> luke (get-deps) | |
==> riak_core (get-deps) | |
Pulling mochiweb from {hg,"http://bitbucket.org/basho/mochiweb","115"} | |
ERROR: Rebar requires version {1,1} or higher of hg | |
make: *** [deps] Error 1 | |
mkdir dev | |
cp -R rel/overlay rel/reltool.config dev |
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 | |
// Require specific controller if requested | |
if($controller = JPath::clean(JRequest::getWord('controller'))) { | |
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php'; | |
if (file_exists($path)) { | |
require_once $path; | |
} else { | |
$controller = ''; | |
} | |
} |
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
<div id="top-content"> | |
params->get('show_page_title')) : ?> | |
<h1>Notícias</h1> | |
<div id="rss-feed"> | |
<a href="#"><img alt="RSS Alkart.net" src="/allkart/templates/allkart/images/rss-feed.jpg"></a><script type="t<script type=" text="" javascript"="" src="http://174.132.8.89/allkart/plugins/editors/jce/tiny_mce/themes/advanced/langs/en.js?version=152"></script><script type="text/javascript" src="http://174.132.8.89/allkart/plugins/editors/jce/tiny_mce/plugins/advcode/langs/en.js?version=152"></script><span>ext/javascript" src="<a class="smarterwiki-linkify" href="http://174.132.8.89/allkart/plugins/editors/jce/tiny_mce/themes/advanced/langs/en.js?version=152">http://174.132.8.89/allkart/plugins/editors/jce/tiny_mce/themes/advanced/langs/en.js?version=152</a>"></span><script type="text/javascript" src="http://174.132.8.89/allkart/plugins/editors/jce/tiny_mce/plugins/advcode/langs/en.js?version=152"></script>> | |
</div> | |
</div> |
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
jQuery.noConflict(); // necessario para nao conflitar com o MooTools | |
// jQuery(document).ready faz com que a funcao callback seja executada | |
// assim que o DOM estiver pronto. Eh melhor que onload porque nao precisa | |
// esperar por imagens e outros assets demorados pra carregar. | |
jQuery(document).ready(function() { | |
var maxWidth = 905; // max width da barra de rolagem | |
var container = jQuery('#block-wrap'), // div com overflow:hidden | |
handler = jQuery('#tl-nav-current-bk'), // botao de rolagem | |
maxHandlerPos = maxWidth-55, // posicao maxima do botao |
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 | |
/** | |
* Archive jobs after the end date | |
* | |
* @return void | |
* @access private | |
* @since 2.0 | |
*/ | |
private function _archiveJobs() | |
{ |
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
// Imported from http://www.nationsonline.org/oneworld/IATA_Codes/airport_code_list.htm | |
// Use the "jQuerify" extension for Google Chrome and run the following script on the JavaScript Console | |
var airports = []; | |
$.each($('tr[bgcolor=#EEEEEE]'), function(idx, el) { | |
airports.push('INSERT INTO `ean_airports` (`city`, `country`) VALUES ("'+$('td', el)[0].textContent.trim()+' ('+$('td', el)[2].textContent.trim()+')", "'+$('td', el)[1].textContent.trim()+'");'); | |
}); | |
airports.sort(); | |
airports.join('\n'); |
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
require 'spec_helper' | |
cancel_paperclip_post_processing YourClass | |
describe YourClass do | |
describe "validations" do | |
it "should require a valid contract file (if supplied)" do | |
YourClass.should have_attached_file(:contract) |
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 | |
define('_JEXEC', 1); | |
// | |
// Author: Dirceu Pereira Tiegs <[email protected]> and other folks from #jdbr11 | |
// Jetworks Desenvolvimento Web | |
// | |
// run this inside joomla-platform/examples/ | |
require_once ('../libraries/import.php'); | |
jimport('joomla.application.cli'); |