Skip to content

Instantly share code, notes, and snippets.

View YaleHuang's full-sized avatar

Yale YaleHuang

  • Trantect
  • Nanjing, China
View GitHub Profile
@YaleHuang
YaleHuang / 0_reuse_code.js
Created September 28, 2016 04:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
MyCtrl = ($scope) ->
$scope.currentPage = 0
$scope.pageSize = 20
$scope.data = []
$scope.numberOfPages = ->
Math.ceil $scope.data.length / $scope.pageSize
i = 0
while i < 45