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
| 8> js_test:run(). | |
| {ok,<<"Hello, Generic Game Server">>} |
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(js_test). | |
| -export([run/0]). | |
| run() -> | |
| erlang_js:start(), | |
| {ok, Port} = js_driver:new(), | |
| ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>), | |
| js:call(Port, <<"helloworld">>, [<<"Generic Game Server">>]). |
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
| New = 1, | |
| CompleteList = [1,2,3,4,5], % 1 is already in list | |
| NoDupes = [New | lists:delete(New, CompleteList)]. |
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
| DROP TRIGGER CourseOverFlowTrigger; | |
| CREATE TRIGGER CourseOverflowTrigger | |
| INSTEAD OF INSERT ON WaitingListView | |
| REFERENCING NEW AS NewRow | |
| OLD AS OldRow | |
| FOR EACH ROW | |
| DECLARE maxStudents NUMBER; | |
| regedStudents NUMBER; | |
| maxPlacement NUMBER; | |
| numMissingCourses NUMBER; |
NewerOlder