A commit is REQUIRED to notify GitHub to create gh-pages for the forked repository.
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
Install openssh-server
in ubuntu:
sudo apt-get install openssh-server
then, connect with putty via SSH in windows.
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
angular.module("testModule", []) | |
// syntax: module.directive("namespaceName", factory) | |
// factory will be invoked once by $compiler to create a directive for the first time match happens | |
// and invoked via $inject.invoke makes it injectable just like a controller. | |
.directive("testDirective", function directiveFactory($log) { | |
var directiveDefinitionObject = {}; | |
return directiveDefinitionObject; | |
// or return a constructor function |
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
// MAP INFO | |
MAP_WIDTH = 300; | |
MAP_HEIGHT = 300; | |
MAP_BORDER = 0; | |
PORTRAIT_DIMENSION = 30; | |
LANDSCAPE_DIMENSION = 30; | |
CELL_WIDTH = MAP_WIDTH / PORTRAIT_DIMENSION; | |
CELL_HEIGTH = MAP_HEIGHT / LANDSCAPE_DIMENSION; | |
// CANVAS_INFO |
###Install SSH server on ubuntu
-
Open terminal:
ctrl + alt + t
-
Install SSH Server:
sudo apt-get install openssh-server
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
// 有近百名学生选修了某们课程,他们来源不同的专业班级,按班级,学号顺序打印学生的班级名称,学号和姓名。 | |
#include <stdio.h> | |
#include <string.h> | |
#define N 5 | |
#define LENGTH 10 | |
char sName[N][LENGTH], sID[N][LENGTH], sClass[N][LENGTH]; | |
void s(); |
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
body { | |
padding: 0; | |
margin: 0 1%; | |
line-height: 1.5; | |
text-align: justify; | |
} | |
div { | |
margin: 0px; | |
padding: 0px; | |
} |