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
---------- Forwarded message ---------- | |
From: Mark S. Miller <[email protected]> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: [email protected] | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |
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"> | |
function onContributionWizardAfterAddEntry(entries) { | |
for(var i = 0; i < entries.length; i++) { | |
parent.top.$j("#externalVideoID").val(entries[i].entryId); | |
} | |
} | |
</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
<html lang="en"> | |
<title>Gigya Social Demo - getContacs</title> | |
<script type="text/javascript" lang="javascript" src="http://cdn.gigya.com/js/socialize.js?apikey=xx"> | |
</script> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript"> | |
gigya.socialize.addEventHandlers({ onConnectionAdded: renderUI, onConnectionRemoved: renderUI }); | |
gigya.socialize.showAddConnectionsUI({ |
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.renderUI = function(res) { | |
var connected = (res.user != null && res.user.isConnected); | |
var contactsData = []; | |
if(connected) { | |
$j('#jive-modal-invite').trigger('close'); | |
contactsData['contacts'] = gigya.socialize.getContacts({callback: function(response){ // How can I async js this line such that only when this returns should alert be called? | |
contactsData['contacts'] = response; | |
}}); | |
alert(contactsData); // returns null | |
} |
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
Unit testing with Mock objects using Mockito | |
-------------------------------------------- | |
2 concepts | |
- mock (create object using mocks) | |
- stub (modify a created object with stub). useful methods when stubbing are: | |
- when | |
- doReturn | |
How mock object works | |
--------------------- |
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 KalturaVideoProviderTest { | |
private static final Logger log = LogManager.getLogger(KalturaVideoProviderTest.class); | |
private static KalturaVideoProvider kalturaVideoProvider; | |
private static KalturaClient kalturaClient; | |
private static CreateVideoActionBean bean ; | |
private static VideoService videoService; | |
private static VideoMetadataManager videoMetadataManager; | |
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
CREATE TABLE jivevideoviewhistory | |
( | |
objectid integer NOT NULL, | |
objecttype integer NOT NULL, | |
dateviewed bigint NOT NULL, | |
viewcount bigint DEFAULT 0, | |
userid bigint, | |
expirydate bigint NOT NULL, | |
CONSTRAINT jivevideoviewhistory_pkey PRIMARY KEY (objectid, objecttype) | |
) |
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 id="js-join-tip" class="j-pop js-pop popover j-qtip js-onboarding-tip" style="position: fixed; top: 25px; right: 105px; visibility: visible; z-index: 100;" data-location="places" data-fromq="-1790695889"> | |
<div class="j-tips d-places-tip j-pop-main"> | |
<div id="jive-tips-partnerActionLeftNavTip" data-group-id="partnerTipGroup" style="display: block;" class="j-tips j-pop-main"><span class="j-508-label a11y-boundary">Menu begins</span><h4 class="font-face-deco">Join other contributors</h4><p>Other contributors are waiting for you. Accept group invitations and connection requests to start participating now.</p><!-- BEGIN tip footer --><div class="j-tips-footer"><div class="j-tips-footer-overlay"></div><ul class="j-tips-actions"><li><a href="#" class="js-ignore-tips close" title="Show this tip the next time you view this page">Skip for now</a></li><li><a href="#" class="js-close-tips close" title="Hide these tips now and don't show them again">Don't show again</a></li></ul></div><!-- END tip footer --><span |
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
<bean id="welcomeGroupsAndPagesTip" class="com.jivesoftware.community.tips.impl.DefaultTip" scope="prototype"> | |
<property name="selector" value="#navCreate"/> | |
<property name="templateName" value="jive.tips.invitation.welcomeGroupsAndPagesReco"/> | |
</bean> | |
<bean id="placeRecoWelcomeTip" class="com.jivesoftware.community.util.spring.MergeableCollection" scope="prototype" parent="welcomeTips"> | |
<property name="source"> | |
<util:list value-type="com.jivesoftware.community.tips.Tip" scope="prototype"> |
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
<?xml version="1.0"?> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.google.code</groupId> | |
<artifactId>google-closure-templates</artifactId> | |
<version>20120815</version> |
OlderNewer