Skip to content

Instantly share code, notes, and snippets.

View alemohamad's full-sized avatar

Ale Mohamad ⌘ alemohamad

View GitHub Profile

Gulp

Gulp

gulpjs.com - Automate and enhance your workflow

Install Gulp

# Install Gulp globally
@alemohamad
alemohamad / expressjs.md
Last active August 29, 2015 14:17
Personal notes from the MongoDB University course "M101JS: MongoDB for Node.js Developers".

Install ExpressJS

$ npm install express

Install Consolidate & Swig (templates)

$ npm install consolidate

manifest.webapp

{
    "name": "Firefox App",
    "description": "App description",
    "icons": {
        "60": "/images/icon_60.png",
        "128": "/images/icon_128.png"
 },

PhoneGap CLI

# install
$ sudo npm install -g phonegap
$ phonegap -v

# create app
$ phonegap create myApp com.lynda.phonegapdemo Demo

Git Workflow

# 1. Let's create a new feature branch
$ git checkout -b <name_of_new_branch>

# 2. We do some work in that branch (with all it's commits)
$ git commit -m "Here's a message of what I did"

# 3. Push your branch work to GitHub (this is your backup)
@alemohamad
alemohamad / ios-phonegap-build.md
Created February 10, 2015 04:46
Getting everything for building iOS apps with build.phonegap.com

What's this for?

If you want to make iOS apps using PhoneGap via the great build.phonegap.com service, you will need to add a signing key and then install the signed IPA file to your iOS device.

What you need

To do so, you basically need 3 things:

  1. A certificate with private key (*.p12)
  2. A provisioning profile (*.mobileprovision)

YEOMAN

YEOMAN is the web's scaffolding tool for modern webapps.

Install NodeJS

Go to http://nodejs.org/ and download the installer.
Then to verify that NodeJS is installed, write the following:

Bower

Bower

Bower is a package manager for the web.

Install NodeJS

Go to http://nodejs.org/ and download the installer.
Then to verify that NodeJS is installed, write the following:

Basic Vi Commands

Modes & Controls

Command Description
vi filename Edit filename
vi -r filename Edit last version of filename after crash
vi + n filename Edit filename at end of file
vi + filename Edit filename at end of file