Skip to content

Instantly share code, notes, and snippets.

View discarn8's full-sized avatar

discarn8 discarn8

View GitHub Profile
@mattharrison
mattharrison / loadnino.py
Last active August 27, 2021 16:36
Load nino dataset
# Data transformation from previous notebook
# col names in tao-all2.col from website
names = '''obs
year
month
day
date
latitude
longitude
zon.winds

Activities

Activity 1 - "Hello, World" of Computer Vision

You must change directory to the directory where GoCV has been installed, then you can run the code.

Windows

chdir %GOPATH%\src\gocv.io\x\gocv

go run cmd\hello\main.go

@GregHilston
GregHilston / test.ipynb
Created May 2, 2018 22:20
Testing hour gists handle ipynb files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydemia
pydemia / Cam_snapshot.py
Created December 7, 2017 13:48
Raspberry Pi
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 7 22:40:11 2017
@author: Young Ju Kim
"""
import time, pygame, matplotlib, math
import scipy as sp
@Brainiarc7
Brainiarc7 / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Last active December 31, 2023 02:19
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools

@up1
up1 / Dockerfile
Last active June 11, 2020 15:42
Docker with COBOL
FROM ubuntu:16.04
#update and get pre-requisites
RUN apt-get update && apt-get install -y \
open-cobol \
gcc
#copy file to image
COPY helloworld.cbl /helloworld.cbl
avconv -rtsp_transport tcp -i rtsp://localhost:5554/Streaming/channels/101 -c copy -map 0 -f segment -segment_time 120 "./security/capture2-%03d.mkv"
@import 'colors';
@import 'mixins';
section {
padding: 1em;
}
.color-1 {
color: $color1;
}
section {
padding: 1em;
}
.color-1 {
color: red;
}
.color-2 {
color: blue;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.