Skip to content

Instantly share code, notes, and snippets.

if(prop("Progress") == 0, "❌", if(prop("Progress") == 100, "✅", if(smallerEq(prop("Progress"), 10), "■ 10%", if(smallerEq(prop("Progress"), 20), "■■ 20%", if(smallerEq(prop("Progress"), 30), "■■■ 30%", if(smallerEq(prop("Progress"), 40), "■■■■ 40%", if(smallerEq(prop("Progress"), 50), "■■■■■ 50%", if(smallerEq(prop("Progress"), 60), "■■■■■■ 60%", if(smallerEq(prop("Progress"), 70), "■■■■■■■ 70%", if(smallerEq(prop("Progress"), 80), "■■■■■■■■ 80%", if(smallerEq(prop("Progress"), 90), "■■■■■■■■■ 90%", if(smallerEq(prop("Progress"), 99), "■■■■■■■■■ 99%", ""))))))))))))
@raulanatol
raulanatol / index.html
Created March 1, 2020 14:52
EOI Test html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ejercicios EOI</title>
</head>
<body>
<div class="container">
set nocompatible
filetype off
" initiate Vundle
let &runtimepath.=',$HOME/.vim/bundle/Vundle.vim'
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" start plugin defintion
@raulanatol
raulanatol / .swiftlint.yml
Created March 6, 2019 16:44
Linter for a swift project
force_cast:
severity: warning
trailing_newline:
severity: error
trailing_whitespace:
severity: error
trailing_comma:
severity: error
vertical_whitespace:
severity: error
@raulanatol
raulanatol / .editorconfig
Created March 6, 2019 14:48
Editorconfig configuration
root = true
[*]
indent_style = space
end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@raulanatol
raulanatol / .prettierrc
Created March 6, 2019 14:46
Prettier configuration
{
"singleQuote": true
}
@raulanatol
raulanatol / check_db.py
Created February 12, 2019 13:12
Check database connection
#!/usr/bin/python
# -*- coding: utf-8 -*-
import psycopg2
import sys
con = psycopg2.connect(host="host",database="database", user="user", password="password")
cursor = con.cursor()
try:
cursor.execute("""SELECT table_name FROM information_schema.tables""")
@raulanatol
raulanatol / info.yaml
Created May 10, 2018 15:26
Componets Object Example (OAS) - YAML
components:
schemas:
Category:
type: object
properties:
id:
type: integer
format: int64
name:
type: string
@raulanatol
raulanatol / info.json
Created May 10, 2018 15:22
Componets Object Example (OAS) - JSON
"components": {
"schemas": {
"Category": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
@raulanatol
raulanatol / input.txt
Created April 11, 2018 19:41
EOI-Examples.txt
este#es#un#fichero#"csv"#aunque
no#lo#parezca#para,nada
123
1+2=tres#
#