Skip to content

Instantly share code, notes, and snippets.

View GlauberF's full-sized avatar
🎯
Foco e determinação nos objetivos.

Glauber Funez GlauberF

🎯
Foco e determinação nos objetivos.
View GitHub Profile
@GlauberF
GlauberF / parseFunction.js
Created May 4, 2021 17:39 — forked from lamberta/parseFunction.js
Parse a JavaScript string function definition and return a function object. Does not use eval.
/* Parse a string function definition and return a function object. Does not use eval.
* @param {string} str
* @return {function}
*
* Example:
* var f = function (x, y) { return x * y; };
* var g = parseFunction(f.toString());
* g(33, 3); //=> 99
*/
function parseFunction (str) {
@GlauberF
GlauberF / DOMinator.ts
Created March 25, 2021 19:11
Generate HTML from Typescript
// Library
// Simple transformation of Javascript to HTML.
class Dominator {
private readonly eventListeners: any[];
private readonly children: any[];
private element: any;
private id: any;
private content: any;
private properties: any;
private tag: any;
@GlauberF
GlauberF / DOMinator.js
Last active March 17, 2021 17:57
Generate HTML from Javascript
// Library
// Simple transformation of Javascript to HTML.
class Dominator {
constructor(object) {
Object.assign(this, object)
let childObjects = []
if (object.children){
for (const child of object.children) {
let childObject = new Dominator(child)
data:text/csv;base64,dWY7Y29kaWdvO2V4O3RpcG87bmFjaW9uYWxmZWRlcmFsO2ltcG9ydGFkb3NmZWRlcmFsO2VzdGFkdWFsO211bmljaXBhbDt2aWdlbmNpYWluaWNpbzt2aWdlbmNpYWZpbTt2ZXJzYW8Kc2M7MDAwMDAwMDA7OzA7Ny44NTs5Ljg1OzAuMDA7MC4wMDswMS8wMi8yMDIxOzMwLzA0LzIwMjE7MjEuMS5BCmFjOzAwMDAwMDAwOzswOzcuODU7OS44NTswLjAwOzAuMDA7MDEvMDIvMjAyMTszMC8wNC8yMDIxOzIxLjEuQQ==
@GlauberF
GlauberF / instalar_programanas_deepin.sh
Created February 16, 2021 11:44 — forked from tgmarinho/instalar_programanas_deepin.sh
Instalação de Programas no Linux Deepin
#!/bin/bash
## RECOMENDO EXECUTAR ESSE SCRIPT NA PASTA DOCUMENTOS DENTRO DO USUARIO
echo "PRECISA DE INTERNET PARA EXECUTAR ESSE SCRIPT"
echo "FAZ DOWNLOAD DE ARQUIVOS NA NET"
sudo su
apt-get update -y
@GlauberF
GlauberF / date-fns-date-adapter.ts
Created February 2, 2021 18:54 — forked from JoniJnm/date-fns-date-adapter.ts
date-fns angular material adapter
import {Injectable} from '@angular/core';
import {DateAdapter} from '@angular/material';
import {addDays, addMonths, addYears, format, getDate, getDaysInMonth, getMonth, getYear, parse, setDay, setMonth, toDate} from 'date-fns';
// CONFIG. Use environment or something for a dynamic locale and settings
import {es as locale} from 'date-fns/locale';
const WEEK_STARTS_ON = 1; // 0 sunday, 1 monday...
export const MAT_DATE_FNS_DATE_FORMATS = {
@GlauberF
GlauberF / query.js
Last active September 10, 2020 14:16
test aggregation mongo
// Requires official Node.js MongoDB Driver 3.0.0+
var mongodb = require("mongodb");
var BSONRegExp = mongodb.BSONRegExp;
var client = mongodb.MongoClient;
var url = "mongodb://host:port/";
client.connect(url, function (err, client) {
var db = client.db("name_db");
> vimbo@9.1.1 postinstall /var/www/html/pwa_vimbo
> ngcc -l debug
Debug: Forking unlocker child-process
Debug: Attemping to write lock-file at /var/www/html/pwa_vimbo/node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__ with PID 7943
Debug: Written lock-file at /var/www/html/pwa_vimbo/node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__ with PID 7943
Debug: Running ngcc on ClusterExecutor (using 3 worker processes).
Debug: Analyzing entry-points...
Debug: No manifest found for /var/www/html/pwa_vimbo/node_modules so walking the directories for entry-points.
Debug: Starting unlocker at process 7950 on behalf of process 7943

ERROR in node_modules/angular-froala-wysiwyg/editor/editor.module.d.ts:3:23 - error NG6005: FroalaEditorModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.

3 static forRoot(): ModuleWithProviders; ~~~~~~~~~~~~~~~~~~~ src/@vimbo/components/formly/vimbo-formly.module.ts:316:14 - error NG6002: Appears in the NgModule.imports of VimboDynamicDialogModule, but could not be resolved to an NgModule class.

Is it missing an @NgModule annotation?

316 export class VimboFormlyModule {}

@GlauberF
GlauberF / changelog.md
Created June 18, 2020 22:08
Changelog

data

Resumo

Novas Funcionalidades Correções Melhorias