Skip to content

Instantly share code, notes, and snippets.

View yogithesymbian's full-sized avatar
✔️
scodeid - open source code id

Yogi Arif Widodo yogithesymbian

✔️
scodeid - open source code id
View GitHub Profile
@yogithesymbian
yogithesymbian / case1.md
Created August 23, 2023 05:21
git my case
  1. i have create new branch from master yesterday, and its local on my pc.
  2. today in master gitlab have new updates
  3. how should i do

A. Update Your Local Master Branch:

git rebase main  
error: cannot rebase: You have unstaged changes.
error: Please commit or stash them.
@yogithesymbian
yogithesymbian / MyVueTrigger.js
Last active August 6, 2023 03:45
vue composition-api life hack
this.anIncomingNotification = payload // trigger watch
@yogithesymbian
yogithesymbian / build.gradle
Created July 25, 2023 02:50
use flutter cache local replace version from your friend code/project.
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// START: FlutterFire Configuration
@yogithesymbian
yogithesymbian / penentuan konstanta p dan q yang prima berdasarkan informasi peranti
Last active June 25, 2023 08:47
Penentuan_Konstanta_P_dan_Q_yang_Prima_Berdasarkan_Informasi_Peranti
id.scode.digitalsignature D/OverviewRevActivity: Pembangkitan Ke-0
id.scode.digitalsignature D/OverviewRevActivity: proses generate batas atas prima dan eliminasi : 1 ms
id.scode.digitalsignature D/OverviewRevActivity: waktu pembangkitan : 200 ms
id.scode.digitalsignature D/PrimeNumberGenerate: [*]
===========================================
TIME_INIT
===========================================
default time : 1599209465913
waktu sekarang : 2020-09-04 16:51:05
Hours : 04
@yogithesymbian
yogithesymbian / ALL_Mime_Type
Last active June 25, 2023 08:45
mime types
{
{".3gp", "video/3gpp"},
{".torrent","application/x-bittorrent"},
{".kml", "application/vnd.google-earth.kml+xml"},
{".gpx", "application/gpx+xml"},
{".csv", "application/vnd.ms-excel"},
{".apk", "application/vnd.android.package-archive"},
{".asf", "video/x-ms-asf"},
{".avi", "video/x-msvideo"},
{".bin", "application/octet-stream"},
// its looks like a '.let' in kotlin , awesome !, dart
extension ObjectExt<T> on T {
R let<R>(R Function(T) x) => x(this);
}
// for example
/**
* we have nested json object for example data --> user -->
*/
@yogithesymbian
yogithesymbian / video compression ffmpeg custom bash command
Created June 10, 2023 11:45
using ffmpeg command on bashscript to short a command for compression video .mov to .mp4
1. create file custom
```
touch ~/.custom_bash_commands.sh
```
2. Open this up in your preferred text editor, and add the following code:
```
#!/bin/bash
That doesn't start cemu with the env var active. You have to set the variable in the terminal, then launch cemu from the terminal:
1. Open terminal
2. Paste cd /Applications/Cemu.app/Contents/MacOS and hit return
3. Paste MVK_CONFIG_FAST_MATH_ENABLED=0 ./Cemu and hit return
@yogithesymbian
yogithesymbian / ryujinx macbook pro m1.md
Last active January 7, 2023 22:33
ryujinx testing - list game on macbook pro m1
@yogithesymbian
yogithesymbian / usage.winston.md
Created November 23, 2022 23:32
Utils Winston Node JS

usage

const winLogger = require('@utils/winston')

winLogger.info(`your message`)

output