Skip to content

Instantly share code, notes, and snippets.

View thinhbuzz's full-sized avatar
🏠
Working from home

Thinh Buzz thinhbuzz

🏠
Working from home
View GitHub Profile
@thinhbuzz
thinhbuzz / main.js
Created October 16, 2018 17:03
Node JS gitlab webhook receiver and trigger pipelines
const qs = require('querystring');
const http = require('http');
const https = require('https');
const assert = require('assert');
const config = {
port: 3000,
projectId: '',
pipelineTriggerToken: '',
secretToken: null
@thinhbuzz
thinhbuzz / dbschema-license-key-generator.html
Created August 1, 2018 07:51
DbSchema License Key Generator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>DbSchema License Key Generator</title>
</head>
<body>
@thinhbuzz
thinhbuzz / template.js
Last active April 20, 2020 19:44
simple template function
export function isFunction(arg) {
return typeof arg === 'function';
}
const cachedKeys = new Map();
/**
* Get data by key
* const data = {age: {value: 9}};
* getData(data, 'age.value') => 9
* getData(data, 'age.buzz') => 'age.buzz'
*