I hereby claim:
- I am abisz on github.
- I am simon_rsp (https://keybase.io/simon_rsp) on keybase.
- I have a public key ASB3LFS-HnRtTQpEoIfXMBM7JuZlKEuAh4kvWlDWr54dcAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# creating an artificial target function | |
# in a real machine learning application this would, of course, be unkown | |
target <- function(x) { | |
if (x[1] + x[2] > -5) { | |
return(-1) | |
} else { | |
return(1) | |
} | |
} |
$routeProvider.when('details/:id', { | |
templateUrl: 'partials/details.html', | |
controller: 'DetailController' | |
}); | |
myApp.controller('DetailController', ['$scope', '$routeParams', function($scope, $routeParams){ | |
$scope.message = "Your ID is " + $routeParams.id; | |
}]); |
myApp.config('$routeProvider', function($routeProvider) { | |
$routeProvider. | |
when('/first', { | |
templateUrl : 'partials/first.html' | |
controller: "FirstController" | |
}). | |
when('/second', { | |
templateUrl: 'partials/second.html' | |
controller: "SecondController" | |
}). |
//if user is logged in the login link (last child in the primary menu) shouldn't be visible | |
body.logged-in ul#primary-menu{ | |
li:last-child{ | |
display:none; | |
} | |
//second last is now the last child | |
li:nth-last-child(2) a{ | |
border-bottom: none; | |
} | |
} |
wp_enqueue_style('fontawesome', "<a href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css</a>"); |