Skip to content

Instantly share code, notes, and snippets.

View Azerothian's full-sized avatar
♾️
Over thinking, over analyzing separates the body from the mind

Matthew Mckenzie Azerothian

♾️
Over thinking, over analyzing separates the body from the mind
View GitHub Profile
broknbottle commented on Dec 14, 2013
I resolved this issue similar to @jazz1138
I did a little research and it appears the issue is a known/documented bug in pulseaudio
ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html#_issues_in_pulseaudio
Enable Desktop via Big Picture Settings and then Exit > Return to Desktop. Then bring up a terminal and set your password if you haven't already,
passwd
var Speaker,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Speaker = (function() {
function Speaker() {
this.IstheSpeakerAnIdiot = __bind(this.IstheSpeakerAnIdiot, this);
this.id10t = true;
}
var Speaker,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Speaker = (function() {
function Speaker() {
this.IstheSpeakerAnIdiot = __bind(this.IstheSpeakerAnIdiot, this);
this.id10t = true;
}
class Speaker
constructor: () ->
@id10t = true;
IstheSpeakerAnIdiot: () =>
return @id10t;
@Azerothian
Azerothian / gist:7854358
Created December 8, 2013 07:39
catch example that will maintain the original stack when a exception has been caught and is being rethrown
public void Test()
{
try {
throw new Exception();
} catch (Exception ex)
{
// do logging or what ever
throw;
}
}
@Azerothian
Azerothian / controller.php
Created March 16, 2012 02:39
concrete5 vanilla intergration 1.0.2
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
class VanillaForumsPackage extends Package {
protected $pkgHandle = 'vanilla_forums';
protected $appVersionRequired = '5.5';
protected $pkgVersion = '1.0.2';
public function getPackageDescription() {
@Azerothian
Azerothian / gist:1897053
Created February 24, 2012 03:18
Axiom Patch - Added Tao v4.0 Project files
Index: Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj
===================================================================
--- Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj (revision 0)
+++ Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj (working copy)
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+ <PropertyGroup>
+ <ProjectType>Local</ProjectType>
+ <ProductVersion>8.0.50727</ProductVersion>
@Azerothian
Azerothian / gist:1645029
Created January 20, 2012 04:03
Bitmap To texture
public unsafe static void BitmapToTexture(Bitmap bitmap, Texture texture)
{
var bmp = bitmap.Clone(new System.Drawing.Rectangle(0, 0, bitmap.Width, bitmap.Height), System.Drawing.Imaging.PixelFormat.Format32bppArgb);
var bitmapData = bmp.LockBits(
new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height),
ImageLockMode.ReadOnly,
bmp.PixelFormat);
@Azerothian
Azerothian / gist:1620645
Created January 16, 2012 12:28
Intersections
RaySceneQuery SceneQuery = _root.SceneManager.CreateRayQuery(
_camera.GetCameraToViewportRay(
inputReader.AbsoluteMouseX / (float)_renderWindow.Width,
inputReader.AbsoluteMouseY / (float)_renderWindow.Height)
,
0x40000000
);
foreach (RaySceneQueryResultEntry result in SceneQuery.Execute())
{
@Azerothian
Azerothian / gist:1620120
Created January 16, 2012 10:14
Inputreader Win32
// Will capture the Inputs correctly // Mouse will dissappear
_inputReader.Initialize(_renderWindow, true, true, false, true);
_inputReader.UseKeyboardEvents = false;
_inputReader.UseMouseEvents = false;
// Mouse will not dissappear // will not fire off click events
_inputReader.Initialize(_renderWindow, true, true, false, true);