Skip to content

Instantly share code, notes, and snippets.

View amabes's full-sized avatar
🎯
Focusing

Alan Mabry amabes

🎯
Focusing
View GitHub Profile
@amabes
amabes / default.md
Created June 22, 2025 03:15 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@amabes
amabes / oocss-bem--airbnb.md
Created December 11, 2019 09:23
OOCSS and BEM (airbnb)

OOCSS and BEM

We encourage some combination of OOCSS and BEM for these reasons:

  • It helps create clear, strict relationships between CSS and HTML
  • It helps us create reusable, composable components
  • It allows for less nesting and lower specificity
  • It helps in building scalable stylesheets

OOCSS, or “Object Oriented CSS”, is an approach for writing CSS that encourages you to think about your stylesheets as a collection of “objects”: reusable, repeatable snippets that can be used independently throughout a website.

@amabes
amabes / countries-hash.js
Created December 15, 2018 19:07
Countries Object (ES6)
export const countries = {
AF: 'Afghanistan',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
AG: 'Antigua And Barbuda',
@amabes
amabes / .babelrc
Created April 17, 2018 23:47 — forked from thejmazz/.babelrc
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@amabes
amabes / Mock-FileList-for-Unit-Test-Angular2
Last active September 15, 2023 10:55
Simplified example to demonstrate how to Mock a FileList for unit testing purposes.
// Method to test
public uploadFileList(files: FileList) {
// whatever
}
// Test
it("uploadFileList", () => {
const blob = new Blob([""], { type: "text/html" });
blob["lastModifiedDate"] = "";
blob["name"] = "filename";
@amabes
amabes / accessories.liquid
Last active March 2, 2017 23:52 — forked from carolineschnapp/related-products.liquid
Products from Collection — to add to product.liquid
<!-- Forked from Caroline Schnapp -->
<!-- See this: https://docs.shopify.com/support/your-store/products/can-i-recommend-related-products#finding-a-relevant-collecitons -->
{% assign heading = 'Accessories' %}
{% assign collection_handle = 'Accessories' %}
{% assign same_vendor = false %} {% comment %} Make search more strigent {% endcomment %}
{% assign same_type = false %} {% comment %} Make search more strigent {% endcomment %}
{% assign collection = collections[:collection_handle] %}
{% assign found_a_collection = false %}