Skip to content

Instantly share code, notes, and snippets.

View fadhly-permata's full-sized avatar
🎯
Focusing on Dart

Fadhly Permata fadhly-permata

🎯
Focusing on Dart
View GitHub Profile
@fadhly-permata
fadhly-permata / navicat_premium_reset_trial.sh
Created May 22, 2024 04:57
Reset Navicat Premium 15/16/17 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@fadhly-permata
fadhly-permata / upload-image-file-convert-base64.html
Created January 21, 2020 22:32 — forked from bbg/example.html
jQuery upload image take the base64 code
<!DOCTYPE html>
<html>
<head>
<metea charset="utf8">
<title></title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.js"></script>
<script type="text/javascript">
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
@fadhly-permata
fadhly-permata / task.json5
Last active July 31, 2018 07:22
VSCode vs MSBuild
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
//
// STEPS:
// 1. Create Environment Path
// e.g: C:\Program Files (x86)\MSBuild\14.0\Bin\
// 2. Write below lines into task.json file
"version": "2.0.0",
"tasks": [
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>