Skip to content

Instantly share code, notes, and snippets.

View livoras's full-sized avatar
🎯
Focusing

Livoras Dai livoras

🎯
Focusing
  • Guangzhou, Guangdong, China
View GitHub Profile
import gym
import numpy as np
import random
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.optimizers import Adam
from collections import deque
class DQN:
@andybangs
andybangs / GSBeaconManager.h
Created August 27, 2016 16:21
Example using GSEventEmitter
#import <Foundation/Foundation.h>
#import "RCTBridge.h"
@interface GSBeaconManager : NSObject <RCTBridgeModule>
@end
@miguelcma
miguelcma / DeviceUID.m
Created May 25, 2015 15:09
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
@staltz
staltz / introrx.md
Last active June 21, 2024 12:27
The introduction to Reactive Programming you've been missing

Virtual DOM and diffing algorithm

There was a [great article][1] about how react implements it's virtual DOM. There are some really interesting ideas in there but they are deeply buried in the implementation of the React framework.

However, it's possible to implement just the virtual DOM and diff algorithm on it's own as a set of independent modules.