This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'); |