npm package.json basic file structure/example

In case you ever need a basic npm package.json file, here is a basic skeleton you can use:

{
  "name": "Demo App",
  "version": "1.0.0",
  "description": "Demo app by @jahller",
  "main": "index.html",
  "dependencies": {
    "bootstrap": "3.3.6"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jahller/tictactoe.git"
  },
  "author": "Jan Heller - @jahller",
  "license": "UNLICENSED",
  "bugs": {
    "url": "https://github.com/jahller/tictactoe/issues"
  },
  "homepage": "https://github.com/jahller/tictactoe#readme"
}

The same can also be achieved by running the command npm init in your project folder.
This will start an interactive prompt with questions that will result in the output of a package.json in your project folder.

How to install iTerm with oh-my-zsh on Mac OSX

The standard OSX terminal is not really the optimal solution when working a lot with the terminal.
Because of that I would recommend to install iTerm2 in combination with oh-my-zsh to have a better user experience.

  1. Download iTerm here and install it
  2. Download oh-my-zsh via curl
    sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
  3. Open iTerm and access the options via i + CMD
  4. Go to the Color tab and select a Color presets that you like. I prefer Solarized Dark.

    Where to change the colors in iTerm2
    Where to change the colors in iTerm2
  5. Download a Powerline compatible font to work with the oh-my-zsh theme Agnostic. I prefer Meslo LG M DZ Regular for Powerline.
    You can download it here
  6. Go back to the iTerm preferences and to the Text tab.
    Change the Font and the Non-ASCII Font options to your new font.

    Where to change the font in iTerm2
    Where to change the font in iTerm2
  7. Now change the oh-my-zsh theme to Agnostic by editing the file
    ~/.zshrc via nano or vim.
    Change
    ZSH_THEME=”robbyrussell”
    to
    ZSH_THEME=”agnoster”
    Or to any oh-my-zsh theme you like.
    You can find a huge collection here.
  8. Restart iTerm and your .zshrc changes should be applied.
    Done. If everything went as expected your iTerm should look like this:

    Agnoster theme for oh-my-zsh
    Agnoster theme for oh-my-zsh

Web Development/Programming Music

Every developer has their own recipe to concentrate. Some say music is distracting, others can’t live without it.

For me the later is definitely the case.
From time to time I just love to go into a tunnel and shut everything out with some good tunes.

Not any kind of music though. Lyrics are definitely distracting and pop music would go on my nerves within a minute.

For me Deep House or Electronic Ambient works the best.
Music that is neither annoying, nor irritating.
YouTube is my goto-source to find new tracks from that genre.
It is simply amazing how much variety is available.
From single tracks to full albums to custom mixes.

Here are some mixes that really help me:

Poptartpete_-_Palmas
Poptartpete – Palmas
PoptartPete - Morning Blunt
PoptartPete – Morning Blunt
Neat Beats - Sleep Cycles
Neat Beats – Sleep Cycles
Shlohmo - Bad Vibes
Shlohmo – Bad Vibes