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
# Assign to a shortcut, for example: | |
# { "keys": ["ctrl+shift+a"], "command": "paste_as_link" }, | |
# If you have a text selected and a link in the clipboard, this will make a HTML or Markdown link out of it. | |
import sublime | |
import sublime_plugin | |
import re | |
class PasteAsLinkCommand(sublime_plugin.TextCommand): | |
def run(self, edit): |
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
<?php | |
$json = json_decode('[{ | |
"step": "runSql", | |
"sql": { | |
"resource": "literal", | |
"name": "schema.sql", | |
"contents": "" | |
} | |
}]'); | |
$files = glob( './friends-demo*.sql' ); |
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
# Run this script inside a git directory and have Githubs gh command in the path. | |
import subprocess | |
import json | |
from datetime import datetime | |
import statistics | |
def run_command(command): | |
result = subprocess.run(command, shell=True, text=True, capture_output=True) | |
if result.returncode != 0: |
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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
<?php | |
// SOURCE: https://gist.github.com/seebz/c00a38d9520e035a6a8c | |
class iCal | |
{ | |
/** | |
* @var string | |
*/ | |
public $title; |
NewerOlder