Skip to content

Instantly share code, notes, and snippets.

Mx Corey Frang gnarf

Block or report user

Report or block gnarf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sidebar.cs
static void RenderAbilityStatus( GameObject Player, int xp, int yp, ScreenBuffer _Buffer )
{
if( Player.HasPart( "ActivatedAbilities" ) )
{
ActivatedAbilities pAA = Player.GetPart("ActivatedAbilities") as ActivatedAbilities;
if( pAA.AbilityByGuid != null )
if( pAA.AbilityByGuid.Count > 0 )
{
int x = xp;
@gnarf
gnarf / auto-readme-real-source.js
Last active Feb 18, 2019
An example of how to use storybook-addon-info with real source files and readme support
View auto-readme-real-source.js
const storyFiles = require.context('../src', true, /__stories__\/.+\.js$/)
const sources = require.context('!!raw-loader!../src', true,
/__stories__\/.+\.js$/)
const readme = require.context('!!raw-loader!../src', true, /README\.md$/)
const READMES = readme.keys().reduce((memo, key) => {
const [,baseName] = key.match(/^\.\/([^\/]+)\//)
memo[baseName] = readme(key)
return memo
}, {})
View gist:1c68513382e53b09772d
"detects no available moves": {
"comment": "The board looks like this:",
"boardDesc0": "123",
"boardDesc1": "231",
"boardDesc2": "312",
"state": {
@gnarf
gnarf / Vagrantfile
Last active Jun 30, 2018
multi-vagrant-ansible-setup
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
config_yml = YAML.load_file(File.open(File.expand_path(File.dirname(__FILE__)) + "/vagrant-config.yml"))
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
@gnarf
gnarf / test.js
Last active Sep 19, 2015 — forked from tbranyen/test.js
WebComponent Backbone-events like
View test.js
class CustomElement extends HTMLElement {
constructor() {
super();
}
attachedCallback() {
this.bindEvents();
}
detachedCallback() {
View gist:a59255719f0b06322d96
sh: napa: command not found
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.7.3
npm ERR! code ELIFECYCLE
npm ERR! ember-templates-loader@1.3.0 install: `napa`
npm ERR! Exit status 127
npm ERR!
View err.js
var clone = require("./").Clone.clone;
function errorLog(err) {
console.error(err);
}
// Look up this known commit.
function getCommit(repo) {
// Use a known commit sha from this repository.
return repo.getCommit("59b20b8d5c6ff8d09518454d4dd8b7b30f095ab5");
View 1-file.txt
foo bar
baz
qux
last line (there may or may not be a trailing newline after this line)
View gist:0a26d2e58952b459aa99
exports.up = function (knex) {
return knex.schema.createTable('list', function (t) {
t.increments('id');
t.integer('owner_id').notNullable();
t.text('name').notNullable();
t.timestamp('last_modified');
});
};
exports.down = function (knex) {
View gist:6283396
diff --git a/apps/sms/js/recipients.js b/apps/sms/js/recipients.js
index c5803d0..5e377c8 100644
--- a/apps/sms/js/recipients.js
+++ b/apps/sms/js/recipients.js
@@ -963,7 +963,11 @@
var dialogBody = document.createDocumentFragment();
if (recipient.type) {
var typeElement = document.createElement('span');
- navigator.mozL10n.localize(typeElement, recipient.type);
+ if (!navigator.mozL10n.get(recipient.type)) {
You can’t perform that action at this time.