Skip to content

Instantly share code, notes, and snippets.

{"swagger":"2.0","info":{"description":"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.","version":"1.0.6","title":"Swagger Petstore","termsOfService":"http://swagger.io/terms/","contact":{"email":"apiteam@swagger.io"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"host":"petstore.swagger.io","basePath":"/v2","tags":[{"name":"pet","description":"Everything about your Pets","externalDocs":{"description":"Find out more","url":"http://swagger.io"}},{"name":"store","description":"Access to Petstore orders"},{"name":"user","description":"Operations about user","externalDocs":{"description":"Find out more about our store","url":"http://swagger.io"}}],"schemes":["https","http"],"paths":{"/pet/{petId}/uploadImage":{"post":{"tags":["pet"],"summary":"uploads
@artgibson
artgibson / Dockerfile
Created October 10, 2022 23:40 — forked from malteneuss/Dockerfile
Nextjs + Prisma DB (query and migrations) in Docker
# Adapted from https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile
# Install dependencies only when needed
FROM node:16-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# Rebuild the source code only when needed
@artgibson
artgibson / helloworld.js
Created September 1, 2017 12:52
some gist
hello world! gists are script tags.
@artgibson
artgibson / embedly_en.po
Created May 26, 2015 15:58
embedly strings
# As in Embed this video.
msgid "embed"
msgstr "Embed"
# %s is a domain. ex: Read this on nytimes.com
msgid "read-this"
msgstr "Read this on %s"
# %s is a domain. ex: Read this article on nytimes.com
msgid "read-article-on"
Negative:
regional news - getting other regions before the stories go big, more regionals
negativity slant of social feed, lack of upward trajectory during the day throttle things that are positive in your feed. more positive
Follow individual journalist but getting personal info too.
Problems with Feedly, the filter bubble, bringing in stuff outside of your categories (bringing in serendipity)
var _ = require('./utils.js'),
browser = require('./browser.js');
//Yay translations.
var I18N = function(){
this.init();
};
I18N.prototype.init = function(){
var l = browser.language();
{
"Embed": {
en : 'Embed',
es : 'Insertar',
tr : 'Embed',
de : 'Einbetten',
fr : 'Ins\u00E9rer'
},
"Share": {
de: "Teilen",
<!DOCTYPE>
<html>
<head>
<title>Page Title</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="http://cdn.embed.ly/jquery.embedly-3.1.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$('document').ready(function(){
$('div.content').embedly({
query: { maxwidth: 450, wmode: 'transparent'},
@artgibson
artgibson / gist:4205162
Created December 4, 2012 15:29
embedly w/ target=blank
<!DOCTYPE>
<html>
<head>
<title>Page Title</title>
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script src="http://scripts.embed.ly/jquery.embedly.min.js"></script>
<script type="text/javascript">
$('document').ready(function(){
var displayFunc = function(oembed, dict){
@artgibson
artgibson / objectify_images
Created June 5, 2012 14:22
images reference in response
"images": [
{
"url": "http://fgr.fashionisto.netdna-cdn.com/wp-content/uploads/2012/06/butterfly6.jpg",
"width": 760,
"height": 991,
"size": 130626
},
{
"url": "http://imagesgonerogue.com/preview/06/butterfly6.jpg",
"width": 760,