Skip to content

Instantly share code, notes, and snippets.

View BiosElement's full-sized avatar

William Chambers BiosElement

View GitHub Profile
@BiosElement
BiosElement / intensity_client.sh
Created February 19, 2010 07:54
Bash: Find path to script location.
#!/bin/bash
#==========================
# bash - find path to script
#==========================
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
# to get the path only - not the script name - add
path_only=`dirname "$abspath"`
echo $path_only
@BiosElement
BiosElement / bios-concepts.txt
Created February 16, 2011 19:15
A draft concept for a Pyramid application series.
BIOS
Basically Intelligent Operational Systems
-----------------------------------------
BIOS is intended to be a collection of applications designed to be built on
to create an entire website. It can be compared to Drupal.
bios_auth
---------
@BiosElement
BiosElement / gist:866598
Created March 11, 2011 21:16
Using ToscaWidgets with repoze.bfg
[pipeline:main]
pipeline =
egg:Paste#evalerror
tosca
egg:repoze.tm2#tm
sql
[filter:tosca]
use = egg:toscawidgets#middleware
toscawidgets.framework.default_view = mako
@BiosElement
BiosElement / Haven_Design_Document.rst
Created April 6, 2011 22:10
Draft of the Haven Design Document

Haven Design Document

Author: William Chambers

Overview

Haven is a web-based application to manage content for the CubeCreate game engine. Once complete, it should manage many kinds of content including:

  • User accounts
  • Game resources such as audio, maps & textures
@BiosElement
BiosElement / gist:912801
Created April 10, 2011 22:28
Concepts for the Future of CubeCreate

CubeCreate Future Concepts

Author: William Chambers
Discussion:https://convore.com/cubecreate/future-of-cubecreate/

Abstract

This is meant to be an overview of the various suggested directions of the CubeCreate Project. It's intended to help continue the thought process and aid in deciding the future of CubeCreate.

Options

#These are Global Settings for Residence.
Global:
# This loads the <language>.yml file in the Residence Language folder
# All Residence text comes from this file. (NOT DONE YET)
Language: English
# Wooden Axe is the default selection tool for Residence.
# You can change it to another item ID listed here: http://www.minecraftwiki.net/wiki/Data_values
SelectionToolId: 271
# This determins which tool you can use to see info on residences, default is String.
# Simply equip this tool and hit a location inside the residence and it will display the info for it.
@BiosElement
BiosElement / views.py
Created April 25, 2012 19:33
Pyramid default view
from pyramid.response import Response
from pyramid.view import view_config
from sqlalchemy.exc import DBAPIError
from .models import (
DBSession,
MyModel,
)
@BiosElement
BiosElement / apidocman.md
Last active December 17, 2015 23:19
API-based Document Management System Concept

API-based Document Management System

Written by William Chambers in consult with community members.

Concept

There exists a large number of Content Management Systems (CMS) with the goal of making it easier to publish content on the web. Many of these take different approaches with their design, programming language, philosophy and end result. This makes sense because the needs of an individual blogger and an editor for a major news room are very different and these need different solutions.

@BiosElement
BiosElement / gist:6673623
Created September 23, 2013 17:01
Embedding Google+ Comments for Ghost
<section class="comment">
<div class="g-comments" data-href="{{@blog.url}}{{url}}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</div>
<script async type="text/javascript" src="//apis.google.com/js/plusone.js?callback=gpcb"></script>
<noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>
</section>