This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
#!comment: This is a list of the top 100,000 most frequently-used English words | |
#!comment: according to Wiktionary. | |
#!comment: | |
#!comment: It was compiled in August 2005 and coalesced into a handy list for | |
#!comment: use in John the Ripper. | |
#!comment: | |
#!comment: | |
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT | |
#!comment: | |
#!comment: Sources: |
package com.willvuong.foodie.controller; | |
import com.willvuong.foodie.dao.PlaceRepository; | |
import com.willvuong.foodie.domain.Place; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
/* | |
* Angular LoadScript | |
* | |
* Let angular load and execute lazy javascript from partials! | |
* | |
* This module is the result of this issue: "1.2.0rc1 regression: script tags not loaded via ngInclude" | |
* Issue url: https://github.com/angular/angular.js/issues/3756 | |
* | |
* As of Angular 1.2.0 the ngInclude scripts does not permit execution of javascript from included partials. | |
* This little module execute code inside script tags with "javascript-lazy" attribute after partial loading, |
var selectionRank = function(array, rank){ | |
// randomly select a pivot | |
var pivotIndex = Math.floor( (Math.random() * array.length) ); | |
var pivot = array[pivotIndex]; | |
// left array stores the smallest <rank> elements in the array | |
var leftArr = []; | |
var rightArr = []; | |
// partition into left and right arrays | |
for (var i = 0; i < array.length; i++){ |
var orderZlist = function(){ | |
var zIndexArray = []; | |
$.each($('*'), function(key, value) { | |
var index_current = parseInt($(this).css("z-index"), 10); | |
if (index_current){ | |
zIndexArray.push({elem:value, z: index_current}); | |
} | |
}); | |
zIndexArray.sort(function(a,b){ | |
if(a.z > b.z){return 1} |