Click to toggle contents of `code`
CODE!
CODE!
""" | |
a simple script that reads tweets inside a json file, uses openai to compute embeddings and creates two files, metadata.tsv and output.tsv, which cam be used to visualise the tweets and their embeddings in TensorFlow Projector (https://projector.tensorflow.org/) | |
""" | |
# obtain tweets.json from https://gist.github.com/gd3kr/948296cf675469f5028911f8eb276dbc | |
import pandas as pd | |
import json | |
from openai import OpenAI |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
Linking a custom domain to a deployed application is confusing and at times you don't get a route on how to link the domain with the website. 😫
In this article, I will be explaining how to link a Custom domain brought in Google Domains service to an application hosted on Vercel.
Perks of using vercel is that it allows adding domain without any verification unlike Heroku/Netlify, which means you don't have to add your billing details to add a domain to your application. Moreover, it is fast, efficient, and easy to use.😁
Vercel is a deployment and collaboration platform for frontend developers. Vercel enables developers to host websites and web services that deploy instantly and scale automatically – all without any configuration. Source - Official Docs
all: gifread gifread.asan gifread.ubsan gifread.coverage | |
gifread: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -o $@ gifdec.c gifread.c $(LDFLAGS) | |
gifread.asan: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -g -fsanitize=address -o $@ gifdec.c gifread.c $(LDFLAGS) | |
gifread.ubsan: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -g -fsanitize=undefined -o $@ gifdec.c gifread.c $(LDFLAGS) |
// Perlin.swift | |
// Created by Matthew Reagan on 8/7/18. | |
// | |
// Quick implementation of the the classic Perlin noise | |
// generation function, useful for creating organic textures | |
// or terrain. Perlin noise can also be easily generated with | |
// Apple's GameplayKit framework, this code is mostly for | |
// experimentation purposes. (Disclaimer: This code is not | |
// optimized, nor particularly elegant, but it can be used as | |
// a jumping off point for writing custom noise functions.) |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
#!/usr/bin/env osascript -l JavaScript | |
/** | |
* Delete silence from Final Cut Pro timeline using a script. | |
* Demo: https://imgur.com/a/Zisav | |
* | |
* This script accepts an ffmpeg silencedetect log as input. | |
* | |
* To setup, have fcp running along with your clip selected. Ensure that the | |
* timecode will start at zero before running this script. That is, if your clip |