Skip to content

Instantly share code, notes, and snippets.

View trello_to_notion.json
{
"schema_version": 1,
"name": "Trello to Notion",
"description": "No description provided",
"source_url": false,
"guid": "e460cd75f07b134f913d503328a3a9f3",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2021-06-01T17:53:04Z",
View huginn_metacritic.json
{
"schema_version": 1,
"name": "Metacritic New Music",
"description": "No description provided",
"source_url": false,
"guid": "d8a2c221016d8a3bd805b1d8fd44bf67",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2021-03-13T12:50:08Z",
View gist:228fc3806bdfc3c5fd6f87823be9a1bb
import React, { useEffect, useState } from "react";
import Product from "./shop/product";
import "./shop.css";
const Shop = () => {
const url = "http://localhost:3000/graphql";
const data = {
query: `query {
broadbandProducts(first: 4) {
View -
diff --git a/app/business_logic/services/broadband_provider_actions/backends/task.rb b/app/business_logic/services/broadband_provider_actions/backends/task.rb
index c6968d9..726e40e 100644
--- a/app/business_logic/services/broadband_provider_actions/backends/task.rb
+++ b/app/business_logic/services/broadband_provider_actions/backends/task.rb
@@ -26,7 +26,7 @@ module Services
def undo
original_command = track_back_object.command.sub('Undo', '')
original_action = track_back_object.event.actions.find_by(command: original_command)
- task = original_action.result
+ task = original_action.try(:result)
View task_fix.diff
diff --git a/app/business_logic/services/broadband_provider_actions/backends/task.rb b/app/business_logic/services/broadband_provider_actions/backends/task.rb
index c6968d9..726e40e 100644
--- a/app/business_logic/services/broadband_provider_actions/backends/task.rb
+++ b/app/business_logic/services/broadband_provider_actions/backends/task.rb
@@ -26,7 +26,7 @@ module Services
def undo
original_command = track_back_object.command.sub('Undo', '')
original_action = track_back_object.event.actions.find_by(command: original_command)
- task = original_action.result
+ task = original_action.try(:result)
View gist:c93be96c54612e8408dc
class Foo
def bar
puts 'hello, world'
end
end
View gist:5921774
{
:provider => "steam",
:uid => "1234567890",
:info => {
:nickname => "Foo",
:name => "Foo bar",
:location => "BR",
:image => "http://media.steampowered.com/steamcommunity/public/images/avatars/3c/sdafdasf.jpg",
:urls => {
:Profile => "http://steamcommunity.com/id/asdfadsfdasf/"
View gist:5480212
def self.create
new(:foobar)
end