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
Viewer.MessageProcessor = function () { | |
var self = this; | |
this.findHandlerByMessage = function (message) { | |
for (var i = 0; i < this.Handlers.length; i++) { | |
if (this.Handlers[i].message == message) { | |
return this.Handlers[i].handler; | |
} | |
} | |
return undefined; |
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
dojo.require("dojox.html.entities"); | |
function Whiteboard(name, params) { | |
JXG.Options.renderer = 'canvas'; | |
JXG.Options.text.useMathJax = true; | |
this._name = name; | |
params = params || {}; | |
params.axis = params.axis || false; |
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
define([ | |
'dojo/ready', | |
'dojo/_base/declare', | |
'dojo/_base/lang', | |
'dijit/Dialog', | |
'dojox/layout/TableContainer', | |
'dojox/layout/ScrollPane', | |
'dijit/Toolbar', | |
'dijit/form/Button' | |
], function(ready, declare, lang, Dialog, TableContainer, ContentPane, Toolbar, Button) { |
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
CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci; | |
CREATE USER 'dbuser'@'%' IDENTIFIED BY 'dbuser'; | |
GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@'%' WITH GRANT OPTION; |
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
define(function(){ | |
var instance = null; | |
function MySingleton(){ | |
if(instance !== null){ | |
throw new Error("Cannot instantiate more than one MySingleton, use MySingleton.getInstance()"); | |
} | |
this.initialize(); | |
} |
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
var Overlay = ({ | |
videoWasRestarted: false, | |
items: [ | |
{ | |
divId: 'CorporateSoundOverlayItem', | |
moveOptions: OverlayCorporateSoundOptions | |
}, | |
{ | |
divId: 'WebAppsOverlayItem', | |
moveOptions: WebAppsOverlayItem |
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
@Guice(modules = { CommonModule.class }) | |
@Listeners({LogTestListener.class, HTMLReporter.class}) | |
abstract public class AbstractTest<T extends AbstractPage, S extends PageAssertion> { | |
protected static final Logger LOG = LoggerFactory.getLogger(AbstractTest.class); | |
private static final BrowserKind BROWSER = BrowserKind.FireFox; | |
private final WebDriver driver; | |
private final Class<T> pageClass; |
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
<?PHP | |
/* | |
* PHP upload for Gyazo - v1.2.1 - 3/13/2011 | |
* http://benalman.com/news/2009/10/gyazo-on-your-own-server/ | |
* | |
* Copyright (c) 2011 "Cowboy" Ben Alman | |
* Licensed under the MIT license | |
* http://benalman.com/about/license/ | |
*/ |
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
#!/usr/bin/env ruby | |
# -*- ruby -*- | |
# | |
# $Date$ | |
# $Rev$ | |
# | |
require 'cgi' | |
require 'digest/md5' | |
require 'sdbm' |
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
server { | |
listen 80; | |
server_name localhost; | |
location /grab/ { | |
root C:/dev/php/gayzo; | |
} | |
location /gayzo/ { | |
proxy_pass http://127.0.0.1:9000/gayzo/; |
OlderNewer