Install with Node.js:
npm install| # Docker services for development environment | |
| # | |
| # Usage: docker-compose up -d --remove-orphans | |
| version: "3" | |
| services: | |
| influxdb: | |
| container_name: influxdb | |
| image: influxdb:1.7 | |
| ports: |
| #!/usr/bin/env ts-node | |
| /// <reference types="node" /> | |
| import glob from 'fast-glob' | |
| import fs from 'fs' | |
| import path from 'path' | |
| import yargs from 'yargs' | |
| const defaultPatterns = ['**/*.graphql', '**/*.gql', '!node_modules'] |
| from graphene_django.views import GraphQLView | |
| from django.conf import settings | |
| from django.utils.decorators import classonlymethod | |
| from django.views.decorators.csrf import csrf_protect, csrf_exempt | |
| class NoCsrfForJSONGraphQLView(GraphQLView): | |
| @classonlymethod | |
| def as_view(cls, **kwargs): |
| class Teacher { | |
| } | |
| class Director { | |
| } | |
| class Student { | |
| constructor(name) { | |
| this.name = name; | |
| } | |
| } | |
| function greeting(stranger) { |
| ab -n 10000 -c 100 -T text/json -p ping.json http://127.0.0.1:5000/ping/ |
| require! { | |
| 'promise-once-events' | |
| 'smtp-server' | |
| } | |
| const SERVER_PORT = 25 | |
| module.exports = class smtp-server-as-promised extends promise-once-events | |
| (@options = {}) -> |
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use JSON::PP (); | |
| use Getopt::Long qw(GetOptions); | |
| our $VERSION = 0.01; |
| use v5.14; | |
| use warnings; | |
| use Test::More; | |
| use Test::Mojo; | |
| use FindBin; | |
| require "$FindBin::Bin/../webapp.pl"; | |
| my $t = Test::Mojo->new; |