Skip to content

Instantly share code, notes, and snippets.

View vedovelli's full-sized avatar
💭
🚀

Fábio Vedovelli vedovelli

💭
🚀
View GitHub Profile
@vedovelli
vedovelli / gulpfile.js
Last active January 8, 2016 18:54 — forked from juliobitencourt/gulpfile.js
Gulp + Duo + BrowserSync + SASS
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
@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';
@vedovelli
vedovelli / GIF-Screencast-OSX.md
Created March 7, 2016 23:19 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Folder Structure

Motivations

  • 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)
@vedovelli
vedovelli / codigo-doido.js
Last active March 22, 2018 11:56 — forked from omariosouto/_codigo-doido-v2.js
Async, Recursive .... function!
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)
})
}
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!
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";