Skip to content

Instantly share code, notes, and snippets.

View that-coder's full-sized avatar

Jayakrishnan that-coder

View GitHub Profile
'use strict';
const aws_exports = require('./aws-export').default;
// CONFIG
const AppSync = {
"graphqlEndpoint": aws_exports.graphqlEndpoint,
"region": aws_exports.region,
"authenticationType": aws_exports.authenticationType,
"apiKey": aws_exports.apiKey,
};
const ApiId = aws_exports.ApiId;
'use strict';
const aws_exports = require('./aws-export').default;
// CONFIG
const AppSync = {
"graphqlEndpoint": aws_exports.graphqlEndpoint,
"region": aws_exports.region,
"authenticationType": aws_exports.authenticationType,
"apiKey": aws_exports.apiKey,
};
const ApiId = aws_exports.ApiId;
'use strict';
const aws_exports = require('./aws-export').default;
// CONFIG
const AppSync = {
"graphqlEndpoint": aws_exports.graphqlEndpoint,
"region": aws_exports.region,
"authenticationType": aws_exports.authenticationType,
"apiKey": aws_exports.apiKey,
};
const ApiId = aws_exports.ApiId;
@that-coder
that-coder / appsync-query.js
Created December 16, 2018 12:30
appsync-query example
'use strict';
const aws_exports = require('./aws-export').default;
// CONFIG
const AppSync = {
"graphqlEndpoint": aws_exports.graphqlEndpoint,
"region": aws_exports.region,
"authenticationType": aws_exports.authenticationType,
"apiKey": aws_exports.apiKey,
};
const ApiId = aws_exports.ApiId;
@that-coder
that-coder / project
Created July 14, 2015 05:25
startup studio project
Write a program which when given links to two images on the Internet, finds out how similar they are. [Bonus points if it ranks images on a similarity scale from 0 - very different to 100 - exactly the same]
program
#include <stdlib.h>
#include <stdio.h>
#include "cv.h"
#include "highgui.h"
#include "fftw3.h"
void phase_correlation( IplImage *ref, IplImage *tpl, IplImage *poc );
int main( int argc, char** argv )
@that-coder
that-coder / project
Created July 14, 2015 05:24
startup studio project
Write a program which when given links to two images on the Internet, finds out how similar they are. [Bonus points if it ranks images on a similarity scale from 0 - very different to 100 - exactly the same]
program
#include <stdlib.h>
#include <stdio.h>
#include "cv.h"
#include "highgui.h"
#include "fftw3.h"
void phase_correlation( IplImage *ref, IplImage *tpl, IplImage *poc );
int main( int argc, char** argv )