Skip to content

Instantly share code, notes, and snippets.

@blackspike
blackspike / index.php
Created January 26, 2014 14:53
Google spreadsheets as a CMS
<html>
<head>
<title>Welcome!</title>
<style>
body {font-family: arial; background: lightgrey}
table {margin: 30px auto; background: white; border-collapse: collapse}
tr:nth-child(odd) {background-color: #eee;}
th {text-align: left; padding: 20px 20px; cursor: pointer}
th:hover {background: white}
We couldn’t find that file to show.
<?php
return array(
array (
'name' => 'ArsTechnica',
'title' => 'Ars Technica',
'type' => 'xml',
'color' => '#ff4e00',
'col' => '2',
'row' => '1',
'mob' => '4',
for f in "$@"
do
FILE_NAME=$(basename "$f" .blend)
NOW="$(date +"%Y-%m-%d %H-%M-%S")"
/Applications/Blender.app/Contents/MacOS/blender "$f" -b -o "//$FILE_NAME $NOW " -f 1
done
Select attribute value:
title*=\s*".*?"
"@attributes": {
"version": "1.0"
},
"spike": {
"title": "World",
"link": "https:\/\/readspike.com\/",
"description": "Readspike",
"lastBuildDate": "Tue, 04 Apr 2017 04:54:01 -0500",
"spikeSource": [
nativefier --width "450" --height "600" -n "Alexa" --icon "google-play-music.icns" --single-instance "https://alexa.amazon.co.uk/"
@blackspike
blackspike / computer-list.json
Last active November 13, 2019 13:40
Test computer list
[
{
"computerName": "Computer 1",
"computerStatus": "neutral"
},
{
"computerName": "Computer 2",
"computerStatus": "success"
},
{
{
"appName": "Appname",
"brandName": "Brandname",
"brandColor": "#323232",
"logo": "svg-logo.svg"
"strapLine": "Env. Custom. Strapline.",
},
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.