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
var map; | |
function load_map(){ | |
if (GBrowserIsCompatible()) { | |
map = new GMap2(document.getElementById("map_div_12")); | |
map.setCenter(new GLatLng(40.73897,-74.033918),14); | |
//.. other map code here .. | |
} | |
} |
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
<%= map.map.to_html :function => "load_map" %> | |
<%= map.map.div :width => 550, :height => 300 %> |
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_map(); | |
$("map_div").show("slow"); |
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
//calls | |
Method1(webToPass); | |
Method2(listToPass); | |
//definition | |
private void Method1 (SPWeb web) | |
{ | |
web.permissions = "full"; | |
} |
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
class SomeController < ActionController::Base | |
before_filter :authenticate, :only => [:destroy] | |
def index | |
#index actions | |
end | |
def show | |
#index actions | |
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
public class SomeController : IController | |
{ | |
public override void Index() | |
{ | |
//Index action | |
} | |
public override void Show() | |
{ |
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
GITHUB_JSON_URL = "http://github.com/api/v1/json/{0}?callback={1}"; | |
DYNAMIC_SCRIPT_TEMPLATE = "<script src='{0}' type='text/javascript' ></script>"; | |
GITHUB_PROJECTS_CLASS = ".github-projects"; | |
REPO_TEMPLATE = | |
"<div class='github-repo'>" | |
+ "<a href='{0}' target='_blank'>" | |
+ "{1}<img class='github-repo-link-image'" | |
+ "src='http://erlanguid.com/icons/external.png'" | |
+ "</a>" | |
+"</div>"; |
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
var GitHubRepos = new function(){ | |
this.displayObjects = new Array(); | |
//retrieve the repo information from github | |
this.GetRepos = function() | |
{ | |
//... | |
} | |
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
this.GetRepos = function() | |
{ | |
//create an array of the github data, used to prevent mutiple hits | |
//to the server for the same user | |
var github_usernames = new Array(); | |
//for all the github-projects divs | |
$(GITHUB_PROJECTS_CLASS).each(function(i) { | |
//create an array of all unique userids in the 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
<div class="github-projects" id="johnbender" style="display: block;"> | |
<div class="github-projects-title">GitHub Projects</div> | |
</div> |
OlderNewer