-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
Copyright (c) 2011 ZURB, http://www.zurb.com/ |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
const { GraphQLServer } = require("graphql-yoga"); | |
const session = require("express-session"); | |
const { Prisma } = require("prisma-binding"); | |
const resolvers = require("./resolvers"); | |
const db = new Prisma({ | |
typeDefs: "src/generated/prisma.graphql", // the auto-generated GraphQL schema of the Prisma API | |
endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma API (value set in `.env`) | |
debug: true // log all GraphQL queries & mutations sent to the Prisma API | |
// secret: process.env.PRISMA_SECRET, // only needed if specified in `database/prisma.yml` (value set in `.env`) |
preprocess_crop.py
script below adds center and random crop to Keras's flow_from_directory
data generator.
It first resizes image preserving aspect ratio and then performs crop. Resized image size is based on crop_fraction
which is hardcoded but can be changed. See crop_fraction = 0.875
line where 0.875 appears to be the most common, e.g. 224px crop from 256px image.
Note that the implementation has been done by monkey patching keras_preprocessing.image.utils.loag_img
function as I couldn't find any other way to perform crop before resizing without rewriting many other classes above.
Due to these limitations, the cropping method is enumerated into the interpolation
field. Methods are delimited by :
where the first part is interpolation and second is crop e.g. lanczos:random
. Supported crop methods are none
, center
, random
. When no crop method is specified, none
is assumed.
I'm using websockets & protobuf in my vscode
extension. I want to replace the message abstractions & inconsistent code with a nicely defined server/client interface using grpc
.
After working on some POC code and running the extension for the first time, I was faced with the following error:
Activating extension 'richardwillis.vscode-gradle' failed: