- 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
This file contains hidden or 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 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 |
This file contains hidden or 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 { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |
This file contains hidden or 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
const getContentForm = () => $('form#conteudo'); | |
const getDadosFormLogin = () => { | |
const usuario = $("input#usuario").val(); | |
const senha = $("input#senha").val(); | |
const form = { | |
usuario, | |
senha, | |
}; | |
return form; |
This file contains hidden or 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
function getSizeArray(arr) { | |
return arr.lenth | |
} | |
function getModule2(arr) { | |
let size = getSizeArray(arr) | |
return size % 2 == 0 | |
} | |
function getDivide2(arr) { |
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
- Eu não sou um desenvolvedor Zend Framework ou Symfony ou CakePHP
- Eu acho que o PHP é complicado o suficiente
- Eu gosto de construir coisas pequenas com efeitos simples
- Eu gosto de fazer coisas que resolvem problemas
- Eu gosto de construir coisas pequenas que trabalham em conjunto para resolver problemas maiores
This file contains hidden or 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
<?php | |
public function relatorio_jornada() { | |
$req = $this->request->is('post'); | |
if ($req) { | |
$newPost = $this->request->data; | |
$data_init = $newPost['Jornada']['dt_inicio']; | |
$data_finit = $novo['Jornada']['dt_final']; |