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
/* | |
Simple CLI tool for backing up Elden Ring saves. Makes | |
backups periodically. Interval is configurable, see | |
constants below. Avoids redundant backups by checking | |
file modification timestamps. | |
Requires Go. To install Go on Windows, use any of the following, | |
depending on your preference: | |
* Official download: https://go.dev/dl/ |
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
package main | |
import ( | |
"fmt" | |
"html/template" | |
"time" | |
"github.com/pkg/errors" | |
"github.com/rjeczalik/notify" | |
) |
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
from os import path | |
import socket | |
import json | |
import re | |
import sublime | |
import sys | |
import uuid | |
from SublimeLinter.lint import NodeLinter | |
from SublimeLinter.lint.linter import LintMatch |
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
import sublime_plugin | |
import uuid | |
import random | |
import datetime | |
class gen_uuid(sublime_plugin.TextCommand): | |
def run(self, edit): | |
for region in self.view.sel(): | |
self.view.replace(edit, region, str(uuid.uuid4())) |
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
(defmacro return-or [sym expr] {:pre [(symbol? sym)]} | |
`(if (reduced? ~sym) (unreduced ~sym) ~expr)) | |
(defn imp-block [[expr & tail-exprs]] | |
(match expr | |
(('let pattern init) :seq) | |
(if-not tail-exprs | |
(list init) | |
(match (imp-block tail-exprs) |
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
<!-- Current --> | |
<input bind-style.color="mycolor" | |
on-change="mycolor = $event.target.value" | |
on-custom-event="mycolor = $event.target.value"> | |
<input [style.color]="mycolor" | |
(change)="mycolor = $event.target.value" | |
(custom-event)="mycolor = $event.target.value"> | |
<!-- Maybe consider --> | |
<input bind-style.color:change:custom-event="mycolor"> |
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
(= util (require "util")) ; node built-in | |
(def pr ...things | |
(do (for thing things | |
(process.stdout.write (util.format thing))) ())) ; `do` and () avoid unnecessary collection of `for` results | |
; (= prn console.log) ; unnecessary in jisp 0.2.11 |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Control+L to Forward Delete</name> | |
<identifier>private.control_l_to_forward_delete</identifier> | |
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::FORWARD_DELETE</autogen> | |
</item> | |
<item> | |
<name>Control+K to Shift_L+Return</name> |