Skip to content

Instantly share code, notes, and snippets.

View LiamDGray's full-sized avatar

Liam Gray LiamDGray

  • Liam Gray Software Labs
  • Tucson, Arizona, USA
  • 23:43 (UTC -07:00)
View GitHub Profile
@LiamDGray
LiamDGray / chatgpt.el
Created July 12, 2024 21:32 — forked from Gavinok/chatgpt.el
chatgpt client for emacs WIP (Now Async!)
;;; chatgpt.el --- Simple ChatGPT frontend for Emacs -*- lexical-binding: t -*-
;; Copyright (C) Gavin Jaeger-Freeborn
;; This package is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This package is distributed in the hope that it will be useful,
@LiamDGray
LiamDGray / main.py
Created November 10, 2023 22:54 — forked from mberman84/main.py
OpenChat Code
import requests
import json
import gradio as gr
url = "http://localhost:11434/api/generate"
headers = {
'Content-Type': 'application/json',
}
import autogen
config_list = [
{
'model': 'gpt-4',
'api_key': 'API_KEY'
}
]
llm_config={

Image captioning and Object detection add-ons for NVDA

GSoC 2020 | NV ACCESS | Shubham Dilip Jain

Final Report

Sample output produced using the object detection add-on, featuring the result "The image contains people, a dog, and a backpack." as embedded text and coloured boxes drawn around each of these objects in the image.

Introduction

The internet today is rich in image-content, from entire websites like Instagram and Pinterest dedicated to curating and displaying images, to Facebook and Reddit that have large amounts of content in image form. Non-visual users find it challenging to navigate and use these websites for their intended purpose. The information in images, whether on the internet or stored locally, is also inacc

@LiamDGray
LiamDGray / tasker_forward_SMS.js
Created March 10, 2022 21:21 — forked from IcedMango/tasker_forward_SMS.js
How to use tasker forward SMS to telegram
//bot秘钥
var apiKey = "";
//请求链接
var apiUrl = "api.telegram.org";
//会话ID
var chatId = "";
//发件人名称
var senderName = global('SMSRN');
if (senderName.match(/\d*/g)[0].length > 0) {
senderName = "";
@LiamDGray
LiamDGray / drone-gitbhub-captain.json
Created March 5, 2022 18:46 — forked from alexgaribay/drone-gitbhub-captain.json
Capserver definition for Drone with Github integration
{
"captainVersion": "2",
"documentation": "Taken from https://docs.drone.io/intro/gitea/single-machine/",
"displayName": "Drone.io",
"description": "Drone is a self-service Continuous Delivery platform for busy development teams",
"dockerCompose": {
"version": "2",
"services": {
"$$cap_appname-runner": {
"image": "drone/drone-runner-docker:$$cap_drone_runner_version",
@LiamDGray
LiamDGray / registry-caprover.json
Created March 5, 2022 18:45 — forked from alexgaribay/registry-caprover.json
Create a hosted docker registry on Caprover
{
"captainVersion": "2",
"documentation": "Based on https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-18-04",
"displayName": "Docker Container Registry",
"dockerCompose": {
"version": "3.3",
"services": {
"$$cap_appname": {
"image": "registry:2",
"containerHttpPort": "5000",
@LiamDGray
LiamDGray / telnyx-number-search-and-purchase.rb
Created February 16, 2020 20:30 — forked from davidkovsky/telnyx-number-search-and-purchase.rb
Script from ClueCon Weekly Telnyx API presentation
# NOTES:
# This is a simple sample script to search for, purchase, and configure a number via the Telnyx API.
# This was used on ClueCon Weekly as a very simple demo of how you can interact with the Telnyx API.
# Please scroll all the way to the bottom to see the list of method calls and, if desired, uncomment the
# method calls that will result in an actual number purchase.
# Requires ruby >= 2.3!!!
require 'uri'
require 'net/http'
require 'openssl'
@LiamDGray
LiamDGray / index.html
Created February 18, 2017 01:15 — forked from jdarling/index.html
Reuseable D3 MindMap (left/right tree)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
.node circle {
cursor: pointer;
fill: #fff;
stroke: steelblue;
@LiamDGray
LiamDGray / data.json
Created February 18, 2017 01:15 — forked from jdarling/data.json
D3 MindMap
{
"name": "Root",
"children": [
{
"name": "Branch 1",
"children": [
{"name": "Leaf 3"},
{"name": "Leaf 4"}
]
},