Skip to content

Instantly share code, notes, and snippets.

View luizcieslak's full-sized avatar
🤔
<Learning />

Luiz Fernando da Silva Cieslak luizcieslak

🤔
<Learning />
View GitHub Profile
@luizcieslak
luizcieslak / fix.md
Last active May 25, 2023 13:08
how to fix cerebro-timezones and cerebro-converter plugins
@luizcieslak
luizcieslak / example.js
Created May 11, 2020 13:54
Title with line after
const Title = styled.p`
position: relative;
&:after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 50px;
height: 5px;
background: ${props => props.theme.colors.brand['500']};
@luizcieslak
luizcieslak / gist:6550c533537ec94ccb444c3486fc91d4
Created April 23, 2020 00:23 — forked from eviltester/gist:7beef92896fdd8b638656f996fac38c0
Convert videos into subtitled sections using ffmpeg
# Create a new caption file
~~~~~~~~
ffmpeg -i captions.srt captions.ass
~~~~~~~~
# Add subtitles to main video without changing it
~~~~~~~~
ffmpeg -i video.mp4 -vf "subtitles=captions.ass:force_style='OutlineColour=&H80000000,BorderStyle=4,Outline=1,Shadow=0,MarginV=20'" subtitled-video.mp4
@luizcieslak
luizcieslak / teste.md
Last active November 28, 2019 15:02
Teste de Frontend - Grupo Fleury

Teste de Frontend - Grupo Fleury

Obrigado pelo interesse em nos juntar à transformação digital do Grupo Fleury e por separar um tempo do seu dia-a-dia para realizar nosso teste!

Objetivo

Coletar os conhecimentos de arquitetura de Frontend, consumo de informações assíncronas e estilização de CSS.

O Desafio

@luizcieslak
luizcieslak / useDebounce.js
Last active June 16, 2020 14:03
useFuseSearch + useDebounce (TS and JS version) https://codesandbox.io/s/usefusesearch-ts-h8ueb
import { useState, useEffect } from 'react';
function useDebounce(value, delay) {
// State and setters for debounced value
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(
() => {
// Set debouncedValue to value (passed in) after the specified delay
const handler = setTimeout(() => {
@luizcieslak
luizcieslak / Main.java
Last active December 28, 2018 10:44
Analysis of depth-first search and A* search in a peg solitaire game. Assignment for Introduction of Artificial Intelligence classes, given by Dr. Benjamin at Pace University
package pegsolitaire;
import java.util.Stack;
import java.util.TreeSet;
import java.util.Vector;
public class Main {
static int iterations=0;
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <limits.h>
#define N 5
void cabecalho(){
system("cls");
printf("Grafos - ED II - Profa. Roberta\nFeito por: Luiz Fernando Cieslak - RA: 131022776\n\n\n");
@luizcieslak
luizcieslak / home.ts
Created August 8, 2017 01:34
Retrieve many-to-many relationship data in Firebase
/*
* using:
* angular4.0.2
* angularfire2 4.0.0-rc0
* firebase 3.9.0
* rxjs 5.1.1
*/
export class HomePage {
user: FirebaseObjectObservable<any>;
@luizcieslak
luizcieslak / cards.html
Created July 12, 2017 23:46
Bootstrap v4 Card Navigation with Tabs
<!-- bootstrap version 4.0.0-alpha.6 -->
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" href="#c1" data-toggle="tab">Card 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#c2" data-toggle="tab">Card 2</a>
</li>