Skip to content

Instantly share code, notes, and snippets.

View de1mat's full-sized avatar

Matt Delmarter de1mat

View GitHub Profile
@de1mat
de1mat / tailwind.config.js
Created November 7, 2024 13:59 — forked from cvan/tailwind.config.js
tailwind CSS breakpoints (including iPhone 11 Pro Max)
// References used:
// - https://yesviz.com/devices.php
// - https://ricostacruz.com/til/css-media-query-breakpoints
// - https://tailwindcss.com/docs/responsive-design/#customizing-breakpoints
screens: {
'2xs': { min: '300px' },
xs: { max: '575px' }, // Mobile (iPhone 3 - iPhone XS Max).
sm: { min: '576px', max: '897px' }, // Mobile (matches max: iPhone 11 Pro Max landscape @ 896px).
md: { min: '898px', max: '1199px' }, // Tablet (matches max: iPad Pro @ 1112px).
lg: { min: '1200px' }, // Desktop smallest.
@de1mat
de1mat / cursorrules.html
Created August 21, 2024 20:03 — forked from artsparkAI/cursorrules.html
example of cursorrules (ignore .html extension, just for highlighting)
You are a world-class Staff Engineer in React, Typescript, Next.js and Tailwind CSS. Your role is to generate complete,
functional front-end code based on the user's specifications. Adhere to these guidelines:
<CleanCode>
Don't Repeat Yourself (DRY)
Duplication of code can make code very difficult to maintain. Any change in logic can make the code prone to bugs or can
make the code change difficult. This can be fixed by doing code reuse (DRY Principle).
The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation
@de1mat
de1mat / GitCommitEmoji.md
Created September 3, 2023 20:13 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:
@de1mat
de1mat / ConventionalCommitsEmoji.md
Created September 3, 2023 20:12 — forked from parmentf/ConventionalCommitsEmoji.md
Emoji for Conventional Commits
Type Emoji code
feat ✨ :sparkles:
fix πŸ› :bug:
docs πŸ“š :books:
style πŸ’Ž :gem:
refactor πŸ”¨ :hammer:
perf πŸš€ :rocket:
test 🚨 :rotating_light:
build πŸ“¦ :package:
@de1mat
de1mat / commit-emojis.md
Created September 3, 2023 20:09 — forked from georgekrax/commit-emojis.md
List of emojis for GitHub commit messages
Emoji Purpose MD Markup Prefix
πŸ“„ Generic message :page_facing_up:
πŸ“ Improve the format / structure of the code / files :triangular_ruler: [IMPROVE]:
⚑ Improve performance :zap: [IMPROVE]:
πŸš€ Improve something (anything) :rocket: [IMPROVE]:
πŸ“ Write docs :memo: [PROD]:
πŸ’‘ New idea
@de1mat
de1mat / semantic-commit-messages-with-emojis.md
Created September 3, 2023 20:04 — forked from alpteo/semantic-commit-messages-with-emojis.md
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue
@de1mat
de1mat / semantic-commit-messages-with-emojis.md
Created September 3, 2023 20:04 — forked from alpteo/semantic-commit-messages-with-emojis.md
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue
@de1mat
de1mat / conventional_commit_messages.md
Created February 22, 2023 22:18 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@de1mat
de1mat / hyperloop.js
Created January 23, 2023 06:23 — forked from m1ga/hyperloop.js
Appcelerator Titanium - Share data with other apps #appcelerator #titanium #hyperloop
// share items e.g. String with other apps
if (OS_IOS) {
//
// Hyperloop for iOS
//
var UIActivityView = require('UIKit/UIActivityViewController')
var TiApp = require('Titanium/TiApp');
var uiv = UIActivityView.alloc().initWithActivityItemsApplicationActivities(["www.google.com"],null);
TiApp.app().showModalController(uiv, true);

Using JSDOC-Based TypeScript

Get Started

Choose your editor

  • WebStorm, Rider
    • Partial support, not enough intelli hints
    • Toggle on TypeScript language service
  • VSCode