Skip to content

Instantly share code, notes, and snippets.

Avatar

ѵµσɳɠ vuon9

View GitHub Profile
View gist:5dee7d829c8c8bb9f8007db88ea2f167
var __BUNDLE_START_TIME__ = this.nativePerformanceNow ? nativePerformanceNow() : Date.now(),
__DEV__ = false,
process = this.process || {};
process.env = process.env || {};
process.env.NODE_ENV = process.env.NODE_ENV || "production";
!(function(r) {
"use strict";
r.__r = o, r.__d = function(r, i, n) {
if (null != e[i]) return;
var o = {
@vuon9
vuon9 / awesome-mac-apps.md
Last active Feb 20, 2021
Awesome FOSS-es on macOS
View awesome-mac-apps.md

Utilities

  • Latest - Keep update apps
  • Simplenote - Cross-platform taking note app
  • AppCleaner - App deeply uninstaller
  • KeepingYouAwake - Keep running even it is lid closed
  • SensibleSideButtons - Make side buttons of 3rd mice works
  • Boop - Utils dev tool
  • Brave - Web-browser which focusing in privacy

Dev tools

@vuon9
vuon9 / slackymous.css
Last active Dec 14, 2020
Slackymous - Stylish CSS script for "URLs on the domain: app.slack.com"
View slackymous.css
body {
font-family: Arial, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.c-avatar, .c-avatar--interactive {
display: none;
}
@vuon9
vuon9 / main.go
Created Nov 25, 2020
Graphql in Go - Searching order by id or trackingID
View main.go
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/graphql-go/graphql"
)
@vuon9
vuon9 / json_extract_c.sql
Created Nov 9, 2020
JSON_EXTRACT_C func for parsing json string in mysql
View json_extract_c.sql
DELIMITER $$
DROP FUNCTION IF EXISTS `json_extract_c`$$
CREATE FUNCTION `json_extract_c`(
details TEXT,
required_field VARCHAR (255)
) RETURNS TEXT CHARSET utf8
BEGIN
SET details = TRIM(LEADING '{' FROM TRIM(details));
@vuon9
vuon9 / main.go
Last active Nov 25, 2020
Try to censore content in JSON properties by Regex
View main.go
package main
import (
"encoding/json"
"fmt"
"time"
"github.com/dlclark/regexp2"
"github.com/gin-gonic/gin"
)
@vuon9
vuon9 / .golangci.yml
Last active Jun 5, 2020
golangci-lint sample yml configuration
View .golangci.yml
linters:
disable-all: true
enable:
- deadcode
- dupl
- errcheck
- gocritic
- gocognit
- gosimple
- govet
@vuon9
vuon9 / main.go
Created Mar 29, 2020 — forked from cespare/main.go
Example of testing Go HTTP servers using httptest.Server.
View main.go
package main
import (
"log"
"myserver"
"net/http"
)
const addr = "localhost:12345"
@vuon9
vuon9 / jsconfig.json
Last active Mar 8, 2020
VSCode mapping import path to component
View jsconfig.json
{
"compilerOptions": {
"jsx": "react",
"target": "ES6",
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"paths": {
"@app/*": ["app/*"],
"@internals/*": ["internals/*"]
}