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 / 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;
@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 / 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 / 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 / basic.md
Created April 22, 2018 04:50 — forked from zenorocha/basic.md
New Firebase Auth vs Old Firebase Auth
<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]]">
<template>
<table>
<thead>
<tr>
<th v-for="column in columns">{{ column }}</th>
</tr>
<tbody>
<tr v-for="row in rows">
<td>{{ row }}</td>
</tr>
@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"'
@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: {