Skip to content

Instantly share code, notes, and snippets.

View lucasa's full-sized avatar

Lucas Alberto lucasa

View GitHub Profile

Organization - Apache Fineract

Mentor - Lalit Mohan, Aashish Sawhney

Project Summary - Code

  • The project consisted of providing an AI powered solution to the users for credit assessment of loans. The project covered various aspects from classical AI, considering various statistical models, to the modern-day neural network. The project is enriched with various credit modeling techniques, giving access to the user to choose one or any from them. It also takes care of the different data sources from which data can be fetched and has been fully incorporated to handle data coming from various sources like JSON/XML or SQL.

Work Done during previous GSoC sessions

During the previous GSoC, interns worked on configuring different sections, namely, rule based, statistical based and m

@lucasa
lucasa / mozilla_hubs_snap_shared_screen.js
Created February 22, 2021 01:55 — forked from AndreasH96/mozilla_hubs_snap_shared_screen.js
This code is based on a gist made by Utophia, https://gist.github.com/Utopiah/f2b11a8026030b726ecc8c8c9430a9b4 . It's made for being able to snap videos onto objects that are within object-groups. The code is made to be added into the file "floaty-objects.js" within the hubs client code base (2020-06-25).
snap(toSnap, snapOn) {
// Align rotation
toSnap.el.object3D.setRotationFromQuaternion(snapOn.object3D.getWorldQuaternion());
// Align position
toSnap.el.object3D.position.copy(snapOn.object3D.getWorldPosition());
// Set to same scale
toSnap.el.object3D.scale.copy(snapOn.object3D.getWorldScale());
// Move slightly to avoid texture tearing
@alkavan
alkavan / hardhat-openzeppelin-project.md
Created December 12, 2020 10:37
Hardhat and OpenZeppelin project bootstrap for Ethereum contract development

Install Instructions

Install Hardhat

npm install --save-dev hardhat

Initiate a new Hardhat project (in empty directory)

npx hardhat
@zach-capalbo
zach-capalbo / hubseggbot.js
Created May 16, 2020 14:28
A Headless Mozilla Hubs Bot that drops easter eggs in a room
const ROOM_URL = "https://hub.link/cmPv8xv"
var HEADLESS_BROWSER = true
var puppeteer = require('puppeteer');
var browser
var page
async function launchBrowser () {
browser = await puppeteer.launch({headless: HEADLESS_BROWSER});
// change YOURID with... YOUR ngrok id ;)
var lastModelTimestamp = null
var intervalCheck = setInterval(newModelReady, 500)
function newModelReady(){
fetch('http://YOURID.ngrok.io/timestamp.txt').then( response => { return response.json() } )
.then( timestamp => checkIfNovelModelAvailable(timestamp) )
}
/* How to use this script :
To play with it "as is" try it in the console of your browser first.
If you do like and want to make it permanent then a bit of UI integration is needed
(e.g. could add an icon, chat command, etc).
That would be done by using https://hubs.mozilla.com/docs/hubs-cloud-custom-clients.html
So that your integration remains easy to merge and maintainable over time it is recommended to
touch Hubs Cloud code itself as little as possible. For example having separate components for
variables:
DB: 'pgsql'
PHP: '7.1'
BROWSER: 'chrome'
before_script:
- apt install git -y
- git clone --depth 1 https://github.com/moodlehq/moodle-docker.git $HOME/moodle-docker
- cd $HOME/moodle-docker
- export MOODLE_DOCKER_WWWROOT=$CI_PROJECT_DIR
@flying3615
flying3615 / prometheus-grafana.yml
Last active April 22, 2021 21:16
Orchestrate prometheus and grafana in docker container to monitor spring-acturator application
--------docker-compose.yml---------
version: '2'
services:
prometheus_cust:
image: prometheus_cust:openbet
networks:
- obnet
grafana_cust:
image: grafana/grafana
networks:
@AdaRoseCannon
AdaRoseCannon / HTMLElementPlus.js
Last active March 3, 2023 11:33
HTML Element Plus for Web Components
'use strict';
class HTMLElementPlus extends HTMLElement {
static defaultAttributeValue() {
/* the name of the attribute is parsed in as a parameter */
return;
}
static parseAttributeValue(name, value) {
@bergie
bergie / noflo.json
Last active August 18, 2018 22:13
Draggable demo
{
"caseSensitive": false,
"properties": {
"name": "Movable image",
"environment": {
"type": "noflo-browser",
"content": "<style>\n.area {\n width: 100%;\n height: 300px;\n user-select: none;\n}\n.draggable {\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n -khtml-user-drag: element;\n -webkit-user-drag: element;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n width: 40px;\n height: 40px;\n border-radius: 20px;\n background-color:hsl(220,20%,20%);\n box-shadow: \n 0 -1px 0px hsl(220,100%,100%),\n 0 1px 1px hsla(220,20%,0%,.2),\n 0 3px 8px hsla(220,20%,0%,.1);\n}\n.draggable:active {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n</style>\n\n<div class=\"area\">\n <img class=\"draggable\" src=\"https://meemoo.org/hack-our-apps/shots/recursive.png\" draggable=\"true\">\n</div>"
},
"icon": ""
},