-
https://www.python.org/dev/peps/pep-0553/ Proposal to add a
breakpoint
function similar to javascript's debugger statement. Aim to simplify the use of a debugger and also to make it more pluggable (same syntax for all the debuggers). -
http://www.b-list.org/weblog/2017/sep/05/how-python-does-unicode/ Interesting read on how Python handles unicode plus
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
return { | |
"yetone/avante.nvim", | |
event = "VeryLazy", | |
lazy = false, | |
opts = {}, | |
build = ":AvanteBuild", | |
dependencies = { | |
"stevearc/dressing.nvim", | |
"nvim-lua/plenary.nvim", | |
"MunifTanjim/nui.nvim", |
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
╭─────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
│ /Users/patrick/github/patrick91/textual-demo/.venv/lib/python3.12/site-packages/textual/app.py:2606 in _process_messages │ | |
│ │ | |
│ 2603 │ │ │ │ │ │ ) ╭───────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────╮ │ | |
│ 2604 │ │ │ │ │ if inline_no_clear: |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.2.3", | |
"title": "Airport & City Search", | |
"x-status": "validated", | |
"x-tags": [ | |
"#ama-for-dev" | |
], | |
"x-release-note": { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
overflow: hidden; | |
} |
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
resource "aws_api_gateway_method" "ResourceMethod" { | |
rest_api_id = "${var.rest_api_id}" | |
resource_id = "${var.resource_id}" | |
http_method = "${var.http_method}" | |
authorization = "${var.authorization}" | |
request_parameters = "${var.request_parameters}" | |
request_models = { "application/json" = "${var.request_model}" } | |
} | |
resource "aws_api_gateway_integration" "ResourceMethodIntegration" { |
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" | |
"log" | |
"net/http" | |
"github.com/dghubble/go-twitter/twitter" | |
"github.com/dghubble/oauth1" |
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 * as React from 'react'; | |
import styled from 'styled-components'; | |
import { ComponentClass, StatelessComponent } from 'react'; | |
export type Component<P> = ComponentClass<P> | StatelessComponent<P>; | |
interface FooProps { | |
message: string, | |
primary: boolean, | |
}; |
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
for f in *.srt; do | |
t=$(echo $f | sed 's/\.mov.srt$//' | tr '[:upper:]' '[:lower:]'); | |
echo converting $f to $t.vtt | |
srt-to-vtt $f > $t.vtt | |
sed -i -e 's/<[^>]*>//g' $t.vtt | |
done |
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 sys | |
import glob | |
def add_line(filename): | |
out = [] | |
with open(filename) as f: | |
for l in f: | |
if '-->' in l: |
NewerOlder