Skip to content

Instantly share code, notes, and snippets.

View ydhnwb's full-sized avatar
🎯
Focusing

Prieyuda Akadita S. 和风 ydhnwb

🎯
Focusing
View GitHub Profile
@ydhnwb
ydhnwb / std.md
Created May 29, 2020 09:31 — forked from turbo/std.md
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
@ydhnwb
ydhnwb / FileUploadService.java
Created July 10, 2020 06:49 — forked from piyush-malaviya/FileUploadService.java
Example for uploading file using foreground service
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import android.text.TextUtils;
@ydhnwb
ydhnwb / RN-Material.md
Created August 25, 2020 07:19 — forked from isumizumi/RN-Material.md
Referensi Materi Glints Academy - RN Class

Binar Academy

RN Class Material

In the RN class, you need to read some references to improve your skills and insights about our lesson. Therefore, I gather it in here so that you can access it before the session.

Happy learning and sharing knowledge, guys! [Learn, Collaborate, Inspire] ;)

@ydhnwb
ydhnwb / hasMany.go
Created December 3, 2020 14:55 — forked from jtbonhomme/hasMany.go
Gorm example of foreign key definition for a hasMany relation
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
// Customer ...
type Customer struct {
@ydhnwb
ydhnwb / gist:e6859382ce09065dccf4ce0a0809025a
Created February 8, 2021 04:17 — forked from Bobmajor/gist:319e89e9c876cccdb1b77f1783e9a820
HOW TO INSTALL POSTMAN ON LINUX WITHOUT SNAP
1. Go to the Postman app download page at https://www.getpostman.com/apps. You can choose the os version from the drop-down. x64 for 64 bit Operating System and x84 for the 32 bit based Linux
2. Open the terminal and go to the directory where you have downloaded the tar file. If you have downloaded on the Downloads folder
cd ~/Downloads/
3. Run the following commands,
sudo rm -rf /opt/Postman/
@ydhnwb
ydhnwb / pget.go
Created March 5, 2021 03:37 — forked from montanaflynn/pget.go
Bounded Parallel Get Requests in Golang
package main
import (
"fmt"
"net/http"
"sort"
"time"
)
// a struct to hold the result from each request including an index
@ydhnwb
ydhnwb / pci-table.md
Created February 13, 2023 14:17 — forked from cuteribs-1/pci-table.md
PCI Vendor Data Table
Vendor Id Vendor Name
0x0033 Paradyne Corp.
0x003D master
0x0070 Hauppauge Computer Works Inc.
0x0100 USBPDO-8
0x0123 General Dynamics
0x0315 SK - Electronics Co., Ltd.
0x0402 Acer aspire one
0x046D Logitech Inc.