Skip to content

Instantly share code, notes, and snippets.

View enieber's full-sized avatar
🚧
decentralizing the world

Enieber Cunha enieber

🚧
decentralizing the world
View GitHub Profile
@enieber
enieber / odoo_wrapper.py
Created March 22, 2024 19:28 — forked from rafnixg/odoo_wrapper.py
Odoo shell enviroment wrapper for executre custom code
import sys
def execute_script(env, script_path):
# Importa el archivo de script como un modulo
import importlib.util
spec = importlib.util.spec_from_file_location("module.name", script_path)
script_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(script_module)
# Ejecuta la función 'run' del modulo importado
{"ignition":{"version":"3.0.0"},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJszOLL2XUzL8NQhcJSPABbjsWmco3U1PI3wUhOa87S3 eniebercunha@gmail.com"]}]}}

Vendas

Porjeto para demonstrar conhecimento em desenvolvimento mobile android.

Regras de negocio

O aplicativo deve conter no minimo 2 telas 1 para fazer um pedido e outra para mostrar o total de pedidos em R$.

Home

Atalhos de navegação

Quando você começa a usar ferramantas de edição de texto e aprende alguns atalhos para facilitar a escrita como: Ctr + Backspace para apagar um bloco de texto ou Ctr + seta movimenta o cursor por um bloco de texto, mas uma questão que me deparei é, quando usamos um caracter especial como texto + entre outro alguns interpretadores desses comandos podem reconhecer o texto com o espaço e o caracter especial como um bloco unico

@enieber
enieber / example-typeorm-jest.test.ts
Created February 16, 2022 04:58 — forked from Ciantic/example-typeorm-jest.test.ts
Example of testing TypeOrm with Jest and Sqlite in-memory database
import { createConnection, getConnection, Entity, getRepository } from "typeorm";
import { PrimaryGeneratedColumn, Column } from "typeorm";
@Entity()
export class MyEntity {
@PrimaryGeneratedColumn()
id?: number;
@Column()
name?: string;
@enieber
enieber / clean-up-arch-linux.md
Created August 30, 2021 07:21 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
  1. Run the command sudo rm -r node_modules/web3-contracts-loader/node_modules/web3
  2. Run the command sudo cp -R node_modules/web3/ node_modules/web3-contracts-loader/node_modules/

change from:

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.IntDef;
import android.support.v4.util.Pools;

to:

@enieber
enieber / post-login.js
Last active January 22, 2019 13:18 — forked from devsergioramos/post-login.js
Function js de post para login
const getContentForm = () => $('form#conteudo');
const getDadosFormLogin = () => {
const usuario = $("input#usuario").val();
const senha = $("input#senha").val();
const form = {
usuario,
senha,
};
return form;