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
name: Deploy to AWS | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ develop, main ] | |
paths: | |
- 'apps/io/**' | |
- '.github/workflows/io.yaml' |
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 R=/{((?:[\u2E80-\uA4CF\uFF00-\uFFEF])+)((?:\|[^ -\/{-~:-@\[-`]*)+)}/gm,T="p, h1, h2, h3, h4, h5, h6, ol, ul, table";function cF(e){let t=Array.from(e.textContent.matchAll(R)),n=e;for(let l of t){let r=l[2].split("|").slice(1),h=1===r.length?[l[1]]:l[1].split("");if(h.length===r.length){let o=document.createElement("ruby");o.classList.add("furigana"),h.forEach((e,t)=>{o.insertAdjacentHTML("beforeend",e+"<rt>"+r[t]+"</rt>")});let a=n.splitText(n.textContent.indexOf(l[0]));n=a.splitText(l[0].length),a.replaceWith(o)}}return e}function rF(e){let t=e.querySelectorAll(T);0!==t.length&&t.forEach(e=>{!function e(t){let n=[];t.childNodes.forEach(t=>{3===t.nodeType?n.push(t):t.hasChildNodes()&&"CODE"!==t.nodeName&&"RUBY"!==t.nodeName&&e(t)}),n.forEach(e=>{e.replaceWith(cF(e))})}(e)})}window.onload=function(){rF(document.body)}; |
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
// Adapted from https://github.com/steven-kraft/obsidian-markdown-furigana | |
const REGEXP = /{((?:[\u2E80-\uA4CF\uFF00-\uFFEF])+)((?:\|[^ -\/{-~:-@\[-`]*)+)}/gm; | |
// Main Tags to search for Furigana Syntax | |
const TAGS = "p, h1, h2, h3, h4, h5, h6, ol, ul, table"; | |
function convertFurigana(element) { | |
const matches = Array.from(element.textContent.matchAll(REGEXP)); | |
let lastNode = element; | |
for (const match of matches) { | |
const furi = match[2].split("|").slice(1); // First Element will be empty | |
const kanji = furi.length === 1 ? [match[1]] : match[1].split(""); |
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
# You will need to be a member of both sites. | |
# Both sites need to enable API Reads for members, and the new site needs to allow writes via the API. | |
# If you're an admin of the sites you can restrict the API to admins only. | |
# If you don't have a Wikidot API Key, unfortunately you can no longer get one. | |
# TODO: Handle files above the 6MB size limit the API imposes, although you also can't write files back of that size. | |
# They could be retrieved via files.get_meta, there's an attribute called download_url. | |
# E.g., | |
# import requests | |
# for idx, file in enumerate(files): |
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
from xmlrpclib import ServerProxy | |
import datetime | |
from time import sleep | |
from collections import OrderedDict | |
today = datetime.datetime.now() | |
DD = datetime.timedelta(days=7) | |
earlier = today - DD | |
idate = earlier.strftime("%Y-%m-%d") |
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
[[tabview]] | |
[[tab Tab 1]] | |
This is the content of Tab 1. | |
[[/tab]] | |
[[tab Tab 2]] | |
This is the content of Tab 2. | |
[[/tab]] | |
[[tab Tab 3]] | |
This is the content of Tab 3. | |
[[/tab]] |
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
[[module CSS]] | |
@import url('https://fonts.googleapis.com/css?family=Roboto'); | |
.customtext { font-family: 'Roboto', sans-serif; } | |
[[/module]] | |
Then you'd use [[div class="customtext"]]Text with a custom font face goes here.[[/div]] |
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
import praw | |
reddit = praw.Reddit(client_id='', | |
client_secret='', | |
password='', | |
user_agent='', | |
username='') | |
readingfrom = reddit.submission('3ywu0b') # Last year's thread. | |
body = [] |
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
# ******************************************************************************** | |
# | |
# Script Name: DangItBobby.ps1 | |
# Version: 1.0.0 | |
# Author: bluesoul <https://bluesoul.me> | |
# Date: 2016-04-06 | |
# Applies to: Domain Environments | |
# | |
# Description: This script searches for a specific, logged on user on all or | |
# specific Computers by checking the process "explorer.exe" and its owner. It |