Skip to content

Instantly share code, notes, and snippets.

View DeadSuperHero's full-sized avatar

Sean Tilley DeadSuperHero

View GitHub Profile
@DeadSuperHero
DeadSuperHero / doors.asc
Last active June 6, 2020 05:48
Door Switch / State function for AGS
// Note: this example assumes that you have a door object in your room with the ID of 0, or name of oDoor.
// Another assumption is that the WalkableArea value that connects the indoors and outdoors has an ID of 3
// Effectively, all this script does is checks and sets states based on when the player steps on a given region.
// Keep in mind that the Object Properties are prepared outside of this script. The properties are:
// "open", and "inside_building", both boolean values.
// These properties are set based on which region the player steps on.
// It's assumed that region 1 is inside the doorway, region 2 is outside it.
// Each region, upon being stepped on, switches itself off and turns on the other one
// while setting the "inside_building" state.
@DeadSuperHero
DeadSuperHero / ap_video.json
Created September 18, 2018 21:49
PeerTube - ActivityPub JSON output
{
"type":"Video",
"id":"https://peertube2.cpy.re/videos/watch/5a6133b8-3e0c-40dc-b859-69d0540c3fe5",
"name":"Big Buck Bunny","duration":"PT596S","uuid":"5a6133b8-3e0c-40dc-b859-69d0540c3fe5",
"tag":[
{
"type":"Hashtag",
"name":"blender"
}],
"category":
@DeadSuperHero
DeadSuperHero / personaLogin.js
Created July 19, 2013 19:27
Persona Login in my app automatically assumes error, even though the login is successful. What's wrong with my JS? :/
function personaLogin(url) {
navigator.id.get(function(assertion) {
if (assertion) {
// This code will be invoked once the user has successfully
// selected an email address they control to sign in with.
$.ajax({
url: '/users/sign_in',
type: "POST",
dataType: "json",
@DeadSuperHero
DeadSuperHero / gist:4353984
Created December 21, 2012 16:51
Error message with trying to get tentd-admin up and running on my Ubuntu 12.10 machine for local testing.
Using tentd (0.0.1) from git://github.com/tent/tentd.git (at master)
NoMethodError: undefined method `[]' for nil:NilClass
An error occurred while installing tentd (0.0.1), and Bundler cannot continue.
Make sure that `gem install tentd -v '0.0.1'` succeeds before bundling.
@DeadSuperHero
DeadSuperHero / gist:2408546
Created April 17, 2012 19:43
Diaspora Install.sh run error log
rake aborted!
/var/lib/gems/1.8/gems/heroku_san-2.1.1/lib/tasks.rb:112: syntax error, unexpected ':', expecting kEND
puts stage.push_config RACK_ENV: stage.name
^
(See full trace by running task with --trace)
Exiting
/var/lib/gems/1.8/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require': no such file to load -- /home/sean/Workspace/Rails/d-script/diasporaaa/config/initializers/secret_token.rb (LoadError)
from /var/lib/gems/1.8/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
from /var/lib/gems/1.8/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `load_dependency'
@DeadSuperHero
DeadSuperHero / application.yml
Created April 13, 2012 23:49
AppConfig Proposal #2
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
defaults: &defaults
######################################################
Environment Configuration
######################################################