Skip to content

Instantly share code, notes, and snippets.

View rmdwirizki's full-sized avatar
🏹
Messing up the code

Rizki Lazuardi rmdwirizki

🏹
Messing up the code
View GitHub Profile
@rmdwirizki
rmdwirizki / trws-data.example.json
Created October 9, 2023 00:44
Trakteer Webhook: Websocket Data Example
{
"data": {
"supporter_name": "Seseorang",
"unit": "Cendol",
"quantity": 2,
"supporter_message": "Selalu Berkarya!",
"supporter_avatar": "https://cdn.trakteer.id/images/mix/default-avatar.png",
"unit_icon": "https://cdn.trakteer.id/images/mix/mie-ayam.png",
"price": "Rp 5.000",
"media": {
@rmdwirizki
rmdwirizki / trws-js.example.html
Last active June 10, 2024 10:05
Trakteer Webhook: Websocket Javascript Example
<script src="https://assets.trakteer.id/js/trws.min.js"></script>
<script>
// Get your channel ID in https://trakteer.id/manage/webhook/websocket
const channelID = 'INPUT_YOUR_CHANNEL_ID_HERE';
// Register Creator Channel ID
TrakteerWS.register(channelID);
// Function to handle on stream test notification event
TrakteerWS.onStreamTest = (data) => {

See conflicted files

git diff --name-only --diff-filter=U

Commit with multi line messages

git commit -F- <<EOF
- Your message 1
@rmdwirizki
rmdwirizki / pseudo-js.js
Created February 9, 2018 00:00
Modify css pseudo element property using javascript.
var UID = {
_current: 0,
getNew: function(){ this._current++; return this._current; },
_props: {},
addProp: function(id, prop, value) {
this._props[id] = {
prop : prop,
value: value
};
},
@rmdwirizki
rmdwirizki / main.java
Created October 16, 2017 08:55
H2 and JavaFX
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
@rmdwirizki
rmdwirizki / AndroidManifest.xml
Last active October 10, 2024 23:48
Sample How to Send SMS in Android using Unity3D and SMS Manager. (without opening SMS Composer)
<?xml version="1.0" encoding="utf-8"?>
<!-- Directory : [Project]/Assets/Plugins/Android/AndroidManifest.xml -->
<!-- Configure according to your android application information. -->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<supports-screens