Skip to content

Instantly share code, notes, and snippets.

Thread: Maintaining User Authentication Across SPA and Mobile Applications with Azure AD B2C
Hello Oleg & Shai,
Thank you for your patience.
"""GraphQL Yoga-ready schema"""
scalar Date
"""
An object with a globally unique ID.
"""
interface Node {
id: ID!
}
curl -X POST https://example.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"query": "
query AllAboutMe {
me {
name
lastName
email
@olegkleiman
olegkleiman / gist:73c01b97d8676e7e88af9595628933cf
Last active February 23, 2023 01:58
Basic FFMpeg C++ to encode from MPEG-2 into h264
#define _CRT_SECURE_NO_DEPRECATE
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/hwcontext.h>
city_models = []
city_box = df.loc[:, 'City']
for isx, a in np.ndenumerate(city_box):
city_models.append({
"name": a,
"rowId": isx[0] # tuple!
})
@olegkleiman
olegkleiman / Home.jsx
Last active May 2, 2020 00:02
Home for Havana client
// @flow
import React, {useState, useEffect, useContext, useRef } from 'react';
import { useHistory } from 'react-router-dom';
import axios from 'axios';
import moment from 'moment';
import Img from 'react-image';
import uniqid from 'uniqid';
import { useSelector, useDispatch } from 'react-redux';