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
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar zxvf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194 | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p194 |
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
find . -exec $command {} \; |
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
apt-get install git-svn | |
git svn clone http://my.svn.server/myproject | |
cd myproject | |
git remote add origin http://my.git.server/myproject.git | |
git push origin master |
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="taboola-grid-2x2" class="taboola-sidebar" style="width:300px; height: 540px; display:none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/$') || document.URL.match('/canal/')) { | |
$("div.taboola-sidebar").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
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="taboola-grid-2x2" style="width:620px; height: 280px; display: none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/noticia/') && !document.URL.match('/videos-ge')) { | |
$("#taboola-grid-2x2").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
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="taboola-grid-2x2" style="width:620px; height: 280px; display: none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/noticia/') && !document.URL.match('/videos-ge')) { | |
$("#taboola-grid-2x2").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
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="taboola-grid-2x2" class="taboola-sidebar" style="width:300px; height: 540px; display:none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/$') || document.URL.match('/canal/')) { | |
$("div.taboola-sidebar").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
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
class ItemType < ActiveRecord::Base | |
validates :title, presence: true, uniqueness: true | |
validates :class_name :presence: true, uniqueness: true | |
end | |
class Item < ActiveRecord::Base | |
belongs_to :item_type, foreign_key: :type, primary_key: :class_name | |
end | |
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
diff --git a/index.php b/index.php | |
index 882b597..213ef3c 100644 | |
--- a/index.php | |
+++ b/index.php | |
@@ -1 +1,5 @@ | |
-<?php echo phpinfo(); | |
+<?php | |
+ | |
+include "./lib/mylib.php"; | |
+ |