Skip to content

Instantly share code, notes, and snippets.

View lucastrvsn's full-sized avatar
🦆

Lucas Trevisan lucastrvsn

🦆
  • Brazil
  • 14:36 (UTC -03:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lucastrvsn on github.
  • I am sambinha (https://keybase.io/sambinha) on keybase.
  • I have a public key ASCMUXDBvDqZxBHn-P8x9DoflZVwM5wrEdBXQ_N39sBLtAo

To claim this, I am signing this object:

@lucastrvsn
lucastrvsn / cloudSettings
Last active September 1, 2020 13:25
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-01T13:25:33.790Z","extensionVersion":"v3.4.3"}
var rgbToCmy = function(r, g, b) {
return {
c: (1 - r / 255).toPrecision(4),
m: (1 - g / 255).toPrecision(4),
y: (1 - b / 255).toPrecision(4)
}
}
var rgbToHsi = function(r, g, b) {
var sum = r + g + b;
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use(bodyParser.json()); // for parsing application/json
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
module.js:327
throw err;
^
Error: Cannot find module 'adonis-fold'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\lucas\Documents\teste\bootstrap\http.js:14:14)