-
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
use gstreamer as gst; | |
use gstreamer::prelude::*; | |
fn main() -> Result<(), Box<dyn std::error::Error>> { | |
// Initialize GStreamer | |
gst::init()?; | |
// Create pipeline | |
let pipeline = gst::parse::launch( | |
"playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm video-sink=xvimagesink" |
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 datetime import datetime | |
from typing import Callable, Iterable | |
from textual._segment_tools import line_pad | |
from textual.app import App, ComposeResult, RenderResult | |
from textual.color import Color | |
from textual.css.styles import StylesBase | |
from textual.geometry import Size, Spacing | |
from textual.screen import Screen | |
from textual.strip import Strip |
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, | |
}; |
NewerOlder