Skip to content

Instantly share code, notes, and snippets.

View Humayung's full-sized avatar

Humayung

View GitHub Profile
@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: