Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
👨‍💻
Easy Life, Busy Day

Md Abu Talha talha08

👨‍💻
Easy Life, Busy Day
View GitHub Profile
@talha08
talha08 / test.json
Last active December 21, 2023 06:59
JSON
[
{
"key": "common.loading",
"value": "Loading..."
},
{
"key": "common.button.agree",
"value": "Yes"
},
{
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
//audio pipeline
[
{
"src": "aud_1",
"pipeline": "recording",
"isEnable": true,
"bitRate": 16,
"codec": "OPUS"
},
{
@talha08
talha08 / 00_README.md
Created November 21, 2021 15:05 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@talha08
talha08 / country_code_to_flag.js
Created September 1, 2021 08:59
Country Code To Flag
const getFlagEmoji = countryCode => {
return String.fromCodePoint(...[...countryCode.toUpperCase()].map(x=>0x1f1a5+x.charCodeAt()));
}
console.log(getFlagEmoji('US')) // "🇺🇸"
console.log(getFlagEmoji('BD')) // "🇧🇩"
@talha08
talha08 / multiple_ssh_setting.md
Last active November 3, 2020 21:20 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
/**
* Created by Usman on 17/11/14.
* video ad with ability to split into two portions horizontally
*/
Function.prototype.bind = Function.prototype.bind || function(b) {
// Polyfill from https://gist.github.com/dsingleton/1312328
if (typeof this !== "function") {
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
}
@talha08
talha08 / ngrok-installation.md
Created June 23, 2019 18:54 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
{
"deviceModels": [
{
"id": 106232,
"modelName": "D2212",
"deviceManufacturerId": 100019,
"marketingName": null
},
{
"id": 109514,
@talha08
talha08 / Response.php
Created February 8, 2019 06:54 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;