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
| <script type="text/javascript" language="javascript"> | |
| //--<![CDATA[ | |
| $j(document).ready( function(){ | |
| $j("#close").remove(); | |
| $j("body").css({"color":"white"}); | |
| $j("h2").css({"color":"white"}); | |
| $j("ul.responses li").css({"list-style-image":"none", "list-style-type": "disc", "color" : "white"}); | |
| $j("ul.responses li").find("a").each(function(i,elm){ | |
| var $elm = $j(elm); | |
| var $li = $elm.closest("li"); |
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
| <h1>Sample Rich Text Editor</h1> | |
| <div id="sample_textarea"></div> | |
| <script language="javascript" type="text/javascript" src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> | |
| <script type="text/javascript"> | |
| //-- <![CDATA[ | |
| tinyMCE.init({ | |
| theme : "advanced", | |
| dialog_type : "modal", | |
| plugins : "inlinepopups,fullscreen, spellchecker, paste, directionality", |
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
| $j(document).ready(function(){ | |
| $j.ajax({ | |
| url : "/main/homearea/quester_info_xml.pl", | |
| type : "GET", | |
| dataType : "xml", | |
| success : function(doc) { | |
| var user_id = doc.getElementsByTagName("user_id").item(0).firstChild.nodeValue; | |
| $j.ajax({ | |
| url : "/main/projectSupport/designer/avatarObjects/avatarSelect.pl", | |
| type : "POST", |
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
| <a href="#" class="save_to_academia_bookmarks">Save to Academia Bookmarks</a> | |
| <script type="text/javascript"> | |
| window.Academia = window.Academia || {}; | |
| (function(a){ | |
| // the load event handler for the iframe | |
| a.iframe_loaded = function(e) { console.log(e); } | |
| // the click event handler for | |
| a.a_links = document.getElementsByClassName("save_to_academia_bookmarks"); | |
| for (i = 0; i < a.a_links.length; i++) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>3rd party website using the bookmarking widget</title> | |
| </head> | |
| <body> | |
| ....content.... | |
| <!-- Embed the script tag to make the widget show here --> | |
| <script src="http://bookmarking-site.com/javascripts/widget.js"></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
| # the anatomy of a slot | |
| Slot = Struct.new(:row, :column, :value) | |
| # The board has n x n slots | |
| class Board | |
| # Constants | |
| X = "X" | |
| O = "O" |
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
| # Installs on Snow Leopard. | |
| # Homebrew | |
| ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)" | |
| echo 'export PATH=/usr/local/bin:/usr/local/sbin:$PATH' >> ~/.bash_profile | |
| # Close Terminal window. | |
| # Git | |
| brew install git | |
| brew update |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Standalone Carousel</title> | |
| </head> | |
| <body> | |
| <div id="carousel"></div> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <script src="http://www.ius.edu/front/javascripts/carousel_cached.js"></script> | |
| <link href="http://www.ius.edu/front/stylesheets/carousel_cached.css" rel="stylesheet" type="text/css" media="screen"/> |
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
| // Fixing cascade resources | |
| (function($){ | |
| // Fixing cascade resources | |
| $.fn.absolutizePath = function(prefix, base_path) { | |
| this.each(function() { | |
| // No need to rewrite src or links if already inside ccp | |
| if (/\/ccp\//.test(window.location.href)) { | |
| return; | |
| } |