Skip to content

Instantly share code, notes, and snippets.

@MukeshGreenDeveloper
MukeshGreenDeveloper / Disable enable Hotspot Using Batch File
Created May 20, 2017 20:54
Delete Temporary files andee Enable Wifi Hotspot using Batch file
echo off
TITLE Your Cleaner
echo "Deleting Temporaty Files from %Temp%, Temp and Recent folders"
del c:\windows\temp\*.* /S /F /Q
del C:\ProgramData\AVAST Software\Avast\log\*.* /S /F /Q
del C:\Users\User\Recent\*.* /S /F /Q
@MukeshGreenDeveloper
MukeshGreenDeveloper / AppHelper.java
Created November 16, 2017 12:24 — forked from anggadarkprince/AppHelper.java
Upload file with Multipart Request Volley Android
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayOutputStream;
/**
* Sketch Project Studio
* Created by Angga on 12/04/2016 14.27.
*/
public class AppHelper {
@MukeshGreenDeveloper
MukeshGreenDeveloper / crc16-ccitt.ts
Last active March 27, 2023 19:49
CRC16-CCITT implementation in Typescript
import { Buffer } from 'buffer';
/**
* Source https://gist.github.com/chitchcock/5112270
* And alteration in source:
* https://gist.github.com/chitchcock/5112270?permalink_comment_id=3027857#gistcomment-3027857
* for [CRC-16 XMODEM] just change var crc = 0xFFFF; to var crc = 0x0000;
* CRC16-CCITT-FALSE ===equalent=== to CRC16-XMODEM
*/