Skip to content

Instantly share code, notes, and snippets.

View Jeraldy's full-sized avatar
🎯
Focusing

Jeraldy Deus Jeraldy

🎯
Focusing
View GitHub Profile
@Jeraldy
Jeraldy / listAllEventListeners.js
Created May 14, 2020 14:13 — forked from dmnsgn/listAllEventListeners.js
List all event listeners in a document
const listeners = (function listAllEventListeners() {
let elements = [];
const allElements = document.querySelectorAll('*');
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
for (let i = 0; i < allElements.length; i++) {
const currentElement = allElements[i];
{
"categories": [{
"name": "action",
"key": "action",
"icons": [{
"id": "ic_3d_rotation",
"name": "3d rotation",
"group_id": "action",
"keywords": ["action, 3d, rotation"],
"ligature": "3d_rotation",
@Jeraldy
Jeraldy / index.html
Last active November 26, 2019 11:48
Multi-level Side Nav Menu
<div class="primary-nav">
<button href="#" class="hamburger open-panel nav-toggle">
<span class="screen-reader-text">Menu</span>
</button>
<nav role="navigation" class="menu">
<a href="#" class="logotype">LOGO<span>TYPE</span></a>
@Jeraldy
Jeraldy / install virtualenv ubuntu 16.04.md
Created August 4, 2019 05:22 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
package yourpackagename;
//include CharRNNUtils.java =>https://gist.github.com/Jeraldy/673f461f99b901e73e9448538e9cb94d
//include np.java =>https://gist.github.com/Jeraldy/7d4262db0536d27906b1e397662512bc
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
package yourpackagename;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
from LatentFactorModel import LatentFactorModel
from BaselineRecommendations import BaselineRecommendations
from DataPreprocessing import DataPreprocessing
from CollaborativeFiltering import CollaborativeFiltering
if __name__ == '__main__':
print "Welcome to the Anime Recommender System."
#***************Data Preprocessing***************
@Jeraldy
Jeraldy / nn.py
Last active July 25, 2019 14:29
"""
Jeraldy Deus | deusjeraldy@gmail.com
Implementing an Artificial Neural Network in numpy
BSD License
"""
import numpy as np
X = np.array([
[0,0],
[0,1],
import java.util.Arrays;
import java.util.Random;
/**
*
* @author Deus Jeraldy
* @Email: deusjeraldy@gmail.com
*/
public class np {
@Jeraldy
Jeraldy / nn.java
Last active July 25, 2019 14:58
Implementing an Artificial Neural Network in Pure Java (No external dependencies)
/**
*
* @author Deus Jeraldy
* @Email: deusjeraldy@gmail.com
* BSD License
*/
// np.java -> https://gist.github.com/Jeraldy/7d4262db0536d27906b1e397662512bc
import java.util.Arrays;