ezii 0.0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/eezee-3-aka-game-x-engine.zip +0 -0
- data/eezee-3-aka-game-x-engine/README.md +5 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/base_command.rb +20 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/mouse_y_axis_to_3d_z_axis.rb +4 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/rotate_camera_axis_using_mouse_drag.rb +37 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/selection_cube.rb +35 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gam.rb +467 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gems.locked +77 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gems.rb +10 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/lib/drb_server.rb +13 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/lib/mittsu_monkeypatches/box_geometry.rb +5 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/runnable.rb +9 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/shapes/cube.rb +33 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/sig/runable.rbi +9 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test.sh +5 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/commands/test_selection_cube.rb +31 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/test_command_remapping.rb +30 -0
- data/eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/test_helper.rb +75 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chat.txt +15 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb +718 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/gems.locked +50 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/gems.rb +13 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/setup-mac-os-x.sh +0 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/setup.sh +1 -0
- data/eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/start.sh +3 -0
- data/eezee-3-aka-game-x-engine/managables/services/error-inspect/simplest-log +1 -0
- data/eezee-3-aka-game-x-engine/managables/services/error-inspect/simplest-log-init +1 -0
- data/eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/gems.locked +17 -0
- data/eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/gems.rb +5 -0
- data/eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/twitch_zircon.rb +112 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/README.md +3 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/__main__.js +58 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/black-out-random-word.js +74 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-sentence.js +57 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-wikipedia-page.js +25 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-words.js +34 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/rare-enough-word.js +41 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/wikipedia-page.js +35 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/package.json +20 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/statistics/count-word.js +12 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/utils/log-to-natural-database.js +10 -0
- data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/word2vec-models/test-text8-vector.bin +0 -0
- data/eezee-3-aka-game-x-engine/managament_interface/gems.locked +13 -0
- data/eezee-3-aka-game-x-engine/managament_interface/gems.rb +3 -0
- data/eezee-3-aka-game-x-engine/managament_interface/management_interface +4 -0
- data/eezee-3-aka-game-x-engine/managament_interface/runnable.rb +30 -0
- data/eezee-3-aka-game-x-engine/start.sh +2 -0
- data/ezii.gemspec +1 -1
- metadata +49 -3
@@ -0,0 +1,41 @@
|
|
1
|
+
const lib = require('lib');
|
2
|
+
// const l2nadb = require('./log-to-natural-database');
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Get random words form the provided text.
|
6
|
+
* @returns {any}
|
7
|
+
*/
|
8
|
+
module.exports = async function(word = "") {
|
9
|
+
//TODO: make database work again, natural db neeeds hosting
|
10
|
+
|
11
|
+
// return "test";
|
12
|
+
|
13
|
+
// let queryMin = {
|
14
|
+
// "resource": "WordFrequency",
|
15
|
+
// "minColumn": "count"
|
16
|
+
// };
|
17
|
+
//
|
18
|
+
// let lessUsedWordCount = parseInt(
|
19
|
+
// (await lib[`koma.natural-db[@dev].min`](queryMin))
|
20
|
+
// ['result']
|
21
|
+
// [0]
|
22
|
+
// );
|
23
|
+
//
|
24
|
+
// let queryWordCount = {
|
25
|
+
// resource: 'WordFrequency',
|
26
|
+
// filter: 'word_normal',
|
27
|
+
// filterValue: word
|
28
|
+
// };
|
29
|
+
//
|
30
|
+
// let wordUsedCountQueryResult = (
|
31
|
+
// (await lib[`koma.natural-db[@dev].show`](queryWordCount))
|
32
|
+
// ['result']
|
33
|
+
// );
|
34
|
+
//
|
35
|
+
// if (wordUsedCountQueryResult.length === 0) return true;
|
36
|
+
//
|
37
|
+
// let wordUsedCount = parseInt(wordUsedCountQueryResult[0][2]);
|
38
|
+
//
|
39
|
+
// return (wordUsedCount < (lessUsedWordCount + 10));
|
40
|
+
return word.length > 5;
|
41
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
const axios = require('axios');
|
2
|
+
const _ = require('underscore');
|
3
|
+
const sanitizeHtml = require('sanitize-html');
|
4
|
+
const decodeHtml = require('decode-html');
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Random wikipedia article contents
|
8
|
+
* @returns {object}
|
9
|
+
*/
|
10
|
+
module.exports = async (language = 'en', pageIds = []) => {
|
11
|
+
var apiResponse;
|
12
|
+
if(pageIds) {
|
13
|
+
apiResponse = await axios.get(randomWikipediaArticleApiEndpoint(language));
|
14
|
+
} else {
|
15
|
+
apiResponse = await axios.get(artByPageId(pageIds[0]));
|
16
|
+
}
|
17
|
+
|
18
|
+
var page = _.values(apiResponse.data['query']['pages'])[0];
|
19
|
+
var response = {};
|
20
|
+
|
21
|
+
response['text'] = decodeHtml(sanitizeHtml(page['extract'], {allowedTags: []}));
|
22
|
+
response['title'] = page['title'];
|
23
|
+
response['wikipediaId'] = page['pageid'];
|
24
|
+
|
25
|
+
return response;
|
26
|
+
};
|
27
|
+
|
28
|
+
function randomWikipediaArticleApiEndpoint(language) {
|
29
|
+
return `https://${language}.wikipedia.org/w/api.php?format=json&action=query&generator=random&grnnamespace=0&prop=extracts&grnlimit=1`;
|
30
|
+
//return `https://en.wikipedia.org/w/api.php?format=json&action=query&titles=World_history&grnnamespace=0&prop=extracts&grnlimit=1`;
|
31
|
+
}
|
32
|
+
|
33
|
+
function artByPageId(pageId) {
|
34
|
+
return `https://en.wikipedia.org/w/api.php?format=json&action=query&pageids=${pageId}&grnnamespace=0&prop=extracts&grnlimit=1`
|
35
|
+
}
|
data/eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/package.json
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "koma/qanda-api",
|
3
|
+
"description": "qanda-app.com API",
|
4
|
+
"version": "0.0.17",
|
5
|
+
"author": "koma",
|
6
|
+
"stdlib": {
|
7
|
+
"name": "koma/qanda-api",
|
8
|
+
"publish": true,
|
9
|
+
"timeout": 10000
|
10
|
+
},
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^0.18.0",
|
13
|
+
"underscore": "^1.9.1",
|
14
|
+
"compromise": "^11.9.1",
|
15
|
+
"sanitize-html": "^1.18.2",
|
16
|
+
"decode-html": "^2.0.0",
|
17
|
+
"lib": "^3.0.2",
|
18
|
+
"word2vec-pure-js": "^0.0.2"
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
const lib = require('lib');
|
2
|
+
|
3
|
+
module.exports = async function(word) {
|
4
|
+
await lib[`koma.natural-db[@dev].create-or-increment`]({
|
5
|
+
resource: 'WordFrequency',
|
6
|
+
whereColumn: 'word_normal',
|
7
|
+
whereValue: word,
|
8
|
+
incrementColumn: 'count',
|
9
|
+
token: process.env.NATURAL_DB_TOKEN,
|
10
|
+
db: 19
|
11
|
+
});
|
12
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
const lib = require('lib');
|
2
|
+
|
3
|
+
module.exports = async function(textToLog) {
|
4
|
+
await lib[`koma.natural-db[@dev].add`]({
|
5
|
+
resource: 'Logs',
|
6
|
+
data: {logged_text: textToLog},
|
7
|
+
token: "eyJhbGciOiJIUzI1NiJ9.eyJwcm9qZWN0X2lkIjoyMiwiZXhwIjoxNTYwMzU0ODM3fQ.jghaYoFOiMDWLQNNBZAWXYLE40DPwtMd5AN8-JyFpCI",
|
8
|
+
db: 46
|
9
|
+
});
|
10
|
+
}
|
Binary file
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'ruby2d'
|
2
|
+
|
3
|
+
# Set the window size
|
4
|
+
set width: 400, height: 400
|
5
|
+
|
6
|
+
set title: "Fun first"
|
7
|
+
|
8
|
+
Text.new('Managables', y: 0)
|
9
|
+
Text.new(' Games', y: 20)
|
10
|
+
Text.new(' Game Aided Manufacturing', y: 40)
|
11
|
+
|
12
|
+
|
13
|
+
Text.new(' Services', y: 60)
|
14
|
+
Text.new(' Error Web App', y: 80)
|
15
|
+
Text.new(' Vision/OCR', y: 100)
|
16
|
+
Text.new(' Livestream Interactive', y: 120)
|
17
|
+
|
18
|
+
|
19
|
+
on :mouse_up do |event|
|
20
|
+
# x and y coordinates of the mouse button event
|
21
|
+
case event.button
|
22
|
+
when :left
|
23
|
+
puts event.x
|
24
|
+
puts event.y
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
# Show the window
|
30
|
+
show
|
data/ezii.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezii
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Arno Korfmann
|
@@ -16,6 +16,53 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- eezee-3-aka-game-x-engine.zip
|
20
|
+
- eezee-3-aka-game-x-engine/README.md
|
21
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/base_command.rb
|
22
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/mouse_y_axis_to_3d_z_axis.rb
|
23
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/rotate_camera_axis_using_mouse_drag.rb
|
24
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/functions/selection_cube.rb
|
25
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gam.rb
|
26
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gems.locked
|
27
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/gems.rb
|
28
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/lib/drb_server.rb
|
29
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/lib/mittsu_monkeypatches/box_geometry.rb
|
30
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/runnable.rb
|
31
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/shapes/cube.rb
|
32
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/sig/runable.rbi
|
33
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test.sh
|
34
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/commands/test_selection_cube.rb
|
35
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/test_command_remapping.rb
|
36
|
+
- eezee-3-aka-game-x-engine/managables/programs/game_aided_manufacturing/test/test_helper.rb
|
37
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chat.txt
|
38
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb
|
39
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/gems.locked
|
40
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/gems.rb
|
41
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/setup-mac-os-x.sh
|
42
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/setup.sh
|
43
|
+
- eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/start.sh
|
44
|
+
- eezee-3-aka-game-x-engine/managables/services/error-inspect/simplest-log
|
45
|
+
- eezee-3-aka-game-x-engine/managables/services/error-inspect/simplest-log-init
|
46
|
+
- eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/gems.locked
|
47
|
+
- eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/gems.rb
|
48
|
+
- eezee-3-aka-game-x-engine/managables/services/livestream-interactive/Twitch.Tv/twitch_zircon.rb
|
49
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/README.md
|
50
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/__main__.js
|
51
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/black-out-random-word.js
|
52
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-sentence.js
|
53
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-wikipedia-page.js
|
54
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/random-words.js
|
55
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/rare-enough-word.js
|
56
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/functions/wikipedia-page.js
|
57
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/package.json
|
58
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/statistics/count-word.js
|
59
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/utils/log-to-natural-database.js
|
60
|
+
- eezee-3-aka-game-x-engine/managables/services/stdlib-dot-com/koma/qanda-api@dev/word2vec-models/test-text8-vector.bin
|
61
|
+
- eezee-3-aka-game-x-engine/managament_interface/gems.locked
|
62
|
+
- eezee-3-aka-game-x-engine/managament_interface/gems.rb
|
63
|
+
- eezee-3-aka-game-x-engine/managament_interface/management_interface
|
64
|
+
- eezee-3-aka-game-x-engine/managament_interface/runnable.rb
|
65
|
+
- eezee-3-aka-game-x-engine/start.sh
|
19
66
|
- ezii-client/Gemfile
|
20
67
|
- ezii-client/Gemfile.lock
|
21
68
|
- ezii-client/Procfile
|
@@ -124,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
171
|
- !ruby/object:Gem::Version
|
125
172
|
version: '0'
|
126
173
|
requirements: []
|
127
|
-
|
128
|
-
rubygems_version: 2.5.2.3
|
174
|
+
rubygems_version: 3.0.3
|
129
175
|
signing_key:
|
130
176
|
specification_version: 4
|
131
177
|
summary: eZii solution
|