Skip to content

Instantly share code, notes, and snippets.

View Cosrnos's full-sized avatar
👋
Looking for work!

Alex Cosrnos

👋
Looking for work!
  • USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cosrnos on github.
  • I am cosrnos (https://keybase.io/cosrnos) on keybase.
  • I have a public key ASCqVfAc0gZ62BfQ8hWrrvDR8DmPVUHcTlkUd_xxzrK6TAo

To claim this, I am signing this object:

@Cosrnos
Cosrnos / reconfig.js
Last active August 29, 2015 14:07
Recursively Reads a config folder then returns it as an object
/*
* Asynchronously and Recursively reads a configuration folder and builds a configuration object.
*/
// Libs
var RSVP = require('rsvp');
var fs = require('fs');
var _ = require('underscore');
var loq = require('lo-q');
@Cosrnos
Cosrnos / lynx_node_logger.js
Last active August 29, 2015 14:05
A lightweight node log library
var clc = require('cli-color');
var _ = require('underscore');
var _default_log = console.log.bind(console);
var _log_type_array = [];
var log_type = function() {
var name = 'internal';
var prefix_text = '';
var default_handler = function() {
@Cosrnos
Cosrnos / Lynx.Logger.js
Created August 3, 2014 00:33
I may have gone a little overboard with the logger...
/* Lynx Logger
* A powerful logging library
* Deps: underscorejs
*
* Created by Cosrnos
*/
(function() {
var _defaultLog = console.log.bind(console);
var logTypeArray = [];
@Cosrnos
Cosrnos / SampleComponent.js
Created February 12, 2014 02:31
LynxJS Sample Component
/*
* Lynx Project
* Started August 2013
* ------------------------------------------------------
* This file is covered under the LynxJS Game Library
* License. Please read license.txt for more information
* on usage of this library.
* ------------------------------------------------------
* Component Name: SampleComponent
* Author: Cosrnos
@Cosrnos
Cosrnos / Aura Dailies [Untested]
Created February 5, 2014 17:22
An untested code snipped that enables daily scripting in Aura. Add to BaseScript.cs
public void CompleteDaily(WorldClient client, string name)
{
var varName = "daily_" + name;
client.Character.Vars.Perm[varName] = DateTime.Now.ToString();
}
public bool DailyDone(WorldClient client, string name)
{
var varName = "daily_" + name;
if (client.Character.Vars.Perm[varName] == null)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Aura.World.Util
{
public class QuadTree
{