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
-- Lua skeleton descriptor | |
print("Hello chris!") |
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
//exe | |
module webdev.webserver.modulebase.init; | |
export: | |
void onModuleLoad(); | |
void onModuleUnload(); |
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
module webdev.base.models.pagetemplate; | |
import webdev.base.orm; | |
import webdev.base.udas; | |
@ormTableName("PageTemplate") | |
struct PageTemplateModel { | |
@ormId { | |
/** | |
* The name of the page template. | |
*/ |
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
-- CONFIGDIR=http://www.videolan.org/support/faq.html#Config | |
-- Save to: $CONFIGDIR/lua/extensions/nowplaying.lua | |
require "io" | |
require "string" | |
function descriptor() | |
return { | |
title = "Now playing", | |
version = "2.0", |
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 String : JRootObject { | |
this(jobject id) { | |
myJavaObjectID_ = id; | |
} | |
private jobject myJavaObjectID_; | |
@property jobject myJavaObjectId() { return myJavaObjectID_; } | |
static { | |
private JClass myJavaClassID_; | |
@property JClass myJavaClassId() { | |
if (myJavaClassID_ is null) myJavaClassID_ = DJvm.getInstance.findClass("java.lang.String"); |
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
module devisualization.scenegraph.main; | |
import devisualization.scenegraph.scenegraph; | |
import devisualization.scenegraph.elements; | |
void main() { | |
import std.stdio; | |
SceneGraph3DOverlayed2D graph = new SceneGraph3DOverlayed2D; |
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
YesNoSometimes assmtfdbkParse(string text) { | |
string[] stes = text.split(","); | |
foreach(ste; stes) { | |
switch(ste) { | |
case "Yes definately": | |
return YesNoSometimes.Yes; | |
case "Depends on the student": | |
return YesNoSometimes.Sometimes; | |
default: | |
return YesNoSometimes.No; |
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
return { | |
test = function() print("hi there!") 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
# Simple skeleton descriptor | |
rmdir test | |
mkdir test |
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
abstract class WidgetFactory { | |
ScrollBar createScrollBar(); | |
Window createWindow(); | |
} | |
class PMWidgetFactory : WidgetFactory { | |
override ScrollBar createScrollBar() { | |
return new PMScrollBar(); | |
} | |