Skip to content

Instantly share code, notes, and snippets.

@dniku
dniku / Dell XPS 15 9560 Manjaro Setup instructions.md
Last active November 26, 2018 13:24 — forked from meirbon/Dell XPS 15 9560 Manjaro Setup instructions
Small, quick guide to set up Manjaro on the XPS 15 9560
  1. First of all of course get Manjaro: https://manjaro.org/get-manjaro/

  2. I recommend using Etcher to copy the image to your USB: https://etcher.io/

  3. Before installing make sure:

@dniku
dniku / _service.md
Last active December 31, 2015 17:19 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
double svm_predict_probability(
const svm_model *model, const svm_node *x, double *prob_estimates)
{
if ((model->param.svm_type == C_SVC || model->param.svm_type == NU_SVC) &&
model->probA!=NULL && model->probB!=NULL)
{
int i;
int nr_class = model->nr_class;
double *dec_values = Malloc(double, nr_class*(nr_class-1)/2);
svm_predict_values(model, x, dec_values);