This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
Width=1296 | |
Height=972 | |
Fps=15 | |
Bitrate=2000 # In Kb/s | |
BitrateRaw=$((${Bitrate} * 1024)) | |
raspivid -t 0 -w ${Width} -h ${Height} -b ${BitrateRaw} -fps ${Fps} -ih -n -o - | \ | |
cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- fill-column: 40; -*- | |
def f(): | |
"""a a a a a a a a a a a a a a a a a a a | |
a a a a a a a a a a a a a a a a a a | |
a a a a a | |
""" | |
def f(): | |
"""a a a a a a a a a a a a a a a a a a a | |
a a a a a a a a a a a a a a a a | |
a a a a a a a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(4096, 2048); | |
// The background image must be the same size as the parameters | |
// into the size() method. In this program, the size of the image | |
// is 640 x 360 pixels. | |
background(0); | |
noStroke(); | |
noLoop(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert -bias 50% -morphology Convolve DoG:0,0,10 -threshold 40% source.png result.png | |
convert input.jpg \( -clone 0 -blur 0x100 \) \( -clone 0 -clone 1 +swap -compose mathematics -set option:compose:args "0,1,-1,0.5" -composite \) -delete 0,1 -threshold 40% result.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
{ | |
font-family: "Avenir Next", sans-serif; | |
} | |
div#wrapper | |
{ | |
max-width: 1024px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Maximize and restore window. | |
(defvar window-confs (make-hash-table)) | |
;; window-confs is equvalent to this: | |
;; | |
;; { frame1: {"zoomed": false, "conf": <some conf>}, | |
;; frame2: {"zoomed": true, "conf": <some other conf>} } | |
(defun save-window-conf () | |
"Save current window configuration of current frame." | |
(let ((this-frame (selected-frame)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLEARSCREEN. | |
//This is our countdown loop, which cycles from 10 to 0 | |
PRINT "Counting down:". | |
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO | |
{ | |
PRINT "..." + countdown. | |
WAIT 1. // pauses the script here for 1 second. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.results | |
{ | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
justify-content: space-around; | |
} | |
.result | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os | |
import numpy | |
import matplotlib | |
import matplotlib.font_manager as Fm | |
import matplotlib.backends.backend_pdf as PltPDF | |
from mpl_toolkits.mplot3d import Axes3D | |
def loadData(filename): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style> | |
:root | |
{ | |
--distance: 600px; | |
--angle: 30deg; |