{
"id": "e84e3a65-8ea0-46e1-99e5-ce2bb0021f64",
"url": "https://api.filepreviews.io/v2/previews/e84e3a65-8ea0-46e1-99e5-ce2bb0021f64/",
"status": "success",
"preview": {
"resized": false,
"requested_size": "original",
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 Ember from 'ember'; | |
import { task, timeout } from 'ember-concurrency'; | |
export default Ember.Component.extend({ | |
task: Ember.computed('query', function() { | |
return this.get('fetchData').perform(this.query); | |
}), | |
fetchData: task(function*(query) { | |
yield timeout(3000); |
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
PGP Key Transition Statement | |
José Padilla <[email protected]> | |
Fri Jul 28 12:54:01 UTC 2017 | |
I have created a new OpenPGP key and will be transitioning away from | |
my old key. The old key has not been compromised and will continue to | |
be valid for some time, but I prefer all future correspondence to be |
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
{ | |
"name": "k8s-dockerhub-build-webhook", | |
"version": "1.0.0", | |
"description": "Update K8S Deployment after image pushed to Docker Hub", | |
"main": "server.js", | |
"engines": { | |
"node": "7.10.0" | |
}, | |
"dependencies": { | |
"body-parser": "^1.17.2", |
This file has been truncated, but you can view the full file.
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": "53577c8d-891b-4be1-ad24-90dc507db189", | |
"url": "https://api.filepreviews.io/v2/previews/53577c8d-891b-4be1-ad24-90dc507db189/", | |
"status": "success", | |
"preview": { | |
"page": 1, | |
"original_size": { | |
"width": "2048", | |
"height": "524" | |
}, |
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
// Why is this so fast... | |
var batch = collection.initializeOrderedBulkOp(); | |
batch.find(query).update(update); | |
batch.execute(); | |
// Compared to this, which is timing out | |
collection.updateMany(query, update); |
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
{ | |
"url": "FILE_URL_HERE", | |
"callback_url": "CALLBACK_WEBHOOK_URL", | |
"uploader": { | |
"location": "s3", | |
"s3_access_key_id": "ACCESS_KEY_ID_HERE", | |
"s3_secret_access_key": "SECRET_ACCESS_KEY_HERE", | |
"s3_storage_bucket_name": "BUCKET_NAME_HERE", | |
"s3_region": "us-east-1" | |
} |
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
{ | |
"url": "https://www.filepicker.io/api/file/mbsbe85FTIW6DzYlkav2", | |
"page": "1", | |
"metadata": ["ocr"], | |
"ocr": { | |
"pages": "all" | |
} | |
} |
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": "8aeadf9b-e091-4210-ac1c-6ef14bd99a76", | |
"url": "https://api.filepreviews.io/v2/previews/8aeadf9b-e091-4210-ac1c-6ef14bd99a76/", | |
"status": "success", | |
"preview": { | |
"resized": false, | |
"original_size": { | |
"width": "640", | |
"height": "360" | |
}, |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
isBooked: Ember.computed(function() { | |
var ObjectPromiseProxy = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin); | |
return ObjectPromiseProxy.create({ | |
promise: $.getJSON('https://httpbin.org/get') | |
}); |