This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
#!/usr/bin/python | |
#-*-coding:utf-8-*- | |
import smtplib | |
from email.mime.text import MIMEText | |
_user = "78713865@qq.com" | |
_pwd = "授权码" #需要到qq邮箱里面,设置-》账户中设置 | |
_to = "78713865@qq.com" | |
This file contains hidden or 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
<button ng-init="num=0; classes=['btn btn-success', 'btn btn-primary','btn btn-warning'] " ng-click="num = num + 1" ng-class="classes[num % classes.length]">Test </button> | |
<button id="btn" ng-click="toggle = !toggle" ng-class="{'red' : toggle}">Change Class</button> |
This file contains hidden or 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 ng-repeat="(fIndex, f) in foos"> | |
<div> | |
<div ng-repeat="b in foos.bars"> | |
<a ng-click="addSomething(fIndex)">Add Something</a> | |
</div> | |
</div> | |
</div> | |
<tr ng-repeat="space in spaces"> |
This file contains hidden or 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
Method #1: /etc/init.d/apache2 command examples | |
$ sudo /etc/init.d/apache2 start | |
$ sudo /etc/init.d/apache2 restart | |
$ sudo /etc/init.d/apache2 stop | |
Method #2: service command examples | |
$ sudo service apache2 restart | |
Method #3: upstart command examples | |
$ sudo start apache2 |
This file contains hidden or 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
# -*- coding: utf-8 -*- |