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
function cross(o, a, b) { return (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x); } | |
function sortPoint(points) { | |
points.sort(function(a, b) { | |
return a.x == b.x ? a.y - b.y : a.x - b.x; | |
}); | |
} | |
function convexHull(points, animation, animationConvex) { | |
var lower = [], upper = []; |
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 | |
# -------------------------------------------- | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gc="git commit -m " | |
alias gp="git push github" | |
alias gs="git status" | |
alias nah="git reset --hard; git clean -df;" | |
# -------------------------------------------- |
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
$.ajax({ | |
type: "GET", | |
url: "", | |
dataType: "json", | |
success: function(data){ | |
console.log(data); | |
} | |
}); |