This file contains 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
import { | |
trigger, | |
transition, | |
style, | |
animate, | |
query, | |
group, | |
useAnimation, | |
animation | |
} from '@angular/animations'; |
This file contains 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
package kata | |
func Josephus(items []interface{}, k int) []interface{} { | |
out := []interface{}{} | |
cnt := 0 | |
last := 0 | |
for len(items) > 0 { | |
for i, _ := range items { | |
if i < last { |
This file contains 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
Homebrew build logs for libpng on macOS 10.11.6 | |
Build date: 2016-12-05 14:22:33 |
This file contains 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
app.factory('Preloader', ['$q', '$rootScope', | |
function( $q, $rootScope ) { | |
// I manage the preloading of file objects. Accepts an array of file URLs. | |
function Preloader( fileLocations ) { | |
// I am the file SRC values to preload. | |
this.fileLocations = fileLocations; | |
// As the files load, we'll need to keep track of the load/error | |
// counts when announing the progress on the loading. | |
this.fileCount = this.fileLocations.length; | |
this.loadCount = 0; |