Skip to content

Instantly share code, notes, and snippets.

View sahilkashyap64's full-sized avatar
🎯
Focusing

Sahil Kashyap sahilkashyap64

🎯
Focusing
View GitHub Profile
@moaaz-bhnas
moaaz-bhnas / withoutEdgesAndNodes.ts
Last active June 11, 2023 17:04
A function that removes edges and nodes from Shopify Storefront data
function isArray(data: any): Boolean {
return data && data.constructor === Array;
}
function isObject(data: any): Boolean {
return data && data.constructor === Object;
}
function withoutEdgesAndNodes(data: any): any {
let result = Array.isArray(data) ? [] : {};
@mrousavy
mrousavy / ghost.md
Created March 30, 2021 18:55
👻👻👻

SVG Banners

@mrousavy
mrousavy / MEMOIZE.md
Last active May 12, 2024 11:17
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
@akulsr0
akulsr0 / RNUIAPP - ProductScreen1.jsx
Created September 13, 2020 15:34
React Native UI App - Product Screen 1
import React, { useState, useEffect, useRef } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
StatusBar,
TouchableOpacity,
Image,
} from 'react-native';
@JhonatanRaul
JhonatanRaul / HandlePutFormData.php
Last active March 8, 2023 12:58 — forked from iamntz/HandlePutFormData.php
Laravel: Middleware to support multipart/form-data in PUT, PATH and DELETE requests. Deals with one level of form arrays.
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
use Illuminate\Support\Arr;
/**
* @author https://github.com/Stunext
@mjrulesamrat
mjrulesamrat / multiple_ssh_keys.md
Last active March 5, 2024 19:04
How to Setup Multiple Ssh Keys for Multiple Github/Bitbucket accounts

How to Setup Multiple Ssh Keys for Multiple Github/Bitbucket accounts

create the SSH keys.

ssh-keygen -t rsa -b 4096 -C "mjrulesamrat@gmail.com"

Add the SSH Keys to the SSH-Agent

@caseywatts
caseywatts / 0-self-publishing.md
Last active May 14, 2024 02:03
Self-Publishing via Markdown
@richardblondet
richardblondet / README.md
Last active May 3, 2024 10:02
Create a simple API backend with Google App Script and a Spreadsheet

Google App Script CRUD

Inspired by this gist.

Getting Started

  1. Create a new App Script project.
  2. Paste the content of the file google-app-script-crud.gs in the default Code.gs file.
  3. Create a new Spreadsheet.
  4. Copy the Spreadsheet ID found in the URL into the variable SHEET_ID located in line 1 of your file.
@Stunext
Stunext / HandlePutFormData.php
Created November 20, 2018 20:12
Laravel: Middleware to support multipart/form-data in PUT, PATH and DELETE requests
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* @author https://github.com/Stunext
*
@mrbar42
mrbar42 / README.md
Last active March 28, 2024 18:06
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster