Skip to content

Instantly share code, notes, and snippets.

View ericdouglas's full-sized avatar

Eric Douglas ericdouglas

View GitHub Profile
@ericdouglas
ericdouglas / sublime-tips.md
Last active November 28, 2016 12:15
Sublime Text Tips

Sublime Text Tips

Configure Escape for Vintageous:

Go to Preferences > Key Bindings

[
	{
        "keys": ["k", "j"],
@ericdouglas
ericdouglas / Javascript ISO country code to country name conversion
Created July 7, 2016 12:14 — forked from maephisto/Javascript ISO country code to country name conversion
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
@ericdouglas
ericdouglas / active.md
Created June 30, 2016 00:45 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 19 Jun 2015 15:17:38 GMT till Sun, 19 Jun 2016 15:17:38 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 635)
@ericdouglas
ericdouglas / browser-sync.md
Created June 20, 2016 12:58
BrowserSync static site

At the root folder: browser-sync start --server --files "*.html, resources/css/*.css"

@ericdouglas
ericdouglas / pair.md
Created May 9, 2016 18:49
Pair programming tools
@ericdouglas
ericdouglas / git-commands.md
Last active March 25, 2016 11:01
Git commands

Git Commands and Concepts

  • git config --global user.name "Your Name"
  • git config --global user.email "[email protected]"
  • git config --global core.editor vim
  • git init: Start a new git repository
  • git status (gst): See the project status
  • Working areas: .git directory, staging area and working directory. Image
  • git add <filename> (ga): Add a file to the Staging Area
  • git add . (gaa): Add all files to the Staging Area
@ericdouglas
ericdouglas / issues.md
Last active September 28, 2015 09:57
Project management with GitHub

Milestones

Every issue must have a milestone.

  1. "Main" milestone. Ex: Name of the feature - product release version (semver). Current sprint.
  2. "Constant" milestone. Ex: Next Tasks. Next sprints.
  3. "Limbo" milestone. Ex: Ideas. Nice to have/do

Labels

@ericdouglas
ericdouglas / common-http-status-code.md
Last active June 5, 2017 16:43
Common HTTP Status Code for REST APIs

HTTP Common Status Code

200 - OK
201 - Created  # Response to successful POST or PUT
302 - Found # Temporary redirect such as to /login
303 - See Other # Redirect back to page after successful login
304 - Not Modified
400 - Bad Request
401 - Unauthorized # Not logged in
@ericdouglas
ericdouglas / API.md
Last active September 16, 2015 22:12 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@ericdouglas
ericdouglas / linux-programs.md
Last active December 25, 2023 19:15
Linux Essential Programs

1. byzanz

Record gif screencast.

Usage

sudo apt-get install byzanz