Skip to content

Instantly share code, notes, and snippets.

View kfarr's full-sized avatar

Kieran Farr kfarr

View GitHub Profile
@kfarr
kfarr / GitHub profile widget.markdown
Created March 6, 2016 23:50
GitHub profile widget
@kfarr
kfarr / aframe-grid-boxes.html
Created December 8, 2016 00:57
Make a set of cubes that represent segments of a 3d grid
<!-- requires aframe and d3 java script includes -->
<a-scene id="my-scene" antialias='true'>
<a-assets>
<a-mixin id="grid-cube" geometry="primitive: box; width: 0.50; height: 0.50; depth: 0.50"></a-mixin>
<a-mixin id="grid-cube-hovered" material="color: magenta"></a-mixin>
<a-mixin id="grid-cube-selected" material="color: cyan"></a-mixin>
<a-mixin id="highlight">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>videojs-vr example</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
@kfarr
kfarr / autostart
Last active December 31, 2018 01:46
Raspberry Pi Kiosk Mode Autostart (for BabyPi) path here: /home/pi/.config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
point-rpi
@chromium-browser --incognito --kiosk https://babypi.glitch.me
@kfarr
kfarr / prompt-aframe-component-doc.txt
Created May 3, 2023 05:11
GPT Prompt for creating A-Frame component documentation
Here is an example of simple documentation of an A-Frame component:
## aframe-gridhelper-component
A GridHelper component for [A-Frame](https://aframe.io).
### Properties
| Property | Description | Default Value |
| ---------------- | ----------- | ------------- |
| size | | 5 |