Skip to content

Instantly share code, notes, and snippets.

@dlime
dlime / ubuntu_focal_dev_setup.sh
Created May 25, 2020 08:35 — forked from chillipeper/ubuntu_focal_dev_setup.sh
Ubuntu 20.04 Workstation Developer Setup --> Tmux + Vim | Python & Go
#!/bin/bash
# Update repos
sudo apt update
# Upgrade system to latest packages
sudo apt -y upgrade
# Install ubuntu packages
sudo apt install -y cmake vim git curl tmux pipenv
@dlime
dlime / simple_scrollbar_hover_effect.css
Created May 24, 2020 11:37 — forked from howar31/simple_scrollbar_hover_effect.css
Neat and clean scrollbar with hover transition effect CSS
// Scrollbar with Hover Transition Effect
.container::-webkit-scrollbar {
width: 14px;
}
.container::-webkit-scrollbar-thumb {
background-clip: content-box;
border: 4px solid transparent;
border-radius: 7px;
box-shadow: inset 0 0 0 10px;
}
@dlime
dlime / CMakeLists.txt
Last active May 12, 2023 13:36
Install Google Test and Google Mock on Ubuntu
cmake_minimum_required(VERSION 3.5)
project(example LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
@dlime
dlime / create_opencv_deb.sh
Last active December 1, 2023 11:17 — forked from dapperfu/opencv320.sh
Build .deb package for OpenCV 4 with Python3 bindings. Optimized for Raspberry PI deep learning purposes (NEON, VFPV3, Eigen3, TBB turned on).
#!/usr/bin/env bash
MAINTAINER="Dario Limongi"
VERSION=4.1.0
# Adapted from https://www.pyimagesearch.com/2018/09/26/install-opencv-4-on-your-raspberry-pi/
sudo apt update && sudo apt upgrade -y
sudo apt-get install -y \
build-essential ccache cmake unzip pkg-config curl \
libjpeg-dev libpng-dev libtiff-dev \
@dlime
dlime / burgerbot.rb
Last active September 17, 2015 13:03 — forked from daxadax/burgerbot.rb
burgerbot
#!/usr/bin/env ruby
# modified from https://gist.github.com/pbock/3ab260f3862c350e6b5f #
# Requires Firefox and Windows
require 'rubygems'
require 'watir-webdriver'
require 'win32/sound'
include Win32