Skip to content

Instantly share code, notes, and snippets.

View arahmanali's full-sized avatar
💭
Travelling is an ultimate thing to heal yourself

A Rahman Ali arahmanali

💭
Travelling is an ultimate thing to heal yourself
View GitHub Profile
@arahmanali
arahmanali / index.ios.js
Created February 13, 2019 11:58 — forked from Jpoliachik/index.ios.js
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@arahmanali
arahmanali / react-native-prevent-screenshot-android
Created July 7, 2019 19:29
React Native Prevent Screenshot In Android - Update MainActivity.java
package com.stopscreenshotapp;
import com.facebook.react.ReactActivity;
import android.os.Bundle;
import android.view.WindowManager;
public class MainActivity extends ReactActivity {
/**
# package used in this gist: pyca/cryptography
# Step 1: Generating a key
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
private_key = rsa.generate_private_key(
public_exponent=65537,
key_size=2048,
backend=default_backend()
)
public_key = private_key.public_key()
@arahmanali
arahmanali / change-codec.md
Created July 25, 2022 17:22 — forked from dvf/change-codec.md
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX