I hereby claim:
- I am mgonto on github.
- I am mgonto (https://keybase.io/mgonto) on keybase.
- I have a public key whose fingerprint is 7EB8 3BE2 F562 C3BF FCDF 6E21 3DC1 36F4 164A E6CC
To claim this, I am signing this object:
| // Assigning promise | |
| // GET /api/v1/users | |
| var users = Restangular.all('users').getList(); | |
| // GET /api/v1/users/123 | |
| var user = Restangular.one('users',123).get(); | |
| // Assigning value | |
| // GET /api/v1/users | |
| Restangular.all('users').getList().success(function(users) { |
| angular.module('sample-app', ['angularytics']) | |
| .config(function(AngularyticsProvider) { | |
| AngularyticsProvider.setEventHandlers(['Console', 'Google']); | |
| }) | |
| .run(function(Angularytics) { | |
| Angularytics.init(); | |
| }); |
| <label>Click here to submit buddy</label> | |
| <input type="submit" | |
| ng-click="doSomething() | trackEvent:'Home Category':'Button clicked'" /> |
| angular.controller('MainCtrl', function(Angularytics, $scope) { | |
| $scope.click = function() { | |
| Angularytics.trackEvent("Home Category", "Button clicked"); | |
| } | |
| }); |
| def heapList(heap: H): List[A] = { | |
| if (isEmpty(heap)) { | |
| Nil | |
| } else { | |
| findMin(heap) :: heapList(deleteMin(heap)) | |
| } | |
| } | |
| property("Added and removed elements") = forAll { (h: H, values: List[A]) => | |
| val listOfElemsBefore = heapList(h) |
| def max_contiguous_submatrix_n3(m) | |
| rows = m.count | |
| cols = rows ? m.first.count : 0 | |
| vps = Array.new(rows) | |
| for i in 0..rows | |
| vps[i] = Array.new(cols, 0) | |
| end | |
| for j in 0...cols |
I hereby claim:
To claim this, I am signing this object:
| <div data-repat="app in AppTypes" data-class="app.name"> | |
| <div data-class="{selected: app.selected}"></div> | |
| <a on-click="apptypeselect(app)">{{app.name}}</a> | |
| </div> |
| var request = new Request(); | |
| request.url = bla | |
| request.header = { | |
| // If he used session | |
| Authorization: 'Bearer ' + A0Session.store.idToken | |
| } | |
| request.make(); |
| var request = new Request(); | |
| request.url = bla; | |
| // Header sent automatically | |
| request.make(); |