Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Happy coding 😄

Pirun Seng PirunSeng

💭
Happy coding 😄
View GitHub Profile
@PirunSeng
PirunSeng / my.component.ts
Last active Aug 14, 2019
Try takeUntil of RxJS operator
View my.component.ts
const notifier: Observable<any>;
const request = myService.getData();
request.pipe(
takeUntil(notifier)
).subscribe(response => console.log(response));
@PirunSeng
PirunSeng / main.cpp
Created Aug 10, 2019
OpenGL Lighting
View main.cpp
#include<windows.h>
#include <GL/glut.h>
#include <GL/glu.h>
#include <GL/gl.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
void drawGoldSphere() {