Skip to content

Instantly share code, notes, and snippets.

View Morgul's full-sized avatar
🎮
Being Awesome

Christopher S. Case Morgul

🎮
Being Awesome
View GitHub Profile
@Morgul
Morgul / ex_nihilo.stl
Created May 24, 2022 02:36
Ship Models
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Morgul
Morgul / app.vue
Created December 11, 2018 02:57
Vetur Bug
<!--------------------------------------------------------------------------------------------------------------------->
<!-- App -->
<!--------------------------------------------------------------------------------------------------------------------->
<template>
<div id="app">
<site-header></site-header>
<router-view></router-view>
</div>
</template>
@Morgul
Morgul / .sassrc.js
Last active April 23, 2018 22:37
Sass configuration for Bootstrap and Parcel
const path = require('path');
const cwd = process.cwd();
module.exports = {
"includePaths": [
path.resolve(cwd, 'node_modules')
]
};
@Morgul
Morgul / proposal.md
Last active January 6, 2016 16:03
TrivialModels API

Proposal for TrivialModels API

We've got a lot of choices for how we implement TrivialModels. This is my attempt to make it through some of them.

ES6 class-based syntax

import { Model, types, drivers } from 'trivialmodels';

class UserModel extends Model
@Morgul
Morgul / vueLoader.js
Created September 26, 2015 16:18
Vuejs Component Template loader
//----------------------------------------------------------------------------------------------------------------------
/// A simple template loader for Vue components (browserify or electron app)
///
/// @module
//----------------------------------------------------------------------------------------------------------------------
var fs = require('fs');
var path = require('path');
var Vue = require('../vendor/vue/dist/vue');
@Morgul
Morgul / Readme.md
Last active July 7, 2019 09:16
Rocket.Chat Docker deployment and update script

Rocket.Chat Docker Deployment

Setup

  1. Pull down all of the files from this gist.
  2. Update <<YOUR_URL_HERE>> in docker-compose.yml and <<YOUR_PROJECT_NAME_HERE>> in update.sh.
  3. Run ./update.sh.

From this point onward, you just run ./update.sh whenever you want to update your docker image. Alternatively, you can put the update script in a cron job, and update it however often you want.

@Morgul
Morgul / example.js
Last active August 29, 2015 14:15
My Perfect Programming Language
//----------------------------------------------------------------------------------------------------------------------
// General
//----------------------------------------------------------------------------------------------------------------------
// For the most part, it will look like javascript
var foo = "bar";
var bar = "foo";
if(foo == "baz")
{
@Morgul
Morgul / promise-proxy.js
Last active August 29, 2015 14:11
A promise wrapper for AngularJS.
// ---------------------------------------------------------------------------------------------------------------------
// PromiseProxy - A proxy object that wraps a promise, and exposes `pending`, `result` and `error` properties. This is
// most useful when setting results of promises on the scope directly, so you can work with them in your templates.
//
// @module promise-proxy.js
// ---------------------------------------------------------------------------------------------------------------------
function PromiseProxyFactory(promise)
{
var proxy = {
@Morgul
Morgul / Readme.md
Created December 10, 2014 18:36
OpenLayers3 Retina ImageVector Test

OpenLayers3 Retina ImageVector Test

These are the test files required to reproduce the issues found rendering VectorImage layers on Retina iPads. In short, the layers do not render.

Reproduction

In order to reproduce, you must have a 4th gen iPad (tested) or newer (not tested). You then should simply open the test site in safari, and you will not see the VectorImage layer render.

This code is taken from: http://openlayers.org/en/v3.0.0/examples/image-vector-layer.html.

@Morgul
Morgul / vector.erl
Last active August 29, 2015 14:05
[Proposal] Vector Library for Erlang, backed by Bullet Physics
%% @doc A module for working with vectors.
-module(vector).
% -------------------------------------------------------------------------
-export([]).
-record(vector, {
x :: float(),