Skip to content

Instantly share code, notes, and snippets.

View druwynings's full-sized avatar

Dru Wynings druwynings

View GitHub Profile
@Tim-Machine
Tim-Machine / Cursor-usage.md
Last active July 9, 2025 13:11
Here are some key things that I've found working with Cursor that have really helped take it to the next level.

Lessons learned with Cursor

Here are some key things that I've found working with Cursor that have really helped take it to the next level.

  • Ensure that you have a well written .cursorrules file. Cursor Directory has some great starting points.
  • The @Docs is crazy powerful. Cursor may not have indexed the version of the dependencies required. Using @SomePackageDocs vastly improve the accuarcy of code generation related to a depenency.
  • @web is also a very strong tool, but doesn't get added by default when using Cursor's composer. While you may not always need @web, its very useful for more obscure implementations.

Prompting

The most important thing by far is cearly articulating what you want to do. The more well defined your requirements the less deviation from the request will happen. I've added a prompt example.

Think o

@kylemcdonald
kylemcdonald / function-calling.ipynb
Created June 14, 2023 01:10
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasbrigida
lucasbrigida / running_nightmare_headlessly_on_linux.md
Last active May 16, 2023 18:51
Running Nightmare headlessly on Linux

Installation

Installing dependencies

sudo apt-get install build-essential clang libdbus-1-dev libgtk2.0-dev \
                       libnotify-dev libgnome-keyring-dev libgconf2-dev \
                       libasound2-dev libcap-dev libcups2-dev libxtst-dev \
                       gcc-multilib g++-multilib \
                       libgtk2.0-0 libgconf-2-4 \
                       libasound2 libxtst6 libxss1 libnss3 xvfb \
require 'json'
require 'net/http'
# JSON parser tag, creating map for use in jekyll markdown
# Alex.Heneveld @ Cloudsoft Corp (remove spaces and add the .com)
# Released under APL 2.0
# usage: {% jsonball varname from TYPE PARAM %}
#
# where TYPE is one of {data,var,file,page}, described below
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 16, 2025 11:36
A badass list of frontend development resources I collected over time.
@mytharcher
mytharcher / compressor.rb
Last active October 17, 2025 16:19
A jekyll plugin for compressing HTML, JavaScript files when rendering.
#
# File compressor plugin for jekyll
# =================================
#
# By [mytharcher](https://github.com/mytharcher)
# 2012-05-20
#
# Updated by [nicoespeon](https://github.com/nicoespeon)
# 2013-04-12
#
@iantearle
iantearle / register.js
Created April 1, 2012 07:09
Appcelerator Register with custom fields
var sex = (male == 1) ? 'male' : 'female';
var data = {
email: email.value,
first_name: global.user_names[0],
last_name: global.user_names[1],
password: password.value,
password_confirmation: password.value,
custom_fields: '{ "dob": "'+ dob.value +'", "sex": "'+ sex +'" }' // REMOVE THIS LINE IT ALL WORKS... HAVE HAD MULTIPLE PEDRMEATATIONS, SO THIS WAY MAY NOT BE THE ONLY CAUSE OF THIS NOT WORKING, JUST THE LAST ONE I TRIED.
};
sdk.sendRequest('users/create.json', 'POST', data, false, callback);
function AppcView() {
var ti = require('ui/common/ti');
var self = new ti.View();
var lbl = new ti.Label('appctv');
self.add(lbl);
return self;
}
@Victa
Victa / gist:1241810
Created September 26, 2011 07:53
screen flicker when using CSS3 transforms
li {
-webkit-transform:rotate(45deg);
-webkit-transform-style: preserve-3d; /* this line fixed the problem */
}
@jasonrudolph
jasonrudolph / programming-achievements-suggested-by-github-members.md
Created August 19, 2011 21:25
Programming Achievements: Suggestions from the GitHub Community

Programming Achievements: Suggestions from the GitHub Community

Last week, I published some ideas for leveling up as a developer. I put it on GitHub as a gist, and I encouraged people to modify the list to their liking:

Feel free to fork it and add more achievements. (Make sure they're measurable.)

Or, fork it and mark off the achievements you've already conquered. You might even flag the one that you're currently working on.

So far, more than 270 developers have forked this gist. Many devs have customized their forks as personal to-do lists (e.g., crossing off past achievements and highlighting the goal they're currently pursuing). A number of people have also added new achievements to their forks, indicating additional experiences that they