Skip to content

Instantly share code, notes, and snippets.

View Starsign68's full-sized avatar
🇺🇦
#StandWithUkraine

Starsign68 Starsign68

🇺🇦
#StandWithUkraine
View GitHub Profile
// Add global variable to the window to allow goggles to work on
// website that have requirejs integrated in
window.__LOCALIZED_IGNORE_REQUIREJS = true;
(function(global, ignoreRequireJS, factory) {
// AMD. Register as an anonymous module. Also deal with the case
// that we've been told to force localized on the global (e.g.,
// in cases where require.js might exist in a page and we want to
// ignore it and use the global instead).
if (typeof define === 'function' &&
define.amd &&
/* This script was auto generated on previewing the "Pretty Print"-ed response body of `json_formatter.min.js` file using the Chrome DevTools's Network tab whereas `json_formatter.min.js` file itself was created manually */
window['pre'];
const version = "4.2.3";
const isExpanded = true;
window['recurse'] = (obj,keyname='',isLast=false)=>{
const expanded = isExpanded ? 'expanded' : ''
, c = isLast ? '' : ',';
let type = typeof obj
, dom = document.createDocumentFragment()
, inner = document.createDocumentFragment()
@mklasen
mklasen / main.yml
Created August 27, 2021 13:48
Create a new zipped asset when a new release is published
name: Create release
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
<html>
<head>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
@Starsign68
Starsign68 / .vimrc
Created May 28, 2021 01:25
My best one yet
echo("| 2021-05-26 | Starsign68 |")
let mapleader = " "
let localleader = ''
let g:netrw_banner = 0
let g:netrw_liststyle = 0
set termencoding=utf-8
let g:doSmartTab='N' " {{{{STATUSLIME_START}
let g:currentmode = { 'n': 'NORMAL', 'no': 'N·OP·PEND', 'v': 'VISUAL', 'V': 'V·LINE', '': 'V·BLOCK', 's': 'SELECT', 'S': 'S·LINE', '': 'S·BLOCK', 'i': 'INSERT', 'R': 'REPLACE', 'Rv': 'V·REPLACE', 'c': 'COMMAND', 'cv': 'VIM EX', 'ce': 'EX', 'r': 'PROMPT', 'rm': 'MORE', 'r?': 'CONFIRM', '!': 'SHELL', 't': 'TERMINAL'}
let g:modegroups = { 'n': 'NORMAL', 'no': 'NORMAL', 'v': 'VISUAL', 'V': 'VISUAL', '': 'VISUAL', 's': 'OTHER', 'S': 'OTHER', '': 'OTHER', 'i': 'INSERT', 'R': 'INSERT', 'Rv': 'INSERT', 'c': 'OTHER', 'cv': 'OTHER', 'ce': 'OTHER', 'r': 'OTHER', 'rm': 'OTHER', 'r?': 'OTHER', '!': 'OTHER', 't': 'OTHER'}
function! Modetheme(group)
@Starsign68
Starsign68 / .vimrc
Last active May 27, 2021 01:10
Minimal VIMRC
" +=========================+
" | 2021-05-26 | Starsign68 |
" +=========================+
let mapleader = " "
let localleader = ''
let g:netrw_banner = 0
let g:netrw_liststyle = 0
set termencoding=utf-8
let g:doSmartTab='N'
" {{{{STATUSLIME}
@mkanenobu
mkanenobu / get-meet-chat-bookmarklet.js
Last active January 24, 2022 22:01
Log google meet chat text.
var attribute = "data-sender-name";
// HACK
var getChatTextDoms = () =>
Array.prototype.slice
.call(document.querySelectorAll("*"))
.filter((el) => typeof el.attributes[attribute] !== "undefined");
var texts = getChatTextDoms();
// Least Recently Used
class LRUMap extends Map {
constructor(length) {
super().length = length;
}
_(key) {
const value = super.get(key);
super.delete(key);
super.set(key, value);
return value;
@WebReflection
WebReflection / attr.js
Created November 19, 2020 19:38
A dataset like behavior for any attribute
const proxies = new WeakMap;
const hyphen = name => name.replace(/([a-z])([A-Z])/g, '$1-$2');
const handler = {
get: (el, name) => el.getAttribute(hyphen(name)),
set: (el, name, value) => {
el.setAttribute(hyphen(name), value);
return true;
}
};
const set = el => {

Some useful custom text objects for vim

Collection of my custom text objects I use quite often.

97975602 6e90ee00 1dda 11eb 9286 6894300457e3

Numbers

Put it into your .vimrc: