Skip to content

Instantly share code, notes, and snippets.

input ReportPlayer {
 userId: ID!
 teamId: ID!
 matchId: ID
 source: ReportPlayerSource!
 message: String
}
enum ReportPlayerSource {
 PROFILE
@mastfissh
mastfissh / match_output.json
Last active August 29, 2019 11:51
GET /matches/:match_slug/teams/:team_slug/match_output
{
"match": {
"motivational_title": "Clean sheets",
"home_team_goals": 2,
"away_team_goals": 0,
"home_team_profile_picture": "https://someurl.com",
"away_team_profile_picture": null,
"position_group_name": "defensive",
"position_group_id": 4,
"is_home_team_player": false,
{
"id": "ranking_#{type}_#{position_group_id}",
"type": "rankings_list",
"size": "large",
"elevation": "none",
"data": {
"title": "Defenders",
"subtitle": "League Ranking",
"entries": [
{
--Drop views
DO
$$
DECLARE
rec record;
BEGIN
FOR rec IN
(select *, replace(table_schema, 'datalink_', '') as target_schema from information_schema.tables
where table_schema LIKE 'datalink_%')
const Undefined = new Proxy({}, {
get: function(target, name){
if (name == '$'){
return undefined
} else {
return Undefined;
}
}
});
let safeAccess = {
if (refund_method == 'Back To Original') {
payments.each do |payment|
paymentRefunder = new paymentRefunder(payment, cookie, currency)
paymentRefunder.attemptRefund(refundAmounts[payment.type])
end
return;
}
@mastfissh
mastfissh / output_log.txt
Created August 3, 2017 06:34 — forked from HugsLibRecordKeeper/output_log.txt
Rimworld output log published using HugsLib
Log uploaded on Thursday, August 03, 2017, 11:34:20 AM
Loaded mods:
Core: (no assemblies)
HugsLib[3.1.2]: 0Harmony(1.0.9.1), HugsLib(0.17.0.0)
Base Robots: 0Harmony(1.0.9.1), BaseRobot(0.0.0.0)
Defensive Positions: $HugsLibChecker(0.3.0.0), DefensivePositions(1.4.2.0)
Facial Stuff 0.17.1.2: RW_FacialStuff(1.0.0.0)
RimFridge - A17: RimFridge(1.0.0.0), SaveStorageSettingsUtil(1.0.0.0)
Realistic Rooms: (no assemblies)
DeadMansClothing: 0Harmony(1.0.9.1), DeadMansClothing(0.17.2.0)
-- In publisher:
Name: notify_trigger(); Type: FUNCTION; Schema: public; Owner: -
CREATE FUNCTION notify_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
BEGIN
PERFORM pg_notify('orders', TG_TABLE_NAME || ',id,' || row_to_json(NEW)::text );
RETURN new;