Skip to content

Instantly share code, notes, and snippets.

View GeorgeWL's full-sized avatar

George W Langham GeorgeWL

View GitHub Profile
@GeorgeWL
GeorgeWL / footer.css
Created June 16, 2016 15:23
footer.css
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@GeorgeWL
GeorgeWL / RecordingsController.cs
Created November 29, 2016 16:37
this is the Recordings Controller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Forest.Data;
using Forest.Services;
using Forest.Services.Service;
using Forest.Services.IService;
@GeorgeWL
GeorgeWL / MusicAdminControler.cs
Created November 29, 2016 16:43
not working with 5 errors.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Forest.Data;
using Forest.Services;
using Forest.Services.Service;
using Forest.Services.IService;
@model IEnumerable<Forest.Data.Music_category>
@{
ViewBag.Title = "Categories";
}
<h2>Categories</h2>
<p>
@Html.ActionLink("Create New", "Create")
@GeorgeWL
GeorgeWL / intentandsecurity.md
Created March 5, 2017 23:19
This file is a plaintext Statement of Intent & Data Security Declaration

##What will I be asked to do?

Participants will be asked to complete the questionnaire online. Participants will be asked to answer a number of questions about themselves and their use of the web, graphs, charts, and assistive technologies. This will include questions about their level of sight.

##Time Commitment:

This is an online study that you can complete at your own pace, if the site is kept open, the answers will be remembered until the browser or tab is closed. This will take approximately 15 minutes to complete.

##Am I obligated to take part?

atom-sync-settings
@GeorgeWL
GeorgeWL / html4-html5.md
Last active March 22, 2017 21:58
for my report I need to detail the tools considered. Does this little bit make sense?

#3.1 Tools Considered

Below are the development tools and languages which shall be considered for the development

###HTML4

HTML4 is no longer supported by all major browsers, except for limited backwards compatibility, it has been superseded almost entirely by the newer version of HTML.

Sound is not handled particularly well by HTML4, requiring either Flash or Direct Download rather than buffering of sound.

@GeorgeWL
GeorgeWL / audioLib.js
Created March 27, 2017 14:39
abstracted version of code seems to not work for web audio
function audioLoader(fileDirectory) {
var soundObj = {};
soundObj.fileDirectory = fileDirectory; //my guess is it's here the issue
var getSound = new XMLHttpRequest();
getSound.open("GET", soundObj.fileDirectory, true);
// library object
getSound.responseType = "arraybuffer";
// a buffer stores data temporarily in the browser, for low-latency, prevents having to wait for load to play sound
getSound.onload = function() {
@GeorgeWL
GeorgeWL / Seed.json
Created April 27, 2017 14:37
E.g seed code, creates giant valleys and mountains
{"useCaves":true,"useStrongholds":true,"useVillages":true,"useMineShafts":true,"useTemples":true,"useRavines":true,"useMonuments":true,"useMansions":true,"useLavaOceans":false,"useWaterLakes":true,"useLavaLakes":true,"useDungeons":true,"fixedBiome":-3,"biomeSize":4,"seaLevel":63,"riverSize":4,"waterLakeChance":4,"lavaLakeChance":80,"dungeonChance":8,"dirtSize":33,"dirtCount":10,"dirtMinHeight":0,"dirtMaxHeight":255,"gravelSize":33,"gravelCount":8,"gravelMinHeight":0,"gravelMaxHeight":255,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":80,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"dioriteMaxHeight":80,"andesiteSize":33,"andesiteCount":10,"andesiteMinHeight":0,"andesiteMaxHeight":80,"coalSize":17,"coalCount":20,"coalMinHeight":0,"coalMaxHeight":128,"ironSize":9,"ironCount":20,"ironMinHeight":0,"ironMaxHeight":64,"goldSize":9,"goldCount":2,"goldMinHeight":0,"goldMaxHeight":32,"redstoneSize":8,"redstoneCount":8,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":8,"