-
function Player(n) { this.name = n; }
-
var fred = new Player("Fred");
-
var bob = new Player("Bob");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Image Carousel --> | |
<div id="myCarousel" class="carousel-slide"> | |
<div class="carousel-inner"> | |
<div class="item-active"><img src"images/.jpg"> | |
<div class="container-active"> | |
<div class="carousel-caption"> | |
<p><a href="#" class="btn-color-size"></a></p> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==Bootstrap Ver.3== | |
<!-- Nested Columns --> | |
<div class="row"> | |
<div class="col-md-9"> Col-1 | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="well">Nest Col-1</div> | |
</div> | |
<div class="col-md-6"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Funcationality of Controller --> | |
``` | |
def create | |
@current_user = User.find_by_login_and password( | |
params[:login], params[:password]) | |
if @current_user | |
session[:user_id] = @current_user.id | |
redirect_to XXX_path | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.element { | |
width: -webkit-calc(100% + 20px); | |
width: -moz-calc(100% + 20px); | |
width: calc(100% + 20px); | |
} | |
/* Example */ | |
img { | |
width: calc(25% - 20px); |
# Command 0
# 2to3 on command line
$ 2to3 -w file.py
# Command 1
# Importing modules
import math
# or, import one item
from math import sin
###RVM for Pythonistas, Virtualenv for Rubyists
For Python Developers:
virtualenv
,virtualenvwrapper
orBuildout
Note: envs = environments For Ruby Developers:rvm
####Installation #####Python
Info | Command |
---|---|
Install pip |
$ sudo pip install virtualenvwrapper |
git init
git add --all
git commit -m "initial commit"
git remote add origin git@github.com:user/git_name.git
git push -u origin master[or branch name]
git pull --rebase
-> if your branch is ahead by X ammount of commits
OlderNewer