Skip to content

Instantly share code, notes, and snippets.

View Azim's full-sized avatar
💭
Long Live Godhand

Azim Azim

💭
Long Live Godhand
  • Russia
View GitHub Profile
@Azim
Azim / ColorUtil.java
Last active February 5, 2021 13:34
util class to get colors of blocks and stuff. Made with help of @Chicken
package icu.azim.mapbot;
import java.awt.Color;
import java.util.HashMap;
import org.bukkit.Material;
public class ColorUtil {
eyJkYXJrLW1vZGUiOmZhbHNlLCJ0aW1lc3RhbXAtZm9ybWF0LWRhdGUiOiJERC1NTS1ZWVlZIiwidGltZXN0YW1wLWZvcm1hdC10aW1lIjoiSEg6bW06c3MiLCJmdWxsLXNpemUtdGFibGUiOnRydWUsImRyb3Bkb3duIjp0cnVlLCJ2ZXJ0aWNhbC1idXR0b25zIjpmYWxzZSwibGVnYWN5LWZpbHRlcnMiOmZhbHNlLCJyYW5nZS1maWx0ZXJzIjpmYWxzZSwiZXhwb3J0LWJ1dHRvbnMiOmZhbHNlLCJsZW5ndGgiOiIyMCIsImZ1bGwtc2l6ZS1pdGVtLXRhYnMiOmZhbHNlLCJkYXRhLWdyb3VwaW5nIjp0cnVlLCJyZWNpcGUtb3RoZXItY29zdHMtYW1vdW50IjoxLCJyZWNpcGUtb3RoZXItY29zdHMtc2VsbHByaWNlIjowLCJyZWNpcGUtb3RoZXItY29zdHMtYnV5cHJpY2UiOjAsImZ1bGwtc2l6ZS1wYWNrcyI6dHJ1ZX0=
@Azim
Azim / array.c
Created October 19, 2017 09:19
Generate random array in C/c++
int array[MAX_ROWS][MAX_COLS];
srand(time(NULL));
printf("\n j j j j j");
for(int i=0;i<MAX_ROWS;i=i+1){
printf("\n \n i ");
for(int j=0;j<MAX_COLS;j=j+1){
array[i][j]=rand();
if(array[i][j]<10000){