Skip to content

Instantly share code, notes, and snippets.

View saibotsivad's full-sized avatar
💖
JavaScript

Tobias Davis saibotsivad

💖
JavaScript
View GitHub Profile

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@saibotsivad
saibotsivad / .gitconfig
Last active December 5, 2016 15:28
Mac .profile settings for bash
[color]
sh = auto
ui = auto
pager = true
[user]
name = User Name
email = email@domain.com
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[core]
@saibotsivad
saibotsivad / indentation.md
Last active December 1, 2016 15:13
The right way to indent

The "correct" way to indent

The issue of tabs-vs-spaces is a long and revered Flame War, so I don't think I'll be changing any minds with what I can write on the topic.

However, it's what I use in all the code that I personally write, and any projects I make public use it.

When to tab

@adeekshith
adeekshith / .git-commit-template.txt
Last active February 21, 2024 12:06 — forked from Linell/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23

Code project conversion funnel

A page-rank-like approach to scoring code libraries for quality and dependability. This is a quick-pass attempt at translating metrics we have readily available in the code community into a conversion funnel that might be familiar to marketers.

Conversion funnel equivalent Metric Description
awareness github stars Equivalent of "likes", but only slightly better than visits (it's possible to have many stars per one visitor). This metric only proves awareness, no causal relationship to actual interest, "real" popularity, code quality, trust, intent to use, or advancement in the conversion funnel.
interest dependents Dependants are a sign of awareness and commitment from the authors that chose to depend on the library, but no correlation to actual usage, commitment from upstream implementors and users to use the dependent, and is just as likely to represent herd mentality or a reaction to recent awareness as it is to be a p
@jonschlinkert
jonschlinkert / strategic-control-point-index.md
Last active February 3, 2018 05:59
This is inspired by the book "The Profit Zone". It's been something like 20 years since I read that book, but I've used this index to guide many of the business and investment decisions I've made since that time.

Strategic control point index

Businesses with high strategic control have more sustainable profitability, stronger competitive advantage, and higher valuations. Many business hit multiple strategic control points, and it's possible for businesses to combine multiple control points, even low control, to achieve a much greater level of strategic control in aggregate.

High strategic control:

  • 10 — Monopoly, patent, own the standard
  • 9 — Control of value chain
  • 8 — Control of supply, string of superdominant positions
  • 7 — Control of distribution, owning the customer relationship, owning customer information flow
@Rich-Harris
Rich-Harris / README.md
Last active July 28, 2017 13:24
Bare imports in manifest

A hastily-written strawman for how bare imports could be resolved in browsers — see this convo.

@TehShrike
TehShrike / covenant-vows.md
Created August 9, 2017 21:33
Covenant Vows
  1. Do you believe the Bible, consisting of the Old and New Testaments, to be the inspired and inerrant Word of God, and its doctrine of salvation through faith in Jesus Christ to be the perfect and only true way for a man to be saved? Do you?
  2. Do you confess that because of your sinfulness, you abhor and humble yourself before God, and that you trust for salvation, not in yourself, but in the Lord Jesus Christ alone? Do you?
  3. Do you acknowledge Jesus Christ as your sovereign Lord, and do you promise, in reliance on the grace of God, to serve Him with all that is in you, to forsake the world, to mortify the deeds of the flesh, and to lead a godly life? Do you?
  4. Will you be a faithful member of this congregation, share in its worship and ministry through your prayers and gifts as you are able, offer your study and service, and so fulfill your calling to be a disciple of Jesus Christ? Will you?
  5. Will you devote yourself to the church’s teaching and fellowship, to the breaking of bread and the pra
@saibotsivad
saibotsivad / README.md
Last active January 29, 2018 17:40
Better Web Styles