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
// Defini la structure des pages et le xpath pour recuperer les donnees | |
var xpath = '//table[@class="sobi2Listing"]/tr//td'; | |
var baseUrl = "http://www.abcvert.fr/annuaire/energies-renouvelables/solaire"; | |
var getUrl = function(pageIndex) { | |
return baseUrl + ((pageIndex == 0) ? ".html" : "/Page-"+(pageIndex+1)+".html"); | |
}; | |
// Recuperation des contacts | |
var contacts = {}; |
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
var list=[]; | |
for(var i = 0 ;i < 10 ; i++) { | |
list[i] = i*i; | |
} | |
response.object = { | |
version: 3.14, | |
square: list | |
}; |
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
<html> | |
<head> | |
<title>Permalink methods with TinyUrl via JSONP</title> | |
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/utilities/utilities.js"></script> | |
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/json/json-min.js"></script> | |
</head> | |
<body> | |
<script> | |
var Permalink = { |
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
/** | |
* Methods to persist the tooltip if we are hovering over the tooltip element | |
*/ | |
YAHOO.util.Event.addListener(this.tooltip.element, "mouseover", function(e,obj) { | |
if (this.hideProcId) { | |
clearTimeout(this.hideProcId); | |
this.hideProcId = null; |
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
/** | |
* Methods to persist the tooltip if we are hovering over the tooltip element | |
*/ | |
YAHOO.util.Event.addListener(this.tooltip.element, "mouseover", function(e,obj) { | |
if (this.hideProcId) { | |
clearTimeout(this.hideProcId); | |
this.hideProcId = null; |
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
/** | |
* Set up the inline importer | |
*/ | |
Exhibit.InlineImporter = { }; | |
Exhibit.importers["inline"] | |
= Exhibit.InlineImporter; | |
Exhibit.InlineImporter.load | |
= function(data, database, cont) { | |
Exhibit.UI.showBusyIndicator(); |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<script src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js" type="text/javascript" charset="utf-8"></script> | |
<script> | |
window.onload = function() { | |
// Inserting foreignObject into the markup svg | |
var g = document.getElementById("g"); |
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
#!/bin/sh | |
git init | |
git add * | |
git commit -m 'first commit' | |
git remote add origin git@github.com:neyric/$1.git | |
git push origin master | |
# Create the gh-pages branch to serve the files from GitHub | |
git branch gh-pages |
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 'rubygems' | |
require 'gmail' | |
require 'prowl' | |
gmail = Gmail.new('eric.****@gmail.com', '****') | |
emails = gmail.inbox.emails(:unread, :from => "noreply@dragongoserver.net") | |
if emails.size > 0 | |
email = emails.first |
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 'rubygems' | |
require 'rforce' | |
require 'base64' | |
# Install: | |
# sudo gem install rforce | |
# sudo gem install facets -v 2.4 | |
# | |
# Important: rforce 0.4.1 is not compatible with facets 2.9 ! |
OlderNewer