Skip to content

Instantly share code, notes, and snippets.

View YatharthVyas's full-sized avatar
🚀
Perpetually Upscaling

Yatharth Vyas YatharthVyas

🚀
Perpetually Upscaling
View GitHub Profile
use std::env;
use std::fs::File;
use std::io::prelude::*;
use sexp::Atom::*;
use sexp::*;
// to store variable - address mapping
use im::HashMap;
// to check for duplicate bindings
[{
"id": 1,
"first_name": "Aloysia",
"last_name": "Fellman",
"phone_number": "2683794374",
"email": "afellman0@woothemes.com",
"university": "Islamic Azad University, Lahijan",
"avatar": "https://robohash.org/evenietnesciuntaut.png?size=150x150&set=set1"
}, {
"id": 2,
#include <bits/stdc++.h>
using namespace std;
// p and q are private
#define p 53
#define q 41
#define r 43
#define s 47
// n and e is public
#define e 17
#define f 97
import React, {useEffect} from 'react';
//Pusher
import Pusher from 'pusher-js';
function PusherFunction() {
//This will be called when your component is mounted
useEffect(() => {
const pusher = new Pusher(process.env.REACT_APP_PUSHER_ENV, {
cluster: 'ap2'
})
const channel1 = pusher.subscribe('channel_name1');