Skip to content

Instantly share code, notes, and snippets.

View iamandrewluca's full-sized avatar
🚨
Git Inspector

Andrei Luca iamandrewluca

🚨
Git Inspector
View GitHub Profile
@iamandrewluca
iamandrewluca / youtube-dl.md
Last active April 21, 2023 07:32
YouTube DL Commands

Download ringtones

https://github.com/yt-dlp/yt-dlp

yt-dlp -x --audio-format m4a --audio-quality 0 ...
# Ringtones should be no more then 35 seconds
mv *.m4a *.m4r
@iamandrewluca
iamandrewluca / README.md
Last active September 5, 2023 21:16
curs.md google function
<template>
<ComboboxOption as="template" :value="option" v-slot="{ selected, active }">
<li class="relative cursor-default select-none py-2 pl-10 pr-4" :class="{
'bg-teal-600 text-white': active,
'text-gray-900': !active,
}">
<span class="block truncate" :class="{ 'font-medium': selected, 'font-normal': !selected }">
{{ option.name }}
</span>
<span v-if="selected" class="absolute inset-y-0 left-0 flex items-center pl-3"
<script setup lang="ts">
import { shallowRef } from "vue";
import Recursive from "./components/Recursive.vue";
import { MyType } from "./my-type";
const allData = shallowRef<MyType[]>([
{
title: "Parent 1",
items: [
{
@iamandrewluca
iamandrewluca / README.md
Created September 30, 2022 11:02
Change video speed

Audio Speed increases when bigger then 1
Video Speed increases when lower then 1

Audio Speed = 1 / Video Speed

#!/usr/bin/env node
/**
* Makes quiz average from a bunch of Thinkific Quiz CSV files
*
* Prerequirements node and npm installed
* Drop this file in a folder only with Quiz CSVs exported from Thinkific
* Make this file executable by running `chmod +x quiz-totals`
* Install `csv` dependency by running `npm install csv`
* Execute it by giving output filename as argument
<template>
<component :is="tag" class="relative">
<button
:class="[
'absolute top-0 h-full w-10 left-0 bg-gradient-to-r to-transparent',
startColor,
]"
:style="{ opacity: leftOpacity }"
@click="elementRef?.scrollBy({ left: -200, behavior: 'smooth' })"
/>
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"version": "1.0.0",
"lastModified": "2022-04-23",
"canonical": "https://raw.githubusercontent.com/iamandrewluca/jsonresume/main/resume.json"
},
"basics": {
"name": "Andrew Luca",
"email": "iamandrewluca@gmail.com",
let unit = `5" x 5' x 1-3/16"`
unit.split('x')
.map((v) => v.trim())
.map((v) => ({ value: removeUnit(v), unit: getUnit(v) }))
.map(({ unit, value }) => ({ unit, value: value.split('-') }))
.map(({ unit, value: [whole, fraction] }) => ({ unit, whole, fraction: splitFraction(fraction) }))
.map(({ unit, whole, fraction }) => ({ unit, value: parseInt(whole) + divideTuple(fraction) }))
.map(o => convertToInch(o))
.reduce((product, o) => product * o.value, 1)
@iamandrewluca
iamandrewluca / README.md
Last active May 9, 2023 20:10
Instant Markdown editor

Instant Markdown editor in new tab

  1. Create a new bookmark
  2. To the link add data:text/html,
  3. After data:text/html, paste block below
  4. Save bookmark, and open it

First time it may take a while to load the library