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 { ApolloLink, Observable } from 'apollo-link' | |
| import { execute, GraphQLSchema } from 'graphql' | |
| export class LocalLink extends ApolloLink { | |
| schema: GraphQLSchema | |
| constructor(schema: GraphQLSchema) { | |
| super() |
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
| var orientation = function (file, callback) { | |
| var fileReader = new FileReader(); | |
| fileReader.onloadend = function () { | |
| var base64img = "data:" + file.type + ";base64," + _arrayBufferToBase64(fileReader.result); | |
| var scanner = new DataView(fileReader.result); | |
| var idx = 0; | |
| var value = 1; // Non-rotated is the default | |
| if (fileReader.result.length < 2 || scanner.getUint16(idx) != 0xFFD8) { | |
| // Not a JPEG | |
| if (callback) { |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am killercodemonkey on github. | |
| * I am bengtler (https://keybase.io/bengtler) on keybase. | |
| * I have a public key ASAseeSfbCZ1S1Lopmz-jlW7pQiWwsgPA08iTdxvNrbNGwo | |
| To claim this, I am signing this object: |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
| <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> |
OlderNewer