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 'openwfe/engine/file_persisted_engine' # sudo gem install ruote | |
engine = OpenWFE::FilePersistedEngine.new( | |
:definition_in_launchitem_allowed => true) | |
# | |
# the process definition | |
class MyTodoProcess < OpenWFE::ProcessDefinition |
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 'benchmark' | |
def method_1 | |
# `curl -d "password=403" http://wiki.agideo.com/agideowiki/authenticate >> /dev/null 2>&1 ` | |
`curl http://f22.agideo.com >> /dev/null 2>&1 ` | |
# `curl http://agi-alvin.javaeye.com >> /dev/null 2>&1 ` | |
# `curl http://www.google.com >> /dev/null 2>&1 ` | |
# `curl http://primy.agideo.com >> /dev/null 2>&1 ` | |
# `curl http://douban.com >> /dev/null 2>&1 ` | |
end |
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
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript" language="javascript"> | |
google.load("jquery", "1.2"); | |
google.load("jqueryui", "1.5.2"); // 不用 jQuery UI 可以不用此行 | |
</script> | |
<script type="text/javascript" language="javascript"> | |
$(document).ready(function() { | |
alert($); | |
}); |
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 tb = new Ext.Toolbar({ | |
renderTo: document.body, | |
width: 600, | |
height: 100, | |
items: [ | |
{ | |
// xtype: 'button', // default for Toolbars, same as 'tbbutton' | |
text: 'Button' | |
}, |
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
Ext.onReady(function(){ | |
// shorthand | |
var Tree = Ext.tree; | |
var tree = new Tree.TreePanel({ | |
useArrows: true, | |
preloadChildren :true, | |
autoScroll: true, | |
animate: true, | |
containerScroll: true, |
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 ds = new Ext.data.Store({ | |
proxy: new Ext.data.ScriptTagProxy({ | |
url: 'http://extjs.com/forum/topics-remote.php' | |
}), | |
reader: new Ext.data.JsonReader({ | |
root: 'topics', | |
totalProperty: 'totalCount', | |
id: 'post_id' | |
}, [ | |
{name: 'title', mapping: 'topic_title'}, |
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
#!/usr/bin/env bash | |
# - indent | |
# OP javascript indentation : This indentation script for OOP javascript (especially for EXTJS) | |
# http://www.vim.org/scripts/script.php?script_id=1936 | |
echo "-install indent " | |
cd ~/.vim/indent || mkdir -p ~/.vim/indent | |
wget http://www.vim.org/scripts/download_script.php?src_id=7708 -O ~/.vim/indent/javascript.vim | |
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
vendor/plugins/auto_complete/ | |
vendor/plugins/auto_complete/lib | |
vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb | |
vendor/plugins/auto_complete/lib/auto_complete.rb | |
vendor/plugins/auto_complete/init.rb | |
vendor/plugins/auto_complete/README | |
vendor/plugins/auto_complete/Rakefile | |
# vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb |
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
log/*.log | |
tmp/**/* | |
*.swp | |
config/database.yml | |
db/*.sqlite3 | |
*.log | |
db/schema.rb |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title><%= h(yield(:title) || PROJECT_NAME) -%></title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="Ocean shipping" /> | |
<meta name="keywords" content="Ocean shipping" /> | |
<%= javascript_include_tag :defaults -%> | |
<%# stylesheet_link_tag "http://yui.yahooapis.com/2.6.0/build/reset-fonts-grids/reset-fonts-grids.css" %> | |
<%= stylesheet_link_tag "reset-fonts-grids" %> |
OlderNewer