Skip to content

Instantly share code, notes, and snippets.

@fourseven
fourseven / prompt.txt
Created November 8, 2023 21:33
Write Like an Amazonian Goal Review Prompt
Please evaluate the provided user goals using the "Write Like an Amazonian" principles. For each goal, apply the following criteria to enhance clarity, conciseness, and persuasiveness:
Brevity Check: Ensure each goal is stated in under 30 words. Simplify complex sentences and break them into multiple goals if necessary.
Precision Assessment: Modify each goal to remove ambiguity and ensure precision. Replace vague terms with specific, descriptive language that accurately conveys the intent.
Structure Review: Examine the structure of the goals. Recommend a detailed outline that clearly defines the steps or components of each goal for better planning and execution.
Audience Alignment: Adjust the language of the goals to be audience-specific. Ensure that the goals are written considering the audience's perspective, knowledge level, and needs.
Objectivity Enhancement: Revisit the goals to identify subjective statements. Replace them with objective, fact-based language, and support the goals with data where possib

Keybase proof

I hereby claim:

  • I am fourseven on github.
  • I am four_seven (https://keybase.io/four_seven) on keybase.
  • I have a public key ASB8x_osf4BNH2Mkm-m_uaAl5xP7LUDeXx9UKQJSsjwhPQo

To claim this, I am signing this object:

tap "heroku/brew"
tap "homebrew/apache"
tap "homebrew/science"
tap "homebrew/core"
tap "homebrew/php"
tap "homebrew/bundle"
tap "homebrew/services"
tap "caskroom/fonts"
tap "caskroom/versions"
tap "caskroom/cask"
@fourseven
fourseven / aws_iot.ino
Created July 26, 2017 21:03
Code for my temperature sensor
#include <Arduino.h>
#include <Stream.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
// DHT22 - https://learn.adafruit.com/dht, https://github.com/adafruit/DHT-sensor-library
#include "DHT.h"
//AWS
#include "sha256.h"
@fourseven
fourseven / classes.rb
Created June 27, 2013 01:44
Notes/examples for better code
class MailerContact
def initialize(first_name, last_name)
@first_name, @last_name = first_name, last_name
end
def full_name
"#{@first_name} #{@last_name}"
end
end
@fourseven
fourseven / dabblet.css
Created March 19, 2013 21:56
border-box
/**
* border-box
*/
* {box-sizing: border-box;}
.non-border-box {
box-sizing: content-box;
}
div {
border: 2px solid blue;
@fourseven
fourseven / dabblet.css
Created March 11, 2013 21:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.parent {
position:relative;
border: 1px solid red;
}
.child {
@fourseven
fourseven / retina-sprites.css.scss
Created August 16, 2012 09:19
A compass function to handle spriting with normal and retina images automatically.
// @Mixin Retina Sprite Sass
// ======================================================
// This requires two folders full of *.png files, normal and then
// 2x resolution. Please ensure that they have the same number and names
// of files.
// I've written this based off other efforts on the web, but none did
// both background-images and a set of sprites automatically.
// Still very much a work in progress.
// To use see the bottom three lines.

Preface:

It's useful to know the memory characteristics of different Ruby versions.

2.0 Uses less memory, but is slower - GC blocks while running

2.1 Generational GC - more memory, but faster GC meaning faster apps (split: old / young heap spaces)

2.2 Introduces incremental GC - marks in steps, reducing stop-the-world time, making OOB GC redundant.

Before
Hash Semi Join (cost=1374.03..1852.31 rows=59 width=62) (actual time=22.141..23.774 rows=1 loops=1)
After
Nested Loop Anti Join (cost=19.22..235.45 rows=33 width=62) (actual time=0.046..0.047 rows=1 loops=1)