Skip to content

Instantly share code, notes, and snippets.

View SkyaTura's full-sized avatar
🧩
Hyperfocused ADHD and ASD

Skya Tura SkyaTura

🧩
Hyperfocused ADHD and ASD
View GitHub Profile
@SkyaTura
SkyaTura / min.js
Created October 15, 2020 18:16
eMiolo - LGPD
console.log('lol');
(()=>{const e=`emiolo.lgpd.${window.location.host}`;if(!localStorage||"accept"===localStorage.getItem(e))return;const n=document.createElement("div"),t=document.createElement("div"),o=document.createElement("button");n.append(t),n.append(o),t.innerText="Nós usamos cookies e outras tecnologias semelhantes para melhorar a sua experiência em nossos serviços, personalizar publicidade e recomendar conteúdo de seu interesse. Ao utilizar nossos serviços, você concorda com tal monitoramento.",o.innerText="ACEITO",n.setAttribute("style","\nbackground: white;\nposition: fixed;\nbottom: 0;\ndisplay: flex;\nwidth: 100vw;\npadding: 16px;\npadding-right: 24px;\nalign-items: center;\nbox-shadow: 0px 0px 2px 2px rgba(0,0,0,.25);\ntransform: translateY(100%);\ntransition: transform .3s;\nz-index: 9999;\n "),t.setAttribute("style","\nflex: 1;\nfont-family: sans-serif;\nfont-size: 12px;\npadding-right: 8px;\n "),o.setAttribute("style","\nbackground: #8BC34A;\npadding: 8px 12px;\nborder-radius: 5px;\ncolor:
@SkyaTura
SkyaTura / .hyper.js
Created October 10, 2019 20:57
My Hyper.js config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
/*
* Test ligatures: => ==> -> --> !== ===
*/
module.exports = {
config: {
@SkyaTura
SkyaTura / bkg.sh
Last active July 31, 2019 13:05
Troll Wallpaper OS X
#!/bin/bash
if [ ! -f /tmp/kid.jpg ]; then
kid_url=$(curl -L https://gist.githubusercontent.com/SkyaTura/1d41e9db743811dad0749a72ce2978c2/raw/file.txt)
curl $kid_url -o /tmp/kid.jpg
fi
osascript -e 'tell application "System Events" -- activate' -e 'end tell'
osascript -e 'tell application "System Events" to set picture of every desktop to "/tmp/kid.jpg"'
<template>
<table>
<thead>
<tr>
<th v-for="column in columns">{{ column }}</th>
</tr>
<tbody>
<tr v-for="row in rows">
<td>{{ row }}</td>
</tr>
<template>
<div class="boxshadow flex flex-column full-height no-user-select"
style="padding-left:24px; padding-right:14px;"
>
<h1>rows length: {{rows.length}}</h1>
<!-- {{rows}} -->
<div
class= "flex flex-items-center"
v-for="(row, rowindex) in rows" :key="rowindex"
:class="[rowbackgroundColor[rowindex]]">
@SkyaTura
SkyaTura / basic.md
Created April 22, 2018 04:50 — forked from zenorocha/basic.md
New Firebase Auth vs Old Firebase Auth
@SkyaTura
SkyaTura / align_images.py
Created January 5, 2018 02:36 — forked from anonymous/align_images.py
Face alignment scripts based on 1adrianb/face-alignment
import argparse
import cv2
import dlib
import json
import numpy
import skimage
from pathlib import Path
from tqdm import tqdm
from umeyama import umeyama
@SkyaTura
SkyaTura / MySQL - Distance
Created December 20, 2017 11:40
A MySQL function to calculate distance between two geo coordinates
CREATE DEFINER=`root`@`%` FUNCTION `lat_lng_distance`(
`lat1` FLOAT,
`lng1` FLOAT,
`lat2` FLOAT,
`lng2` FLOAT
)
RETURNS float
LANGUAGE SQL
DETERMINISTIC
@SkyaTura
SkyaTura / flex-reset.css
Last active December 19, 2017 22:59 — forked from kkga/flex-reset.css
* { box-sizing: border-box; }
html, body { min-height: 100vh; margin: 0; }
div,
html,
body,
nav,
header,
hgroup,
footer,
@SkyaTura
SkyaTura / conf.d
Created November 13, 2017 13:07
Docker PHP-FPM
server {
index index.php index.html;
server_name php-docker.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /code;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;