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
console.log('Hello Gist'); |
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
function getSuggestions(input) { | |
var result = {}; | |
var target = getTarget(input); | |
if (!target) { | |
return []; | |
} | |
var keys = getAllKeys(target); | |
var part = getLastPart(input); | |
for (var i = 0; i < keys.length; i++) { | |
if (keys[i].toLowerCase().startsWith(part.toLowerCase())) { |
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
describe( "Mock examples:", function() { | |
var version = jasmine.version_ ? jasmine.version_.major : parseInt( jasmine.version, 10 ); | |
var spyName = function( spy ) { | |
if( version === 1 ) { | |
return spy.identity; | |
} else { | |
return spy.and.identity() | |
} |
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
/******************************************************************************* | |
* Copyright (c) 2011 EclipseSource and others. All rights reserved. | |
******************************************************************************/ | |
import org.eclipse.rwt.internal.widgets.JSExecutor; | |
import org.eclipse.rwt.lifecycle.IEntryPoint; | |
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.widgets.Button; | |
import org.eclipse.swt.widgets.Canvas; | |
import org.eclipse.swt.widgets.Display; |
NewerOlder