Skip to content

Instantly share code, notes, and snippets.

View marios2019's full-sized avatar

Marios Loizou marios2019

  • Nicosia, Cyprus
View GitHub Profile
@marios2019
marios2019 / Caffe Ubuntu 15.10.md
Created July 15, 2020 11:17 — forked from wangruohui/Caffe Ubuntu 15.10.md
Compile and run Caffe on Ubuntu 15.10

Ubuntu 15.10 have been released for a couple of days. It is a bleeding-edge system coming with Linux kernel 4.2 and GCC 5. However, compiling and running Caffe on this new system is no longer as smooth as on earlier versions. I have done some research related to this issue and finally find a way out. I summarize it here in this short tutorial and I hope more people and enjoy this new system without breaking their works.

Install NVIDIA Driver

The latest NVIDIA driver is officially included in Ubuntu 15.10 repositories. One can install it directly via apt-get.

sudo apt-get install nvidia-352-updates nvidia-modprobe

The nvidia-modprobe utility is used to load NVIDIA kernel modules and create NVIDIA character device files automatically everytime your machine boots up.

Reboot your machine and verify everything works by issuing nvidia-smi or running deviceQuery in CUDA samples.

@marios2019
marios2019 / Caffe Ubuntu 15.10.md
Created July 15, 2020 11:17 — forked from wangruohui/Caffe Ubuntu 15.10.md
Compile and run Caffe on Ubuntu 15.10

Ubuntu 15.10 have been released for a couple of days. It is a bleeding-edge system coming with Linux kernel 4.2 and GCC 5. However, compiling and running Caffe on this new system is no longer as smooth as on earlier versions. I have done some research related to this issue and finally find a way out. I summarize it here in this short tutorial and I hope more people and enjoy this new system without breaking their works.

Install NVIDIA Driver

The latest NVIDIA driver is officially included in Ubuntu 15.10 repositories. One can install it directly via apt-get.

sudo apt-get install nvidia-352-updates nvidia-modprobe

The nvidia-modprobe utility is used to load NVIDIA kernel modules and create NVIDIA character device files automatically everytime your machine boots up.

Reboot your machine and verify everything works by issuing nvidia-smi or running deviceQuery in CUDA samples.

@marios2019
marios2019 / installing_caffe.md
Created July 15, 2020 11:17 — forked from nikitametha/installing_caffe.md
Installing Caffe on Ubuntu 16.04 and above (CPU ONLY, WITHOUT CUDA OR GPU SUPPORT)

This is a guide on how to install Caffe for Ubuntu 16.04 and above, without GPU support (No CUDA required).

Prerequisites:

OpenCV

sudo apt-get install libopencv-dev python-opencv

OpenBLAS OR Atlas

@marios2019
marios2019 / installing_caffe.md
Created July 15, 2020 11:17 — forked from nikitametha/installing_caffe.md
Installing Caffe on Ubuntu 16.04 and above (CPU ONLY, WITHOUT CUDA OR GPU SUPPORT)

This is a guide on how to install Caffe for Ubuntu 16.04 and above, without GPU support (No CUDA required).

Prerequisites:

OpenCV

sudo apt-get install libopencv-dev python-opencv

OpenBLAS OR Atlas

@marios2019
marios2019 / cuda_installation_on_ubuntu_18.04
Created December 18, 2018 11:16 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
using UnityEngine;
using System.Collections;
public class SmartWall : MonoBehaviour {
private Vector3 agent;
private bool coroutineFlag = true, moveTargetFlag = true;
private Vector3 initialPosition, targetPosition;
// Use this for initialization
void Start () {
@marios2019
marios2019 / BezierCurve.cs
Last active November 5, 2021 17:50
Unity Implementation of De Casteljau algorithm
using UnityEngine;
using System.Collections.Generic;
// Class that implements the deCasteljau algorithm for
// computing the value of a Bezier curve of arbitrary
// degree
public class BezierCurve
{
// Calculate value of Bezier curve
public static Vector3 DeCasteljau(int degree, float u, List<Vector3> controlPoints)