Skip to content

Instantly share code, notes, and snippets.

CODE IGNITER

USE PLURAL NAMES for Database TABLES, CONTROLLERS. USE SINGULAR NAMES for MODELS.

Each model is a class models/post.php --singular version

GIT

Create local branch

git checkout -b branch_name

List all remote and local branches

git branch -a
@artieziff
artieziff / 0_reuse_code.js
Created October 30, 2013 15:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@artieziff
artieziff / mongodb.md
Created October 29, 2013 23:46
MongoDb & Python Essentials

##MONGODB & PYTHON

###Ubuntu Install

sudo apt-get install mongodb
pip install pymongo

Table - Collection
Column - Property
Row - Document

###CSS3 Animation Properties

  -webkit-animation-name: left-to-right;
  -webkit-animation-duration: 2s;
  -webkit-animation-timing-function:ease;
  -webkit-animation-delay: 0s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  -webkit-animation-play-state: running;*
 -webkit-animation: left-to-right 2s ease 0s infinite alternate;

###Django base project commands

djr --settings=project_name.settings.development
Carousel (Scroll On Hover)
http://manos.malihu.gr/jquery-thumbnail-scroller/
http://rascarlito.free.fr/hoverscroll/
http://jquery-plugins.net/any-list-scroller-jquery-plugin-to-scroll-lists
http://jquery-plugins.net/jscarousel-jquery-content-slider

###JQUERY Cycler Custom Titles

var titles = ['Features', 'Specifications'];

$(function() {
    $('#bContent').cycle({
        fx: 'scrollHorz',
        speed: 300,
        timeout:     0,
 pager: '#bNav',

###ANGULAR.JS

<html ng-app>

###Data Binding

<input type="text" ng-model="yourModel">