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
| Point2D p1 = new Point2D.Double(10,20); | |
| Point2D p2 = new Point2D.Double(100,200); | |
| Rectangle2D rect = new Line2D.Double(p1, p2).getBounds2D(); | |
| //一般式直线方程 | |
| Double A = p2.getY() - p1.getY(); | |
| Double B = p1.getX() - p2.getX(); | |
| Double C = p2.getX() * p1.getY() - p1.getX() * p2.getY(); | |
| System.out.println(String.format("A=%s, B=%s, C=%s", A, B, C)); |
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
| <style type="text/css"> | |
| <!-- | |
| ol { | |
| counter-reset: item; | |
| margin-left: 0; | |
| padding-left: 0; | |
| } | |
| li { | |
| display: block; | |
| margin-bottom: .5em; |
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
| $http({ | |
| method : 'POST', | |
| url : 'process.php', | |
| data : $.param($scope.formData), // pass in data as strings | |
| headers : { 'Content-Type': 'application/x-www-form-urlencoded' } // set the headers so angular passing info as form data (not request payload) | |
| }) | |
| .success(function(data) { | |
| }); |
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
| http://subtlegradient.com/articles/2009/07/29/css_position_fixed_for_ie6.html | |
| /*Make position:fixed work in IE6!*/ | |
| .fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;} | |
| .fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;} | |
| .fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;} | |
| .fixed-right /* position fixed right */{position:fixed;right:0;left:auto;} | |
| * html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;} |
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
| Delta 119=CE Tau 60 II b (威胁等级 4) | |
| X: 66262101 | |
| Y: 69774966 | |
| 往左走大概2分钟的位置,会有一个往下走的洞,可以看到个科技箱,内有机器人科技! |
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
| 指定傳送晶片: | |
| 瞬間移動晶片: | |
| 高速移動晶片: | |
| B星盤(X -58270185 Y 63943278 ) | |
| Beta 60 Leo 271 VI (Lv:18)向左 | |
| 火箭跳躍晶片: | |
| R星盤(X 73225611 Y 70649384 ) |
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
| $.ajaxSetup({ | |
| contentType: "application/x-www-form-urlencoded; charset=utf-8" | |
| }); |
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
| git config --global user.name "Your Name" | |
| git config --global user.email [email protected] | |
| 全局的通过vim ~/.gitconfig来查看 | |
| git config user.name "Your Name" | |
| git config user.email [email protected] | |
| 局部的通过当前路径下的 .git/config文件来查看 | |
| 也可以修改提交的用户名和Email: | |
| git commit --amend --author='Your Name <[email protected]>' |
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
| var fs = require('fs'); | |
| var http = require('http'); | |
| var https = require('https'); | |
| var privateKey = fs.readFileSync('sslcert/server.key', 'utf8'); | |
| var certificate = fs.readFileSync('sslcert/server.crt', 'utf8'); | |
| var credentials = {key: privateKey, cert: certificate}; | |
| var express = require('express'); | |
| var app = express(); | |
| var httpServer; |
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
| $ git remote add origin https://git.oschina.net/miemiedev/fund.git | |
| $ git push -u origin master |
NewerOlder