Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| <div> | |
| <input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password."> | |
| <button type="button" id="cloneButton">Clone</button> | |
| </div> | |
| <output id="log" style="white-space: pre; font-family: monospace;"></output> | |
| <script src="https://unpkg.com/magic-portal"></script> | |
| <script> | |
| let worker = new Worker("./worker.js") |
| const sortByKeysLegibly = maybeObject => { | |
| // presumably we want the array to stay ordered. Possibly not, but if there is | |
| // anything that should preserve order, it's an array | |
| if (maybeObject instanceof Array) { | |
| return maybeObject; | |
| } | |
| // don't sort strings etc | |
| if (typeof maybeObject !== 'object') { | |
| return maybeObject; |
Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // munged from https://github.com/simontime/Resead | |
| namespace sead | |
| { | |
| class Random | |
| { |
| module Entry::TrackerBlocking | |
| extend ActiveSupport::Concern | |
| included do | |
| has_many :blocked_trackers | |
| end | |
| email_service_blockers = { | |
| "ActiveCampaign" => /lt\.php(.*)?l\=open/, | |
| "AWeber" => "openrate.aweber.com", |
The correct way to concat multiple video files from m3u8 playlist is
ffmpeg -protocol_whitelist "file,http,https,tcp,tls" -i "index.m3u8" -codec copy output.mp4
the m3u8 playlist can be on web or locally in directory it contains list of file paths relative to the playlist
| ****************************************** | |
| *SEGA Megadrive comunication program * | |
| *(c) 1991 Synchron Assembly * | |
| *https://www.tn-data.se * | |
| ****************************************** | |
| *f1=trace, f2=skip instruction f4=go | |
| *d xxxx set dissasm window, d pc | |
| *m xxxx set memory window, m pc | |
| *j xxxx set sega PC |
| // USAGE: hsd --log-console=false --plugins=/path/to/this/file/expiring-plug.js | |
| 'use strict'; | |
| const { | |
| Namestate, | |
| Network | |
| } = require('hsd'); | |
| const plugin = exports; |
| import * as React from "react"; | |
| import { useMousePosition } from "~/hooks/useMousePosition"; | |
| /** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
| export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
| const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
| const [mouseX, mouseY] = useMousePosition(); | |
| const positions = { x, y, h, w, mouseX, mouseY }; | |
| return ( | |
| <div |