Skip to content

Instantly share code, notes, and snippets.

View Humayung's full-sized avatar

Humayung

View GitHub Profile
@Humayung
Humayung / OnMarkerEventListener.kt
Last active June 24, 2024 03:36
This touch listener allows user to drag and drop marker on Google Maps without having to long press. It also record selected marker under on touch point using map.projection. This listener is used along with TouchableWrapper.
/**
* Copyright 2024 https://gist.github.com/Humayung/30623f3fed1e07794cc01a98c2fae97f
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
@Humayung
Humayung / OnMarkerEventListener.kt
Created June 24, 2024 03:30
- This touch listener allows user to drag and drop marker on Google Maps without having to long press. This listener also record selected marker under on touch point using map.projection. This listener is used along with TouchableWrapper.
/**
* Copyright 2024 http://github.com/humayung
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
@Humayung
Humayung / TiltEffectModifier.kt
Last active December 15, 2023 15:04
Tilt + Press click effect modifier Jetpack Compose
package id.co.components
import androidx.annotation.FloatRange
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.EaseInBounce
import androidx.compose.animation.core.EaseOutElastic
import androidx.compose.animation.core.FiniteAnimationSpec
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
@Humayung
Humayung / Ray Tracing In processing
Last active January 30, 2021 11:00
Ray Tracing
final int WIDTH = 683;
final int HEIGHT= 384;
public void settings(){
size(WIDTH, HEIGHT, P2D);
}
public void printf(Object o){
System.out.println(o);
}
import requests
API_ENDPOINT = "https://api.telegram.org/botXXX:YYY/sendMessage"
message = input('Enter Message:')
data = {'chat_id' : 'zzzzzzzzzz',
'text' : message
}
r = requests.post(url = API_ENDPOINT, data = data)
print(r)
@Humayung
Humayung / bot.php
Created May 28, 2020 11:55
Send message telegram bot
<form method=post>
<input type=text name='input_message'>
<input type=submit value='send'>
</form>
<?php
if($_POST){
function sendMessage($message){
if($message != ''){
@Humayung
Humayung / Modus_integer_array.cpp
Created September 30, 2019 07:00
Mencari nilai modus dalam sebuah array integer
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cout << "Program mencari elemen terbesar dari sebuah larik integer"<<endl;
cout << "Masukkan panjang array (N)"<<endl;
cin >> n;
int a[n];

Keybase proof

I hereby claim:

  • I am humayung on github.
  • I am cornoblue (https://keybase.io/cornoblue) on keybase.
  • I have a public key ASCB4tJb3L1eDSV5H3JiHJRdSOhokawrX2hOKn9uvu4wmgo

To claim this, I am signing this object: