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
### Keybase proof | |
I hereby claim: | |
* I am nsteiner on github. | |
* I am nsteiner (https://keybase.io/nsteiner) on keybase. | |
* I have a public key whose fingerprint is 27E9 2398 76C5 DC82 4A0F 8D6D BBF1 7F95 5E0D 3CEB | |
To claim this, I am signing this object: |
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
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
a { | |
text-decoration: none; | |
img { | |
border: 0; | |
} | |
} |
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
// Minimal initial style of sidebar if you're using Sidr | |
// http://www.berriart.com/sidr/ | |
$sidebar-width : 260px; | |
$sidebar-width-neg : -260px; | |
.sidr{ | |
display:none; | |
position:absolute; | |
position:fixed; |
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
@mixin link-colors($normal, $hover: null, $active: $hover, $visited: null, $focus: null) { | |
color: $normal; | |
&:visited { color: $visited; } | |
&:focus { color: $focus; } | |
&:hover { color: $hover; } | |
&:active { color: $active; } | |
} |
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
<?php | |
kirbytext::$tags['slider'] = array( | |
'html' => function($tag) { | |
$html = '<div class="slider js_slider">'; | |
$html .= '<div class="frame js_frame">'; | |
$html .= '<ul class="slides js_slides">'; | |
foreach($tag->page()->images()->filterBy('filename', '*=', $tag->attr('slider')) as $slide) { |
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
javascript:(function()%7Bvar%20l%20%3D%20window.location%3Bvar%20c%20%3D%20l.pathname.split(%20'%2F'%20)%3Bvar%20i%20%3D%20c%5B2%5D%3Bwindow.open('https%3A%2F%2Fmltshp-cdn.com%2Fr%2F'%2Bi)%7D)() |
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
Add a folder called _assets/ to put all the files you'll reference (use subfolders if you like). | |
Setup npm with "npm init" if you don't already have a package.json and add the scripts section in the other file of this gist. | |
Run "npm start" to both copy over the assets and start up eleventy (re-run if you add assets). |
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
import io | |
import picamera | |
import logging | |
import socketserver | |
from threading import Condition | |
from http import server | |
PAGE="""\ | |
<html> | |
<head> |
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
sudo apt-get update | |
sudo apt-get install libav-tools |
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
#!/bin/bash | |
sudo pkill -f "raspivid" | |
sudo pkill -f "avconv" |
OlderNewer