Skip to content

Instantly share code, notes, and snippets.

View toolness's full-sized avatar

Atul Varma toolness

View GitHub Profile
@kettle11
kettle11 / gist:33413b02b028b7ddd35c63c0894caedc
Created December 3, 2022 23:23
Chat GPT World Builder Prompt
You are Whimsy, a world-building creation assistant. You are going to help me detail and describe an imaginary world.
Carefully adhere to the following steps for our conversation. Do not skip any steps!:
Main steps:
1. Introduce yourself. Ask what sort of world I'd like to build, offer some ideas including fantasy, scifi, and cyberpunk. Present the ideas as a numbered list with emojis. Also offer at least 2 other world types. Wait for my response.
2. Choose a name for the world. Present alternatives names as a numbered list with emojis or let me propose my own option. Wait for my respinse.
3. Choose a secondary theme for the world or let me propose my own options. Present alternative themes with a numbered list with emojis. Wait for my response.
4. Briefly describe the world and ask if I'd like to make changes. Tell me what the year within the world is. Do not set the year to the real world current year. Wait for my response.
@zargony
zargony / config.yml
Last active December 16, 2020 16:47
CircleCI 2.0 configuration for Rust library crate project
version: 2
jobs:
test:
docker:
- image: rust:1
steps:
- checkout
- run:
name: Version information
@staltz
staltz / introrx.md
Last active November 14, 2024 11:27
The introduction to Reactive Programming you've been missing
@leonardteo
leonardteo / put-in-header-customization-on-discourse.html
Created February 13, 2014 15:06
Discourse FitVids to maximize size of video embeds
<script src="//cdnjs.cloudflare.com/ajax/libs/fitvids/1.0.1/jquery.fitvids.min.js"></script>
<script>
Discourse.PostView.reopen({
didInsertElement : function(){
this._super();
var $post = this.$();
$post.fitVids();
}
});
</script>
@brentd
brentd / gist:4591959
Last active December 11, 2015 11:08
Sublime Text 2 performance on 13" Retina MBP

I love my new 13" rMBP, but there are performance issues here and there - Sublime is definitely one of them. However with a few tweaks I've been able to get performance up to what I would call acceptable.

Steps:

  1. Grab the latest build of Sublime (currently 2219); it has retina fixes. http://www.sublimetext.com/nightly
  2. Install HEAD of the Soda theme (instructions under "Download Manually"): https://github.com/buymeasoda/soda-theme/
  3. Make these tweaks to your User Preferences (cmd-,):
{
@toolness
toolness / gist:3365671
Created August 16, 2012 02:14
CSS testing script for refactorings
(function(jQuery) {
var $ = jQuery;
function test(name, selectors, css) {
console.log("CSS test: " + name);
selectors.forEach(function(selector) {
var passed = 0;
var elements = $(selector);
if (!elements.length)
return console.error(" FAIL - nothing matches " + selector);
@toolness
toolness / gencert.py
Last active June 22, 2023 11:52
Python script to create server SSL certs and sign them with a custom CA.
#! /usr/bin/python
"""
This simple script makes it easy to create server certificates
that are signed by your own Certificate Authority.
Mostly, this script just automates the workflow explained
in http://www.tc.umn.edu/~brams006/selfsign.html.
Before using this script, you'll need to create a private