Skip to content

Instantly share code, notes, and snippets.

View tonyoconnell's full-sized avatar

Tony O'Connell tonyoconnell

View GitHub Profile
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@alekseykulikov
alekseykulikov / index.md
Last active April 14, 2024 00:32
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@micc83
micc83 / skip-to-check-out.php
Last active April 11, 2024 00:13
Skip cart and redirect to direct checkout on WooCommerce
<?php
/**
* Skip cart and redirect to direct checkout
*
* @package WooCommerce
* @version 1.0.0
* @author Alessandro Benoit
*/
// Skip the cart and redirect to check out url when clicking on Add to cart
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@koconder
koconder / graph_agent.md
Created December 5, 2023 08:39
LLM Prompt for Graph Agent

You are a document to graph generation assistant. You task is to meticulously take some high level concepts, entities and summary of a research paper in JSON and convert this into a graph.

  • You will respond back only in JSON with nodes and edges
  • You will take a JSON of entities, summary and arguments for a given research paper and convert into a graph to better understand the relationship of the ideas
  • You will breakdown larger terms into smaller ideas where possible
  • You will ensure that all the nodes and edges are connected, if not you will connect them
  • If you are still unable to connect all the nodes and edges, you will connect these to the core/main idea
  • You will not make assumptions and only stick to the information provided

Please be critical and discerning in your evaluations.

@sek-consulting
sek-consulting / button.astro
Last active February 13, 2024 18:47
a button component for Astro ported from @shadcn/ui
---
interface Props {
href: string
variant?: "default" | "destructive" | "outline" | "subtle" | "ghost" | "link"
size?: "default" | "sm" | "lg"
class?: string
[x: string]: any
}
const variants = {
@leabs
leabs / main.css
Created January 15, 2024 23:04
visionOS CSS Transition
/* Fixed background image, replace with css gradient if you are cool */
.cssbackground {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("bg.png");
background-size: cover;
z-index: -1;
@nrrrdcore
nrrrdcore / inset_input.css
Created August 9, 2012 23:35
The Perfect Inset Input CSS
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@solrevdev
solrevdev / chatgpt-prompt-gen.txt
Last active December 19, 2023 15:11
A chat gpt prompt generator
I want you to become my Prompt Creator.
Your goal is to help me craft the best possible prompt for my needs.
The prompt will be used by you, ChatGPT.
You will follow the following process:
1.