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
public class BankAccount { | |
private String ownerName; | |
private double balance; | |
private boolean isEnoughMoney(double amount) { | |
return balance > amount; | |
} | |
public void deposit(double amount) { |
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
var myBankAccount = { | |
balance: 0, | |
ownerName: "", | |
isEnoughMoney: function (amount) { | |
return balance > amount; | |
}, | |
deposit: function (amount) { | |
this.balance += amount; | |
}, | |
withdraw: function (amount) { |
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
function account() { | |
var balance = 10.; | |
function getBalance() { | |
return balance; | |
} | |
return { | |
getBalance: getBalance | |
} |
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
var myVar = (function(){ | |
//Code goes here | |
return { | |
//fields and methods | |
} | |
})(); |
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
var BankAccountModule = (function () { | |
var balance = 0.; | |
function _isEnoughMoney(amount) { | |
return balance > amount; | |
} | |
function deposit(amount) { | |
balance += amount; | |
} | |
function withdraw(amount) { |
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
<!-- Adapted from http://getbootstrap.com/getting-started/ --> | |
<!-- Bootstrap template using CDN and no IE8 support --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> |
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
git clone https://github.com/twbs/bootstrap.git |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-asterisk green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-plus green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-euro green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-minus green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-cloud green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-envelope green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-search green"></i></div> | |
<div class="col-xs-6 col-md-3"><i class="glyphicon glyphicon-heart green"></i></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
<div class="container"> | |
<div class="row"> | |
<div class="col-md-3"> | |
<div class="row"> | |
<div class="col-md-6"><i class="glyphicon glyphicon-cloud blue"></i></div> | |
<div class="col-md-6"><i class="glyphicon glyphicon-envelope blue"></i></div> | |
<div class="col-md-6"><i class="glyphicon glyphicon-search blue"></i></div> | |
</div> <!-- /.row --> | |
</div> <!-- /.col-md-3 --> | |
<div class="col-md-3"><i class="glyphicon glyphicon-asterisk green"></i></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
<div class="container"> | |
<div class="row"> | |
<div class="col-md-3"> | |
<div class="row"> | |
<div class="col-md-6"><i class="glyphicon glyphicon-cloud blue"></i></div> | |
<div class="col-md-6"><i class="glyphicon glyphicon-envelope blue"></i></div> | |
<div class="col-md-6"><i class="glyphicon glyphicon-search blue"></i></div> | |
</div> <!-- /.row --> | |
</div> <!-- /.col-md-3 --> | |
<div class="col-md-3"><i class="glyphicon glyphicon-asterisk green"></i></div> |
OlderNewer