Skip to content

Instantly share code, notes, and snippets.

View roni5's full-sized avatar
💭
Typescript, Flutter , Python

Roni roni5

💭
Typescript, Flutter , Python
View GitHub Profile
@roni5
roni5 / contact.py
Last active April 21, 2025 18:39 — forked from jaychun01/contact.py
contact
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
class Contact:
def __init__(self, name, pnum, email, addr):
self.name=name
self.pnum=pnum
self.email=email
@roni5
roni5 / Woeid
Created January 28, 2025 14:53 — forked from tedyblood/Woeid
Woeid Used in Twitter for load trend by country. Standar for Yahoo
[
{
"name": "Worldwide",
"placeType": {
"code": 19,
"name": "Supername"
},
"url": "http://where.yahooapis.com/v1/place/1",
"parentid": 0,
"country": "",
\       escape

^       match start (or negate group)
$       match end

.       match any character (except newlines, [\s\S] to match newlines too)
[]      match range (see examples below)
[^]     negative match range, such as [^<]* (match up to but not including the next `<`)
@roni5
roni5 / Plaid Security Questionnaire (v6).md
Last active November 13, 2024 18:05 — forked from coolaj86/Plaid Security Questionnaire (v6).md
Plaid Security Questionnaire (v6)

Plaid Security Questionnaire (v6)

Part One

Hosting (inf_sec_hosting)

  1. What is your organization's strategy for hosting the server-side components of your application?
    • On-prem hosting - We host all server-side components of our application using on-premise physical infrastructure
// components/CheckoutForm.tsx
import React, { useState } from 'react';
import { loadStripe } from '@stripe/stripe-js';
import { Elements, CardElement, useStripe, useElements } from '@stripe/react-stripe-js';
import axios from 'axios';
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY as string);
const CheckoutForm: React.FC = () => {
@roni5
roni5 / curl&json.java
Last active May 30, 2024 23:06 — forked from vladiacob/curl&json.java
[Java] hackajob - curl and json
import java.io.*;
import java.net.*;
import com.google.gson.*;
class HelloWorldApp {
public static void main(String[] args) {
try {
StringBuilder result = new StringBuilder();
URL url = new URL("https://challenges.hackajob.co/swapi/api/films/?format=json");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
@roni5
roni5 / curl&json.cpp
Last active May 30, 2024 14:27 — forked from vladiacob/curl&json.cpp
[C++] hackajob - curl and json
#include <iostream>
#include <jsoncpp/json/json.h>
#include <curl/curl.h>
using namespace std;
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
import React, { useState } from "react";
import { auth } from "../firebase";
import {
signInWithPopup,
GoogleAuthProvider,
AuthProvider,
getAuth
} from "firebase/auth";
import { useAuthState } from "react-firebase-hooks/auth";