Skip to content

Instantly share code, notes, and snippets.

View trinonsense's full-sized avatar

Tri Noensie trinonsense

  • Indeed
  • Austin, TX
  • 14:34 (UTC -05:00)
View GitHub Profile
// to be used with: https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija?hl=en
// thank you: http://youmightnotneedjquery.com/
onPageLoad(buyTickets(4, 'https://www.ticketfly.com/purchase/event/1828188'));
function buyTickets(amount, ticketHref) {
if (location.href !== ticketHref) return;
@trinonsense
trinonsense / react-style-guide.md
Created November 24, 2015 20:51
React Style Guide

React Style Guide

Component Method Order

  • Order based on component's life cycle
  • propType and render at the beginning of the component helps to quickly scan the usage of the component
  • use 3 newlines to space method/field types. no need for the newlines if the component has few methods/fields.
var React = require('react');
@trinonsense
trinonsense / project-review.md
Created May 15, 2014 22:28
Reviewing project collaboratively before elaboration and development

Project Review

goals

  • collaborative, iterative, and continuous project cycle with marketing, product, and design
  • context!
    • feature context
    • technical context
  • benefits:
    • for development and design team: comprehensive context to use in elaboration for more accurate stories and estimations
  • for product and marketing team: shorter feedback loop of project discussions from development and design team to create better business strategies and quicker business decisions for the product
/*
* Set up factories, then create them in tests with (for example):
*
* LineItemFactory();
*
* Or with attributes / overrides:
*
* LineItemFactory({
* "id": 123,
* "order": OrderFactory({"firstName": "Example Associated Record Override"}),
@trinonsense
trinonsense / cp-horizontal-flush-panel.md
Last active January 2, 2016 15:29
CSS Pattern: Horizontal Flush Panel

CSS Pattern: Horizontal Flush Panel

A panel with horizontically aligned two child elements completely flushed to the right or left

Horizontal Flush

A child element stay flushed to its side even if the other child element doesn't exist

Horizontal Flush left

@trinonsense
trinonsense / sass-modules.md
Last active April 17, 2016 14:27
SASS Modules

SASS Modules

Goals

  • modularity
  • encapsulation
  • predictability
  • extensibility
  • integrability
  • explicitness
@trinonsense
trinonsense / package-control-user.json
Last active December 21, 2015 21:58
SublimeText Installed Packages
{
"auto_upgrade_last_run": null,
"installed_packages": [
"AdvancedNewFile",
"Backbone.js",
"CSScomb",
"Emmet",
"Git",
"Handlebars",
"HTML5",
@trinonsense
trinonsense / daily-st-shortcuts.md
Last active December 21, 2015 05:38
Daily Sublime Text Shortcuts
  • ⌘ + ⇧ + P pure magic
  • ⌘ + L select line - Repeat to select next lines
  • ⌘ + D select word - Repeat select others occurrences
  • ⌘ + ⇧ + D duplicate line
  • ⌘ + R go to function
  • ^ + ⇧ + K delete line
  • ^ + G go to line
  • ⌘ + ↩ insert line after
  • ⌘ + ⇧ + ↩ insert line before
  • ⌘ + ⌃ + up/down move line up/down