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
| package main | |
| import "fmt" | |
| import "os" | |
| var scores=map[string]string{ | |
| "qd__f_ee": "`b]__", | |
| "qd_``baa": "_e]__", | |
| "qd_`abah": "`d]__", | |
| "qd_adcfb": "_e]d_", |
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
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| using namespace std; | |
| // | |
| // $ g++ --std=c++0x test.cpp | |
| // | |
| int main() { |
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 lang="en"> | |
| <head> | |
| <title>Bat Tracer, a simple Twitter search client in Batman.js</title> | |
| <script src="/batman/es5-shim.js" type="text/javascript"></script> | |
| <script src="/batman/coffee-script.js" type="text/javascript"></script> | |
| <script src="/batman/batman.js" type="text/javascript"></script> | |
| <script src="/batman/batman.solo.js" type="text/javascript"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
| <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.1.0.min.css"> |
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 DesktopScope implements Scope { | |
| def get(String name, ObjectFactory of) { | |
| def desktop = Executions?.current?.desktop | |
| def obj = desktop?.getAttribute(name) | |
| if(!obj) { | |
| obj = of.getObject() | |
| desktop?.setAttribute(name, obj) | |
| } | |
| return obj |
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
| <window apply="PersonComposer"> | |
| <grid> | |
| <rows> | |
| <row> <textbox id="txtFirstName"/> </row> | |
| <row> <textbox id="txtLastName"/> </row> | |
| <row> <textbox id="txtFullName"/> </row> | |
| <row> | |
| <hbox id="boxDialog"> | |
| <button>Save</button> | |
| <button>Cancel</button> |
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
| <zk apply="zk.grails.Hangman"> | |
| <vbox> | |
| <hbox> | |
| Number of Wrong Guess: <label id="count" /> | |
| </hbox> | |
| <image id="imgStep"/> | |
| <hbox> | |
| The Word: | |
| <label id="answer"/> | |
| </hbox> |
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 UserComposer extends GrailsComposer { | |
| def afterCompose = { wnd -> | |
| $('#buttonHolder').append { | |
| button(label:"B1.1") | |
| button(label:"B1.2") | |
| button(label:"B1.3") | |
| } | |
| binds wnd |
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
| package helloworld | |
| import org.zkoss.zk.grails.* | |
| class HelloComposer extends GrailsComposer { | |
| def afterCompose = { wnd -> | |
| } | |
| def world() { |
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
| package zk | |
| import org.openqa.selenium.By | |
| import org.openqa.selenium.WebDriver | |
| import org.openqa.selenium.WebElement | |
| import org.openqa.selenium.chrome.ChromeDriver | |
| import org.openqa.selenium.chrome.ChromeDriverService | |
| import org.openqa.selenium.remote.RemoteWebDriver | |
| import org.openqa.selenium.remote.DesiredCapabilities | |
| import org.junit.runners.BlockJUnit4ClassRunner |
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() => return new A(); | |
| class A extends Object { | |
| Object _o; | |
| A() : super() { } | |
| Object get o() => return this._o; | |
| set o(Object value) => this._o = value; | |
| } | |
| a() |