Skip to content

Instantly share code, notes, and snippets.

View DeMarko's full-sized avatar
🏠
Working from home

Dannel Jurado DeMarko

🏠
Working from home
View GitHub Profile
@DeMarko
DeMarko / javascript.haml
Created March 20, 2024 21:28
I don't think this is what you're supposed to do, it feels criminal
-# this does NOT work
- content_for :javascripts do
:javascript
alert(1);
- if should_render_console_log
console.log('butt');
-# this works and I hate it
- console_log_stmt = should_render_console_log ? "console.log('butt');" : ""
- content_for :javascripts do
diff --git a/app_admin/simple_contacts/sites/admin/templates/orders/detail.j2 b/app_admin/simple_contacts/sites/admin/templates/orders/detail.j2
index dfbff27a1..3eba8e178 100644
--- a/app_admin/simple_contacts/sites/admin/templates/orders/detail.j2
+++ b/app_admin/simple_contacts/sites/admin/templates/orders/detail.j2
@@ -1,5 +1,6 @@
{% import "macros.j2" as macros %}
{% extends "base.j2" %}
+{% block title %}Order {{ order.order_no }}{% endblock %}
{% block content %}
{% include "orders/modal-send-shipping-confirmation.j2" %}
diff --git a/app_admin/client/lib/holidays.js b/app_admin/client/lib/holidays.js
index adae7bfcb..7b586e084 100644
--- a/app_admin/client/lib/holidays.js
+++ b/app_admin/client/lib/holidays.js
@@ -111,8 +111,10 @@ export const isMidweekHoliday = () => {
isHoliday = true;
}
/* adds 1 day padding to midweek holidays so day before holiday also
- triggers holiday delay messaging. */
- if (holiday.subtract(1, 'days').format('LLLL') === today.format('LLLL')) {
diff --git a/app_website/server/routes/lib/endpoint.js b/app_website/server/routes/lib/endpoint.js
index 939bd418a..3ff80b6d8 100644
--- a/app_website/server/routes/lib/endpoint.js
+++ b/app_website/server/routes/lib/endpoint.js
@@ -14,10 +14,11 @@ import util from '../../util';
import type { Device } from '../../util';
type Query = { [string]: string | void };
+type Headers = { [string]: string | void };
type SafeRequest<Body, Params> = {|

Shorter version

The Spaces Between is dedicated to providing a harassment-free experience for everyone, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of participants in any form.

This code of conduct applies to all The Spaces Between spaces, including our Slack and games/events organized through our Slack, both online and off. Anyone who violates this code of conduct may be sanctioned or expelled from these spaces at the discretion of the Slack owners (@vogon, @demarko).

Some The Spaces Between spaces may have additional rules in place, which will be made clearly available to participants. Participants are responsible for knowing and abiding by these rules.

Longer version

The Spaces Between is dedicated to providing a harassment-free experience for everyone. We do not tolerate harassment of participants in any form.

@DeMarko
DeMarko / gist:e7f201ec65186cfc4989
Created September 18, 2014 18:39
NetrunnerDB C&D

To anyone at Fantasy Flight whom it may concern:

I'll be honest, I can't say that I'm happy about writing this but I feel like I can't communicate with anyone at Fantasy Flight without putting words into this box.

I'm really disappointed with how FFG has dealt with this NetrunnerDB situation. I'm really into Netrunner, really, really into it. I think it's one of the best games that has been released this side of the decade.

One of the things that drew me to Netrunner was the amazing community that has embraced it. The previous card game community I was a part of was Magic: the Gathering and it never felt friendly or welcoming, just competitive and toxic, I eventually just stopped participating because across several states in different environments it still felt the same and I couldn't put up with it anymore.

I love the Netrunner community so much that I help run a meetup (@thelocalmeta on Twitter) and have previously written you about trying to set up our own tournament (with a tournament kit). You said

#!/usr/bin/env ruby
require 'rubygems'
require 'open-uri'
require 'json'
worldcup_url = 'http://footballdb.herokuapp.com/api/v1/event/world.2014/round/'
round_token = 'today'
if ARGV.first
if ARGV.first.to_i > 20
@DeMarko
DeMarko / old_aar.js
Created March 13, 2014 04:41
This was the JS that was embedded in the old Access-A-Ride Reservation page. All of the inputs were checked client-side and never server-side
document.myForm.cmbPCA.value = '1';document.myForm.cmbPCA.disabled = false;document.myForm.chkAnimal.checked = false;document.myForm.chkAnimal.disabled = true;document.myForm.cmbXWide.value = 'No';
function cmdSubmit_OnClick() {
document.myForm.txtEquipment.value = getSelected(document.myForm.lstEquipment);
var myDate = new Date();
myDate.setDate(myDate.getDate());
var myHour = myDate.getHours();
var myTripDate = new Date(document.myForm.cmbTripDate.value);

Keybase proof

I hereby claim:

  • I am DeMarko on github.
  • I am DeMarko (https://keybase.io/DeMarko) on keybase.
  • I have a public key whose fingerprint is 6014 4C00 7666 2B79 79D5 A28C 8E6A 7BE1 AE85 07CE

To claim this, I am signing this object:

@DeMarko
DeMarko / 00_netrunner_inserts.md
Last active April 28, 2019 23:59
Netrunner Data Pack and Expansion Inserts
Title Have It? Transcribed Content
What Lies Ahead X X Whizzard
Trace Amount X Not transcribing Excerpt from Android: Free Fall
Cyber Exodus X X Chaos Theory
A Study in Static X Not transcribing Excerpt from Android: Golem (The Identity Trilogy)
Humanity's Shadow X X Andromeda
Future Proof X Not transcribing Excerpt from Android: Strange Flesh
Creation and Control X X / X Thomas Haas / Rielle "Kit" Peddler
Opening Moves X X Press Release / For Immediate Release