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
<html> | |
<body> | |
Hello World ! | |
</body> | |
</html> |
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 AWS = require('aws-sdk'); | |
var swf = new AWS.SWF(); | |
exports.handler = function(event, context) { | |
console.log('Loop started !', JSON.stringify(event, null, 2) ); | |
function callMySelfAndQuit() { | |
var lambda = new AWS.Lambda(); | |
lambda.invoke({ |
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 myWidgetTop = myWidget.el.getBoundingClientRect().top; | |
CLICRDV.events.addListener(window, 'message', function (e) { | |
// Only handle messages comming from clicrdv.com domain | |
if (/https?:\/\/([a-z0-9\-]+\.)?clicrdv\.com/.test(e.origin)) { | |
window.scrollTo( 0, myWidgetTop ); | |
} | |
}); |
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 | |
# Textmate command to build a YUI component from Textmate | |
cd $TM_DIRECTORY | |
cd .. | |
echo "<pre style='font-size: 80%;'>" | |
ant all | |
echo "</pre>" |
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
import com.sforce.soap.enterprise.Connector | |
import com.sforce.soap.enterprise.DeleteResult | |
import com.sforce.soap.enterprise.EnterpriseConnection | |
import com.sforce.soap.enterprise.Error | |
import com.sforce.soap.enterprise.QueryResult | |
import com.sforce.soap.enterprise.SaveResult | |
import com.sforce.soap.enterprise.sobject.Account | |
import com.sforce.soap.enterprise.sobject.Contact | |
import com.sforce.ws.ConnectionException | |
import com.sforce.ws.ConnectorConfig |
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 ! |
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
#!/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
/** | |
* Set up the inline importer | |
*/ | |
Exhibit.InlineImporter = { }; | |
Exhibit.importers["inline"] | |
= Exhibit.InlineImporter; | |
Exhibit.InlineImporter.load | |
= function(data, database, cont) { | |
Exhibit.UI.showBusyIndicator(); |
NewerOlder