更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
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
streams { | |
# Template | |
# name { | |
# dir = "down|up|both" | |
# pluginDown = "/app/test.script" | |
# pluginUp = "/app/test.script" | |
# filter = { "kinds": [0] } | |
# urls = [ | |
# "wss://example.com" | |
# ] |
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 relay = 'wss://relay-jp.nostr.wirednet.jp' | |
const authors = ['634bd19e5c87db216555c814bf88e66ace175805291a6be90b15ac3b2247da9b'] | |
function history (until = Math.floor(new Date() / 1000)) { | |
let socket | |
if (typeof (WebSocket) === 'undefined') { | |
const WebSocket = require('websocket').w3cwebsocket | |
socket = new WebSocket(relay) | |
} else { | |
socket = new WebSocket(relay) |
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
type Parser<T> = (target: string, pos: number) => ParseResult<T>; | |
type ParseResult<T> = [true, T, number] | [false, null, number]; | |
const lazy = <T>(fn: () => Parser<T>) => (target: string, pos: number) => | |
fn()(target, pos); | |
const oneOf = <T>(parsers: Parser<T>[]): Parser<T> => (target, pos) => { | |
for (const parser of parsers) { | |
const res = parser(target, pos); | |
if (res[0]) { |
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
// ==UserScript== | |
// @name Mirrativ keyboard shortcut | |
// @description Mirrativにキーボードショートカットを追加するUserScript | |
// @namespace https://gist.github.com/abcang/ceb4c4be3ee7ec49d6d782b88e803e50/raw/mirrativ_keyboard_shortcut.user.js | |
// @version 0.1 | |
// @author abcang | |
// @match https://www.mirrativ.com/* | |
// @grant none | |
// @downloadURL https://gist.github.com/abcang/ceb4c4be3ee7ec49d6d782b88e803e50/raw/mirrativ_keyboard_shortcut.user.js | |
// @updateURL https://gist.github.com/abcang/ceb4c4be3ee7ec49d6d782b88e803e50/raw/mirrativ_keyboard_shortcut.user.js |
My notes from implementing Job Vranish's excellent guide.
Follow along with the guide above, getting rustc from rustup or similar:
rustc 1.0.0-nightly (dcaeb6aa2 2015-01-18 11:28:53 +0000)
binary: rustc
commit-hash: dcaeb6aa23ecba2dc2af870668a9239136d20fa3
commit-date: 2015-01-18 11:28:53 +0000
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
require 'capybara' | |
require 'capybara/dsl' | |
require 'selenium-webdriver' | |
require 'io/console' | |
Capybara.run_server = false | |
Capybara.current_driver = :selenium | |
Capybara.app_host = "https://webauth.ritsumei.ac.jp/fs/customwebauth/login.html?switch_url=https://webauth.ritsumei.ac.jp/login.html&wlan=WebAuth" | |
class Webauth |
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
abstract sig Person { | |
anal_sex_with : set Person, | |
sex_with : set Person, | |
female_sex_with : set Person, | |
fellatio_with : set Person | |
} | |
sig Male in Person { } | |
fun Female : set Person { Person - Male } |
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
#-*- coding: utf-8 -*- | |
Plugin.create :jins_pc do | |
filter_message_background_color do | mp, color | | |
# 青成分を50%カット | |
[mp, [color[0],color[1],(color[2] * 0.5).to_i]] | |
end | |
end |
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
- - | |
-- ― | |
―- ― ― | |
~ ~ | |
・< ・・ | |
・・< … | |
・- ← | |
さ- ↓ | |
^- ↑ | |
-> → |
NewerOlder