Skip to content

Instantly share code, notes, and snippets.

View samuelnub's full-sized avatar
💭
woof

Sam Yap samuelnub

💭
woof
View GitHub Profile
@samuelnub
samuelnub / routerJsonReplacer.dart
Created December 2, 2022 15:14
small thingy dont look!!!
void main() {
final String input = '''
{OPCODE_LOADPATH:['/html/wizard/wifi.html']},
{OPCODE_CLICKELEMENT:['#BasicSettingsTwo_off_twoFour']},
{OPCODE_WAITFORELEMENTGONE:['#submitdynamic']},
{OPCODE_CLICKELEMENT:['#BasicSettingsFive_five_off']},
{OPCODE_WAITFORELEMENTGONE:['#submitdynamic']},
{OPCODE_CLICKELEMENT:['#wifi_wizard_save']},
''';
@samuelnub
samuelnub / GameOfLife.cpp
Created October 26, 2016 17:26
conway's game of life in c++
#include <iostream>
#include <vector>
#include <sstream>
#include <time.h>
#include <chrono>
#include <thread>
#include <random>
#include <climits>
class GameOfLife
@samuelnub
samuelnub / T0.md
Created October 8, 2016 19:43 — forked from graphitemaster/T0.md
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.

@samuelnub
samuelnub / recursiveClass.cpp
Created June 11, 2016 08:49
only the best in object oriented programming, magnifiqué
#include <iostream>
class Recursive
{
private:
unsigned long long count;
public:
Recursive(unsigned long long x)
{
this->count = x;