Skip to content

Instantly share code, notes, and snippets.

View ReiiSky's full-sized avatar
🏠
Working for my startup (Tripantero)

Satsuki Reikaa ReiiSky

🏠
Working for my startup (Tripantero)
  • Tripantero
  • Indonesia
View GitHub Profile
@ReiiSky
ReiiSky / introrx.md
Created July 22, 2019 16:55 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@ReiiSky
ReiiSky / CONCURRENCY.md
Created July 21, 2019 17:52 — forked from montanaflynn/CONCURRENCY.md
Examples of sequential, concurrent and parallel requests in node.js

Concurrency in JavaScript

Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.

@ReiiSky
ReiiSky / web.js
Created July 21, 2019 17:52 — forked from AlexJReid/web.js
parallel requests to SimpleDB in node
var express = require('express'),
simpledb = require('simpledb'),
Step = require('step'),
sdb = new simpledb.SimpleDB({
keyid: 'your aws key',
secret: 'your aws secret'
}),
app = express.createServer(express.logger()),
@ReiiSky
ReiiSky / net.js
Created July 10, 2019 20:11 — forked from sid24rane/net.js
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});
@ReiiSky
ReiiSky / readme.md
Created June 11, 2019 11:01 — forked from JAForbes/readme.md
Data Driven Entity Component System

Entities and Components

An entity is just a number.

There is a graph of components, indexed by the entity id.

All state is stored in one place.

var components = { Position: {}, Velocity:{}, Spite: {}, Timer: {}, ScreenShake: {}, RemoveComponents: {} }
setInterval(function(){
document.getElementsByClassName('form-control')[0].value = document.getElementById('row1').getElementsByClassName('highlight')[0].innerHTML}, 100);
@ReiiSky
ReiiSky / Dropout.py
Created March 31, 2019 13:29 — forked from yusugomori/Dropout.py
Dropout Neural Networks (with ReLU)
# -*- coding: utf-8 -*-
import sys
import numpy
numpy.seterr(all='ignore')
'''
@ReiiSky
ReiiSky / awesome-kge.md
Created February 13, 2019 12:42 — forked from mommi84/awesome-kge.md
Awesome Knowledge Graph Embedding Approaches

Awesome Knowledge Graph Embedding Approaches

Awesome

This list contains repositories of libraries and approaches for knowledge graph embeddings, which are vector representations of entities and relations in a multi-relational directed labelled graph. Licensed under CC0.

Libraries

@ReiiSky
ReiiSky / DeepBeliefNets.py
Created December 1, 2018 06:00 — forked from yusugomori/DeepBeliefNets.py
Deep Belief Nets (DBN)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Deep Belief Nets (DBN)
References :
- Y. Bengio, P. Lamblin, D. Popovici, H. Larochelle: Greedy Layer-Wise
Training of Deep Networks, Advances in Neural Information Processing
Systems 19, 2007
@ReiiSky
ReiiSky / main.py
Created September 22, 2018 07:02 — forked from MikeShi42/main.py
CartPole Main.py Checkpoint 3
import gym
import numpy as np
env = gym.make('CartPole-v1')
def play(env, policy):
observation = env.reset()
done = False
score = 0