This file contains 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
// lib/slack/next-connext-receiver.ts | |
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
import { | |
HTTPModuleFunctions as httpFunc, | |
HTTPResponseAck, | |
ReceiverAuthenticityError, | |
type AnyMiddlewareArgs, | |
type App, | |
type CodedError, |
This file contains 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
@@ -88,6 +88,12 @@ async function fetchAndApply(request) { | |
} | |
const notionUrl = 'https://www.notion.so' + url.pathname; | |
let response; | |
+ | |
+ // Twitter Widget | |
+ if (url.pathname.startsWith('/twitter') && url.pathname.endsWith('js')) { | |
+ return fetch(notionUrl); | |
+ } | |
+ |
This file contains 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
// ==UserScript== | |
// @name Notion App Opener | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Replace Notion URL to open native app | |
// @author Masayuki Uehara | |
// @match https://*.notion.so/* | |
// @match https://notion.so/* | |
// @grant window.close | |
// ==/UserScript== |
This file contains 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
# frozen_string_literal: true | |
require 'nokogiri' | |
require 'open-uri' | |
require 'http' | |
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0' | |
DOWNLOAD_INDEX_URL = 'http://www.houjin-bangou.nta.go.jp/download/zenken/' | |
DOWNLOAD_URL = 'http://www.houjin-bangou.nta.go.jp/download/zenken/index.html' | |
TOKEN_KEY = 'jp.go.nta.houjin_bangou.framework.web.common.CNSFWTokenProcessor.request.token' |
This file contains 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
#!/usr/bin/env python2 | |
import argparse | |
import json | |
import sys | |
import urllib | |
import urllib2 | |
''' | |
Example Usage: |
This file contains 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
require 'date' | |
require 'json' | |
require 'net/https' | |
require 'optparse' | |
require 'uri' | |
# token: https://api.slack.com/custom-integrations/legacy-tokens | |
# Usage: | |
# ruby ./retrieve_slack_image.rb --token "YOUR_SLACK_TOKEN" --query "in:#random type:images (IMG OR Slack OR iOS)" |
This file contains 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 https = require('https'); | |
const querystring = require('querystring'); | |
const url = require('url'); | |
const SLACK_URL = url.parse('__YOUR_SLACK_WEBHOOK_URL__'); | |
const slackOptions = { | |
channel: '#heroku', | |
username: 'heroku', | |
icon_emoji: ':heroku:' | |
}; |
This file contains 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
curl -sL [public amazon wish list url] | nokogiri -e 'puts $_.css("#wl-item-view .g-item-details h3 a").map { |a| "https://amazon.co.jp#{a.attribute("href").value}" }' |
NewerOlder