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
CHAINES (channel_name) : news, people, animals, creation, auto, school, shortfilms, fun, webcam, videogames, music, sexy, sport, lifestyle, travel | |
HOME : http://www.dailymotion.com/rss | |
VIDEO : http://www.dailymotion.com/rss/video/{id} | |
VIDEOS D'UN CHAINE : http://www.dailymotion.com/rss/{countrycode}/channel/{channel_name} | |
VIDEOS D'UN GROUPE : http://www.dailymotion.com/rss/group/{id} | |
VIDEOS D'UNE PLAYLIST : http://www.dailymotion.com/rss/playlist/{id} | |
UTILISATEUR : http://www.dailymotion.com/rss/JULMOK | |
VIDEOS D'UN UTILISATEUR : http://www.dailymotion.com/rss/user/{username}/{page} |
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
def gmail_connector(login,password,user_id,site_id) | |
require 'tmail' | |
username = login | |
password = password | |
Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE) | |
Net::POP3.start('pop.gmail.com', 995, username, password) do |pop| | |
if pop.mails.empty? | |
puts 'No mail.' | |
else | |
pop.each_mail do |mail| |
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
render(:update) do |page| | |
page.delay(1.0) do | |
page.visual_effect :fade, "alert" | |
end | |
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
html2haml content_video.html content_video.haml && html2haml n-1_avancee_resultats_soc.html n-1_avancee_resultats_soc.haml && html2haml region_n-1_avancee.html region_n-1_avancee.haml && html2haml biographie.html biographie.haml && html2haml content_video_list.htm content_video_list.haml && html2haml n-1_recherche_dir.html n-1_recherche_dir.haml && html2haml region_n-1_avancee_resultats_dir.html region_n-1_avancee_resultats_dir.haml && html2haml content_article.html content_article.haml && html2haml content_video_n-1.html content_video_n-1.haml && html2haml n-1_recherche_soc.html n-1_recherche_soc.haml && html2haml region_n-1_avancee_resultats_soc.html region_n-1_avancee_resultats_soc.haml && html2haml content_article_list.html content_article_list.haml && html2haml fiche.html fiche.haml && html2haml recherche_simple.html recherche_simple.haml && html2haml region_n-1_recherche_dir.html region_n-1_recherche_dir.haml && html2haml content_article_n-1.html content_article_n-1.haml && html2haml fiche_2.html fiche_ |
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
$LOAD_PATH << File.dirname(__FILE__) | |
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'vendor', 'attachment_fu', 'lib') | |
require 'active_record' | |
require 'attachment_fu' | |
require 'attachment_fu/tasks' | |
require 'open-uri' | |
require 'json' | |
require 'RMagick' | |
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
(200..450).each do |i| | |
if a.search("img[@width=#{i}]").size >= 1 | |
a.search("img[@width=#{i}]").collect do |c| | |
puts c["src"] | |
end | |
end | |
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
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNDQwNDU4MzAyMjYmcHQ9MTI*NDA*NTg*NjgzNyZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJnQ9Jm89YmM*NTQ5ZjAzOTRmNGY5ZTkzZTA1MTA5ODgzYTcyNTkmb2Y9MA==.gif" /><div style="width:425px;text-align:left" id="__ss_1505963"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/heikowebers/hacking-ruby-on-rails-at-railswaycon09-1505963?type=presentation" title="Hacking Ruby on Rails at Railswaycon09">Hacking Ruby on Rails at Railswaycon09</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=railswaycon09presentation-090529071741-phpapp01&stripped_title=hacking-ruby-on-rails-at-railswaycon09-1505963" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.sli |
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
<html> | |
<head> | |
<style type="text/css"> | |
body{ | |
font-family: Helvetica; | |
} | |
</style> | |
<script src="http://www.newzyexecutive.fr/javascripts/cache/bundle.js?1234270044" type="text/javascript"></script> | |
</head> | |
<body> |
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
document.onkeydown = TabExample; | |
function TabExample(evt) { | |
var evt = (evt) ? evt : ((event) ? event : null); | |
if(evt.keycode == 9) { | |
// do work | |
} |
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
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="550" height="450" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"> | |
<param name="src" value="http://media.railscasts.com/videos/165_edit_multiple.mov" /> | |
<param name="autoplay" value="true" /> | |
<param name="loop" value="false" /> | |
<param name="controller" value="true" /> | |
<param name="scale" value="tofit" /> | |
<embed src="http://media.railscasts.com/videos/165_edit_multiple.mov" width="550" height="450" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/" scale="tofit"></embed> | |
</object> |