This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function LocalePlugin (builder) { | |
builder.hook('GraphQLObjectType:fields:field', (field, build, ctx) => { | |
const { pgSql: sql, inflection, options } = build | |
const { | |
scope: { pgFieldIntrospection }, | |
addDataGenerator | |
} = ctx | |
if ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(Deno.args); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create or replace function set_timestamps() | |
returns trigger | |
as | |
$$ | |
begin | |
NEW.created_at = ( | |
case | |
when TG_OP = 'INSERT' then | |
NOW() | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create or replace function app.graphql_subscription() returns trigger as | |
$$ | |
declare | |
v_process_new bool = (TG_OP = 'INSERT' OR TG_OP = 'UPDATE'); | |
v_process_old bool = (TG_OP = 'UPDATE' OR TG_OP = 'DELETE'); | |
v_event text = TG_ARGV[0]; | |
v_topic_template text = TG_ARGV[1]; | |
v_attribute text = TG_ARGV[2]; | |
v_record record; | |
v_sub text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pathExtra = require('path-extra') | |
const { exec } = require('child_process') | |
const DIRECTIONS = { | |
UP: 'UP', | |
DOWN: 'DOWN' | |
} | |
const _isInstructionClose = (before, current) => { | |
const isSameEndTime = before.end >= current.start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trackNameUpdateInterval = 1000 | |
const retryInterval = 500 | |
const streamUrl = 'https://bhmnts.out.airtime.pro/bhmnts_a' | |
const metaUrl = 'https://bohem.herokuapp.com/metadata' | |
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( | |
navigator.userAgent | |
) | |
const audio = new Audio(streamUrl) |
NewerOlder