Skip to content

Instantly share code, notes, and snippets.

View nabeel-shakeel's full-sized avatar
:electron:
Focusing and Learning

Nabeel Shakeel nabeel-shakeel

:electron:
Focusing and Learning
View GitHub Profile
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created November 22, 2024 16:53
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: 9f4de1c3-5b21-41f6-aa4c-5d39a4483ad6
-- Server started: November 22, 2024 04:53 PM UTC | Server uptime: 3 seconds
------------------ LOADB LOGS ------------------
{
}
@sts-developer
sts-developer / KList.java
Created November 20, 2024 07:42
Sample code for Java Form1099K List method
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) throws Exception {
// Define the URL with the query parameter for BusinessId
String url = "https://testapi.taxbandits.com/v1.7.3/form1099K/List?BusinessId=bc89af91-c78b-4be8-927a-0c56ee02673c";
URL obj = new URL(url);
@sts-developer
sts-developer / KUpdate.py
Created November 20, 2024 07:34
Sample code for Python Form1099K Update method
import http.client
import json
conn = http.client.HTTPSConnection("testapi.taxbandits.com")
payload = json.dumps({
"SubmissionManifest": {
"SubmissionId": "41f2f0f4-9617-4f36-9f04-33bbedd07931",
"TaxYear": "2024",
"IRSFilingType": "IRIS",
"IsFederalFiling": True,
@thebinaryfelix
thebinaryfelix / ProviderComposer.tsx
Last active August 23, 2024 14:40
Component for composing providers in React v18 with Typescript
export interface IProviderComposerProps extends React.PropsWithChildren {
/**
* Providers list
* */
with: React.FC<React.PropsWithChildren>[]
}
const ComposerFragment: React.FC<React.PropsWithChildren> = ({
children,
}): JSX.Element => <>{children}</>
import { ComponentProps, JSXElementConstructor } from 'react';
export const provider = <C extends JSXElementConstructor<unknown>>(
provider: C,
props: Partial<ComponentProps<C>> = {}
) => [provider, props];
export const ProviderComposer = ({ providers, children }) => {
for (let i = providers.length - 1; i >= 0; --i) {
const [Provider, props] = providers[i];
@milon87
milon87 / api.js
Created September 9, 2017 05:37
how to use x-www-form-urlencoded in react native
var details = {
'userName': '[email protected]',
'password': 'Password!',
'grant_type': 'password'
};
var formBody = [];
for (var property in details) {
var encodedKey = encodeURIComponent(property);
var encodedValue = encodeURIComponent(details[property]);
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active December 23, 2024 15:56 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3