- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
This file contains 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 type { LoaderFunction, ActionFunction } from "remix"; | |
import { useLoaderData, useFetcher } from "remix"; | |
import invariant from "tiny-invariant"; | |
import cuid from "cuid"; | |
import React from "react"; | |
import type { Task, User } from "@prisma/client"; | |
import { requireAuthSession } from "~/util/magic-auth"; | |
import { ensureUserAccount } from "~/util/account"; | |
import { placeCaretAtEnd } from "~/components/range"; | |
import { getBacklog } from "~/models/backlog"; |
This file contains 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 { buildSchema, graphql } from "graphql"; | |
// Construct a schema, using GraphQL schema language | |
let graphqlSchema = buildSchema(` | |
type Query { | |
recipes: [Recipe] | |
recipes_by_pk(id: Int!): Recipe | |
} | |
type Recipe { | |
id: ID! |
This file contains 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
async function awaitSubmissionFinish(submissionID, status) { | |
const response = await submissionInfo(submissionID) | |
if(status == 0) return response | |
return new Promise(resolve => { | |
setTimeout(() => resolve(awaitSubmissionFinish(submissionID, response.status)), 5000) | |
}) | |
} |
This file contains 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
@servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100']) | |
<?php | |
$app_name = 'l5eka'; | |
$app_path = '/var/www/vhosts/'.$app_name; | |
$repo = 'https://github.com/vedovelli/l5eka'; | |
$branch = 'aula4'; | |
$keep = 6; | |
$timezone = 'America/Sao_Paulo'; |
This file contains 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 gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var sass = require('gulp-sass'); | |
var exec = require('child_process').exec; | |
gulp.task('browser-sync', function() { | |
browserSync.init({ | |
proxy: "dashboard.eastman.dev", | |
notify: false |