Skip to content

Instantly share code, notes, and snippets.

View jeovazero's full-sized avatar
:octocat:
lamentavel

jeovazero

:octocat:
lamentavel
  • JOI/SC
View GitHub Profile
#!/bin/bash
if [ $# -lt 2 ]
then echo -e "Falta argumentos\nUsage:\n$ $0 <input_file> <output_file>"
else
echo "Tem certeza que deseja executar:"
echo "$ openssl enc -aes-256-cbc -salt -in $1 -out $2"
echo "? [s/n]"
read OP
if [ $OP = "s" ]
then
#!/bin/bash
if [ $# -lt 2 ]
then echo -e "Falta argumentos! \n Usage: $ $0 <input_file> <output_file>\n"
else
echo -e "Executando:\n$ openssl enc -d -aes-256-cbc -in $1 -out $2"
`openssl enc -d -aes-256-cbc -in $1 -out $2`
echo "Ok. Arquivo descriptografado."
fi
# jeotario
function cpfMask(e){
var value = e.target.value
var separatorList = [[3, '.'], [3, '.'], [3, '-'], [2, '']]
var clean = value.replace(/[^\d]/g, "").substr(0, 11)
var value2 = ""
var index = 0
for(var i = 0; i < separatorList.length; i++){
var separator = separatorList[i][1]
var len = separatorList[i][0]
value2 += clean.substr(index, len)
diff --git a/src/Contents.elm b/src/Contents.elm
index 48fde68..dc0cbe3 100644
--- a/src/Contents.elm
+++ b/src/Contents.elm
@@ -33,6 +33,55 @@ githubLinkData =
}
+languages =
+ [ { label = "OCaml"
diff --git a/elm.json b/elm.json
index 10e470f..6f7d607 100644
--- a/elm.json
+++ b/elm.json
@@ -9,12 +9,12 @@
"elm/browser": "1.0.1",
"elm/core": "1.0.2",
"elm/html": "1.0.0",
+ "elm/time": "1.0.0",
"rtfeldman/elm-css": "16.0.1"
name route
DateTime
/date-time

import DateTime from '../core/DateTime' import { Playground, Props } from 'docz' import ptBRLocale from 'date-fns/locale/pt-BR' import ruLocale from 'date-fns/locale/ru' import { useState } from 'react'

diff --git a/src/CombinatorsAnimated.elm b/src/CombinatorsAnimated.elm
index 98ee5c6..026f02b 100644
--- a/src/CombinatorsAnimated.elm
+++ b/src/CombinatorsAnimated.elm
@@ -2,9 +2,9 @@ module CombinatorsAnimated exposing
( Model
, Msg(..)
, combinatorsBackground
+ , init
, initModel
function fake(card) {
const el = document.querySelector(card)
console.log(el)
const bounds = el.getBoundingClientRect()
const { x, y } = bounds
const down = new MouseEvent('mousedown', {
bubbles: true,
clientX: x + 10,
clientY: y + 10,
button: 0
diff --git a/src/Contents.elm b/src/Contents.elm
index 82ac772..f856fe4 100644
--- a/src/Contents.elm
+++ b/src/Contents.elm
@@ -34,52 +34,59 @@ githubLinkData =
languages =
- [ { label = "OCaml"
- , rot = 15
diff --git a/src/CombinatorsAnimated.elm b/src/CombinatorsAnimated.elm
index 297029f..2afadc4 100644
--- a/src/CombinatorsAnimated.elm
+++ b/src/CombinatorsAnimated.elm
@@ -19,18 +19,6 @@ import Html.Styled.Attributes as Attrs exposing (..)
import Html.Styled.Keyed as Keyed
import Html.Styled.Lazy exposing (lazy)
import StyleGuide as Theme
-import Styles
- exposing