You can use git submodule foreach
to handle a batch of submodules:
git submodule foreach git pull origin master
Or, update submodule one by one:
# go to submodule directory and update to latest.
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title></title> | |
<style type="text/css"> | |
*{ | |
margin: 0; | |
padding: 0; | |
} |
/[-\w\.]+@(?:[a-zA-Z0-9]+\.)*[a-zA-Z0-9]+/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>margin折叠测试题</title> | |
</head> | |
<body> | |
<h1>margin折叠测试题</h1> | |
<ul> |
<?php | |
$user = (object) array("name" => "vin", "title" => "unkown"); | |
echo $user->name; //vin | |
echo $user->title; //unkown |
html { | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); | |
zoom: 1; | |
} |
{ | |
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
@import url("http://fonts.googleapis.com/css?family=Roboto+Slab"); | |
/*@import url("http://fonts.googleapis.com/css?family=Droid+Serif");*/ | |
@import url("http://fonts.googleapis.com/css?family=Droid+Sans:400,700"); | |
@import url("http://fonts.googleapis.com/css?family=Droid+Sans+Mono"); | |
body, p, td { | |
font-family: "Droid Sans", Calibri, "Lucida Grande", sans-serif; |
You can use git submodule foreach
to handle a batch of submodules:
git submodule foreach git pull origin master
Or, update submodule one by one:
# go to submodule directory and update to latest.
| Left align | Right align | Center align |
|:-----------|------------:|:------------:|
| This | This | This
| column | column | column
| will | will | will
| be | be | be
| left | right | center
| aligned | aligned | aligned
Function | Defines |
---|---|
provider(name, Object OR constructor()) |
A configurable service with complex creation logic. If you pass an Object, it should have a function named $get that returns an instance of the service. Otherwise, Angular assumes you’ve passed a constructor that, when called, creates the instance. |
factory(name, $get Function()) |
A non-configurable service with complex creation logic. You specify a function that, when called, returns the service instance. You could think of this as provider(name, { $get: $getFunction() } ). |
service(name, constructor()) |
A non-configurable service with simple creation logic. Like the constructor option with provider, Angular calls it to create the service instance. |