file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
tests/support/delay_server.rs | Rust | #![cfg(not(target_arch = "wasm32"))]
#![allow(unused)]
use std::{convert::Infallible, future::Future, net, time::Duration};
use futures_util::FutureExt;
use http::{Request, Response};
use hyper::service::service_fn;
use tokio::{net::TcpListener, select, sync::oneshot};
/// This server, unlike [`super::server::Server`... | 0x676e67/wreq-util | 59 | Common utilities for wreq | Rust | 0x676e67 | ||
tests/support/mod.rs | Rust | #![allow(dead_code)]
pub mod delay_layer;
pub mod delay_server;
pub mod server;
use std::{sync::LazyLock, time::Duration};
use tokio::sync::Semaphore;
use wreq::Client;
// TODO: remove once done converting to new support server?
#[allow(unused)]
pub static DEFAULT_USER_AGENT: &str =
concat!(env!("CARGO_PKG_NAME"... | 0x676e67/wreq-util | 59 | Common utilities for wreq | Rust | 0x676e67 | ||
tests/support/server.rs | Rust | #![cfg(not(target_arch = "wasm32"))]
use std::{
convert::Infallible, future::Future, net, sync::mpsc as std_mpsc, thread, time::Duration,
};
use tokio::{io::AsyncReadExt, net::TcpStream, runtime, sync::oneshot};
pub struct Server {
addr: net::SocketAddr,
panic_rx: std_mpsc::Receiver<()>,
events_rx: st... | 0x676e67/wreq-util | 59 | Common utilities for wreq | Rust | 0x676e67 | ||
emacs/.emacscore/desktop/hyprland.el | Emacs Lisp | ;;; hyprland.el --- Do not conflict with hyprland WM keybindings -*- lexical-binding: t -*-
;;
;; exit from hyprland passthrough mode on exit
;;
(add-hook 'kill-emacs-hook
(lambda ()
(shell-command-to-string "hyprctl dispatch submap reset")))
;;
;; switch to the given workspace.
;;
(defmacro hy... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/desktop/i3.el | Emacs Lisp | ;;; i3.el --- Do not conflict with i3 WM keybindings -*- lexical-binding: t -*-
;;
;; exit from i3 passthrough mode on exit
;;
(add-hook 'kill-emacs-hook
(lambda ()
(shell-command-to-string "i3-msg mode default")))
;;
;; switch to the given workspace.
;;
(defmacro i3-switch-workspace (workspace... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/c.el | Emacs Lisp | ;;; c.el --- C/C++ for GNU Emacs -*- lexical-binding: t -*-
(require 'cc-mode)
;; disable wrong indentation in C++ namespaces
(c-set-offset 'innamespace 0)
;; Indentation for C/C++ code
(setq c-basic-offset 4)
(when (executable-find "clangd")
(progn
(add-hook 'c-mode-hook 'lsp)
(add-hook 'c++-mode-hook 'l... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/common-lisp.el | Emacs Lisp | ;;; common-lisp.el --- SLIME configuration -*- lexical-binding: t -*-
;; load SLIME
(require 'slime-autoloads)
;; setup path to lisp compiler
(when (file-exists-p "/usr/bin/sbcl")
(setq inferior-lisp-program "/usr/bin/sbcl"))
(when (file-exists-p "/usr/local/bin/sbcl")
(setq inferior-lisp-program "/usr/local/bin/... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/company.el | Emacs Lisp | ;;; company.el --- C/C++ for GNU Emacs -*- lexical-binding: t -*-
(require 'cc-mode)
(require 'company)
;; enable company mode
(add-hook 'after-init-hook 'global-company-mode)
;; disable delay before showing extensions
(setq company-idle-delay 0)
; Show suggestions after entering one character
(setq company-minimum... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/elisp.el | Emacs Lisp | ;;; elisp.el --- Emacs lisp routines for GNU Emacs -*- lexical-binding: t -*-
(defun emacs-config ()
"Open ~/.emacs in new buffer"
(interactive)
(find-file "~/.emacs"))
(defun set-debug-emacs ()
"Toggle debug-on-error and backtrace-on-error variables"
(interactive)
(if (equal debug-on-error nil)
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/elixir.el | Emacs Lisp | ;;; elixir.el --- Elixir routines for GNU Emacs -*- lexical-binding: t -*-
(require 'elixir-mode)
(setq lsp-elixir-script-path
"/home/alex/dev/elixir-ls/release/language_server.sh")
(when (file-exists-p lsp-elixir-script-path)
(add-hook 'elixir-mode-hook 'lsp)
(setq lsp-elixir-local-server-command
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/erlang.el | Emacs Lisp | ;;; erlang.el --- Erlang routines for GNU Emacs -*- lexical-binding: t -*-
(setq exec-path (cons "/usr/local/lib/erlang/bin" exec-path))
(add-to-list 'auto-mode-alist '("\\.erl?$" . erlang-mode))
(add-to-list 'auto-mode-alist '("\\.hrl?$" . erlang-mode))
(setq erlang-root-dir "/usr/lib/erlang")
(add-to-list 'exec-p... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/gptel.el | Emacs Lisp | ;;; gptel.el --- Interface to GPT -*- lexical-binding: t -*-
(defun run-gemini-api-key-script ()
"Run the Gemini API key script, supply password, and return output as string."
(interactive)
(let ((password (read-passwd "Enter password: "))
(output "")
(done nil))
(let ((proc
(make-... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/js.el | Emacs Lisp | ;;; js.el --- SLIME configuration -*- lexical-binding: t -*-
;; Highlight javascript files from the Mozilla Firefox source code
(add-to-list 'auto-mode-alist '("\\.sys\\.mjs\\'" . javascript-mode))
;; Set indentation for javascript
(setq js-indent-level 2)
(defun npm-and-typescript-ls-installed ()
"Check that `npm... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/lsp-mode.el | Emacs Lisp | ;;; lsp-mode.el --- LSP configuration -*- lexical-binding: t -*-
(require 'lsp-mode)
;; pre-load clients
(add-to-list 'load-path "~/.emacs.d/elpa/lsp-mode/clients")
;; install dependencies for lsp-mode
(when (file-exists-p "/etc/fedora-release")
(when (string= (shell-command-to-string "command -v clangd") "")
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/python.el | Emacs Lisp | ;;; python.el --- Python configuration -*- lexical-binding: t -*-
;; Enable Python LSP
(add-hook 'python-mode-hook 'lsp-deferred)
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/rust.el | Emacs Lisp | (require 'rust-mode)
;; Rust style-guide recommends to use spaces:
;; https://doc.rust-lang.org/1.0.0/style/style/whitespace.html
(add-hook 'rust-mode-hook
(lambda () (setq indent-tabs-mode nil)))
;; format the code on save
(setq rustic-format-on-save t)
;; set compilation command
(setq rustic-compile-comm... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/sed.el | Emacs Lisp | ;;; sed-mode.el --- A major mode for editing sed source code -*- lexical-binding: t -*-
;; Copyright (C) 2013-2014 Eric Schulte
;; Author: Eric Schulte <[email protected]>
;; Version: 0.1
;; Keywords: languages, sed
;; Description: A major mode for editing sed source code
;; This file is not (yet) part of GNU E... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dev/shell.el | Emacs Lisp | ;;; sed.el --- Bash/Shell routines for GNU Emacs -*- lexical-binding: t -*-
(defun shell-indentation ()
(interactive)
(setq sh-basic-offset 4
sh-indentation 4
sh-indent-for-case-label 0
sh-indent-for-case-alt '+))
(add-hook 'sh-mode-hook 'shell-indentation)
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dired.el | Emacs Lisp | ;;; dired.el --- My configuration for dired -*- lexical-binding: t -*-
;;
;; Dired configuration
;;
(require 'dired-x)
(require 'dired)
(setq dired-listing-switches "-lapq --author --file-type --group-directories-first
-h --human-readable --hide='*.o' --hide='*.d' ")
;; open file in a d... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/dotfiles.el | Emacs Lisp | ;;; dotfiles.el --- auxiliary functions for dotfiles -*- lexical-binding: t -*-
(defconst dotfiles--script
"~/dev/dotfiles/dotfiles"
"Path to dotfiles script on my machine")
(defun update-dotfiles-repo ()
"Update .dotfiles git repository"
(interactive)
(dotfiles--execute-cmd "--update-repo")
(message "Don... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/file-utils.el | Emacs Lisp | ;;; utils.el --- Auxiliary functions for GNU Emacs -*- lexical-binding: t -*-
(defun reload-file ()
"Reload a file in the current buffer"
(interactive)
(find-alternate-file (buffer-file-name)))
(defun rename-file-and-buffer ()
"Rename the current buffer and file it is visiting."
(interactive)
(let ((file... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/gpg.el | Emacs Lisp | ;;; gpg.el --- Configuration for GPG -*- lexical-binding: t -*-
;; Use gpg2 always
(setq epg-gpg-program "gpg2")
;; to not forward us to another pinentry
(setq epg-pinentry-mode 'loopback)
;; Disable caching of passpharses
(setq epa-file-cache-passphrase-for-symmetric-encryption nil)
;; Set encoding for gpg files
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/ido.el | Emacs Lisp | ;;; ido.el --- My configuration for ido -*- lexical-binding: t -*-
;; enable ido mode
(require 'ido)
(setq ido-save-directory-list-file nil)
(setq ido-enable-flex-matching t)
(ido-mode 1)
(ido-everywhere 1)
;; do not record names of opened files
(setq ido-max-work-directory-list 0)
;; allow to show all files
(setq i... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/jit-and-gc.el | Emacs Lisp | ;;; jit-and-gc.el --- Auxilary things to improve performance of GNU Emacs -*- lexical-binding: t -*-
(defun my-minibuffer-setup-hook ()
(setq gc-cons-threshold most-positive-fixnum))
(defun my-minibuffer-exit-hook ()
(setq gc-cons-threshold (* 32 1024 1024)))
(setq gcmh-high-cons-threshold (* 1024 1024 1024)
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/keybindings.el | Emacs Lisp | ;;; keybindings.el --- Global keybindings -*- lexical-binding: t -*-
;; F(n) keybindings
(global-set-key [f1] 'dired-other-window)
(global-set-key [f2] 'sudo-find-file)
(global-set-key [f3] 'reload-file)
(global-set-key [f4] 'eval-buffer)
(global-set-key [f5] 'open-terminal)
(global-set-key [f6] 'rename-file-and... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp-utils.el | Emacs Lisp | ;;; lisp-utils.el --- Auxiliary Emacs Lisp functions -*- lexical-binding: t -*-
(defun print-list-of-strings (strings)
"Print each string in STRINGS to the *Messages* buffer."
(dolist (string strings)
(message "%s" string)))
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/cmake.el | Emacs Lisp | ;;; cmake-mode.el --- major-mode for editing CMake sources -*- lexical-binding: t -*-
;; Package-Requires: ((emacs "24.1"))
; Distributed under the OSI-approved BSD 3-Clause License. See accompanying
; file Copyright.txt or https://cmake.org/licensing for details.
;--------------------------------------------------... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/epl.el | Emacs Lisp | ;;; epl.el --- Emacs Package Library -*- lexical-binding: t; -*-
;; Copyright (C) 2013-2015 Sebastian Wiesner
;; Copyright (C) 1985-1986, 1992, 1994-1995, 1999-2015 Free Software
;; Author: Sebastian Wiesner <[email protected]>
;; Maintainer: Johan Andersson <[email protected]>
;; Sebastian Wiesner <swi... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/nord-theme.el | Emacs Lisp | ;;; nord-theme.el --- An arctic, north-bluish clean and elegant theme -*- lexical-binding: t; -*-
;; Copyright (c) 2016-present Sven Greb <[email protected]> (https://www.svengreb.de)
;; Title: Nord Theme
;; Project: nord-emacs
;; Version: 0.6.0
;; URL: https://github.com/nordtheme/emacs
;; Author: Sven Greb <... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/org-bullets.el | Emacs Lisp | ;;; org-bullets.el --- Show bullets in org-mode as UTF-8 characters -*- lexical-binding: t -*-
;;; Version: 0.2.4
;;; Author: sabof
;;; URL: https://github.com/sabof/org-bullets
;; This file is NOT part of GNU Emacs.
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of t... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/org-fragtog.el | Emacs Lisp | ;;; org-fragtog.el --- Auto-toggle Org LaTeX fragments -*- lexical-binding: t; -*-
;; Copyright (C) 2020 Benjamin Levy - MIT/X11 License
;; Author: Benjamin Levy <[email protected]>
;; Version: 0.4.2
;; Description: Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
;; Homepag... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/ox-gfm.el | Emacs Lisp | ;;; ox-gfm.el --- Github Flavored Markdown Back-End for Org Export Engine -*- lexical-binding: t; -*-
;; Copyright (C) 2014-2017 Lars Tveito
;; Author: Lars Tveito
;; Keywords: org, wp, markdown, github
;; This file is not part of GNU Emacs.
;; This program is free software; you can redistribute it and/or modify
;;... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/pkg-info.el | Emacs Lisp | ;;; pkg-info.el --- Information about packages -*- lexical-binding: t; -*-
;; Copyright (C) 2013-2015 Sebastian Wiesner <[email protected]>
;; Author: Sebastian Wiesner <[email protected]>
;; URL: https://github.com/lunaryorn/pkg-info.el
;; Keywords: convenience
;; Version: 0.7-cvs
;; Package-Requires: ((e... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/lisp/rainbow-mode-1.0.5.el | Emacs Lisp | ;;; rainbow-mode.el --- Colorize color names in buffers -*- lexical-binding: t; -*-
;; Copyright (C) 2010-2020 Free Software Foundation, Inc
;; Author: Julien Danjou <[email protected]>
;; Keywords: faces
;; Version: 1.0.5
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it an... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/mail.el | Emacs Lisp | ;;; dired.el --- My configuration for email -*- lexical-binding: t -*-
(when (file-directory-p "/usr/local/share/emacs/site-lisp/mu4e")
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
;; Load mu4e
(require 'mu4e)
;; use mu4e for e-mail in emacs
(setq mail-user-agent 'mu4e-user-agent)
;... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/markups.el | Emacs Lisp | ;;; markups.el --- Stuff for different markup languages -*- lexical-binding: t -*-
;; Markdown mode
(require 'markdown-mode)
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdo... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-api.el | Emacs Lisp | ;;; .emacs --- My org-mode configuration -*- lexical-binding: t -*-
(defun todo()
"Open TODO directory in dired mode"
(interactive)
(dired org-directory))
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-babel.el | Emacs Lisp | ;;; .emacs --- My org-mode configuration -*- lexical-binding: t -*-
(defun org-eval-code-block ()
"Evaluate code block inside org-babel code block and drop the buffers/windows
that appears during evaluation."
(interactive)
(org-babel-remove-result-one-or-many t)
(org-open-at-point)
(if (not (get-buffer "*Or... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-keybindings.el | Emacs Lisp | ;;; .emacs --- My org-mode configuration -*- lexical-binding: t -*-
;; Evaluate org-mode code block with removing results before
(define-key org-mode-map (kbd "C-c C-o") nil)
(define-key org-mode-map (kbd "C-c C-o") 'org-eval-code-block)
;; used for switching between tabs
(define-key org-mode-map [(control tab)] nil... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-latex.el | Emacs Lisp | ;;; .emacs --- Latex and org-mode configuration -*- lexical-binding: t -*-
(require 'org)
;; Set to nil here, because its incompatible with viewing the agenda
(setq org-startup-with-latex-preview nil)
;; Set latex live preview backend
(setq org-preview-latex-default-process 'dvisvgm)
(setq org-latex-create-formula-... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-markdown.el | Emacs Lisp | ;;; org-markdown.el --- Auxiliary functions to export org to markdown -*- lexical-binding: t -*-
(require 'ox-gfm)
(defun export-org-directory-to-gfm (src-dir out-dir)
"Export all .org files in SRC-DIR to .md in OUT-DIR, preserving relative structure."
(let ((files (directory-files-recursively src-dir "\\.org$")... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/org-ui.el | Emacs Lisp | ;;; .emacs --- My org-mode configuration -*- lexical-binding: t -*-
;; set of TODO keywords highligted in org-mode
(setq org-todo-keywords
'((sequence "TODO"
"IN-PROGRESS"
"WAITING"
"RESEARCH"
"NEED-TESTS"
"DONE")))
;; Se... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/org/orgmode.el | Emacs Lisp | ;;; .emacs --- My org-mode configuration -*- lexical-binding: t -*-
(require 'org)
;; set path to org directory
(when (file-directory-p "~/dev/todo")
(setq org-directory "~/dev/todo")
(setq org-agenda-files '("~/dev/todo")))
(when (file-directory-p "~/disk/dev/todo")
(setq org-directory "~/disk/dev/todo")
(s... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/snippets.el | Emacs Lisp | ;;; snippets.el --- Snippets for GNU emacs -*- lexical-binding: t -*-
(require 'yasnippet)
;; Enable yasnippets for all prog-mode(s)
(add-hook 'prog-mode-hook #'yas-minor-mode)
;; Set path to the snippets fetched by straight
(setq straight-yas-dir
(concat user-emacs-directory "/straight/build/yasnippet-snippet... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/system.el | Emacs Lisp | ;;; system.el --- auxiliary functions for system management -*- lexical-binding: t -*-
(defun sudo-shell-command (command)
(shell-command (concat "echo " (read-passwd "Password: ") " | sudo -S " command)))
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/tabs.el | Emacs Lisp | ;;; tabs.el --- Configuration of the tabs based on centaur-tab -*- lexical-binding: t -*-
(require 'centaur-tabs)
;; Enable uniform appearance for centaur tabs
(centaur-tabs-headline-match)
(setq
;; Set height of the tabs
centaur-tabs-height 34
;; Set form of the tabs
centaur-tabs-style "box"
;; Set the positi... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/term.el | Emacs Lisp | ;;; term.el --- terminal emulator configuration in GNU Emacs -*- lexical-binding: t -*-
(require 'vterm)
;; bash is a standard shell
(setq explicit-shell-file-name "/bin/bash")
(setq shell-file-name "/bin/bash")
(setenv "SHELL" shell-file-name)
;; Improves terminal emulator (vterm/eat) throughput
(setq read-process... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/text-utils.el | Emacs Lisp | ;;; text-utils.el --- Text utilities for GNU Emacs -*- lexical-binding: t -*-
(defun mark-curr-line ()
"Set mark for current line"
(interactive)
(beginning-of-line)
(cua-set-mark)
(end-of-line))
(defun replace-all (find replace)
"Find & Replace all"
(interactive
(list
(read-string "Find: "... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/themes/catppuccin/tabbar-catppuccin-style.el | Emacs Lisp | ;;; material.el --- GNU Emacs tabbar styles for catppuccin theme -*- lexical-binding: t -*-
;; Tabbar mode
(require 'tabbar)
;; Group similar files together in tabbar
(defun my-tabbar-buffer-groups ()
(list (cond
;; Emacs buffers
((string-equal "*" (substring (buffer-name) 0 1)) "emacs")
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/themes/gruvbox/tabbar-gruvbox-style.el | Emacs Lisp | ;;; material.el --- GNU Emacs tabbar styles for gruvbox theme -*- lexical-binding: t -*-
;; Tabbar mode
(require 'tabbar)
;; Group similar files together in tabbar
(defun my-tabbar-buffer-groups ()
(list (cond
;; Emacs buffers
((string-equal "*" (substring (buffer-name) 0 1)) "emacs")
((... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/themes/material/tabbar.el | Emacs Lisp | ;;; material.el --- GNU Emacs tabbar styles for material theme -*- lexical-binding: t -*-
;; Tabbar mode
(require 'tabbar)
;; Group similar files together in tabbar
(defun my-tabbar-buffer-groups ()
(list (cond
;; Emacs buffers
((string-equal "*" (substring (buffer-name) 0 1)) "emacs")
(... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/themes/solarized/tabbar-solarized-light-style.el | Emacs Lisp | ;;; tabbar-solarized-style.el --- GNU Emacs tabbar styles for solarized theme -*- lexical-binding: t -*-
;; Tabbar mode
(require 'tabbar)
;; Group similar files together in tabbar
(defun my-tabbar-buffer-groups ()
(list (cond
;; Emacs buffers
((string-equal "*" (substring (buffer-name) 0 1)) "ema... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/ui.el | Emacs Lisp | ;;; ui.el --- UI configuration of GNU Emacs -*- lexical-binding: t -*-
(defun get-font-size ()
"Return an integer font height (1/10pt) based on focused Hyprland monitor width.
Falls back to 1920 if anything fails."
(if (and
(string= (string-trim (or (getenv "XDG_SESSION_TYPE") "")) "wayland")
(geten... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
emacs/.emacscore/vcs/magit.el | Emacs Lisp | ;;; magit.el --- My configuration for magit -*- lexical-binding: t -*-
;;
;; Enable additional suffixes
;;
;; For more information see:
;; * https://magit.vc/manual/transient/Enabling-and-Disabling-Suffixes.html
;; * https://emacsair.me/2019/02/14/transient-0.1/
(require 'magit)
;; Enable more suffixes
(setq transi... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
firefox/css/userChrome.css | CSS | /* Hide sidebar button */
#sidebar-button {
display: none !important;
}
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
firefox/extensions.pl | Perl | #!/usr/bin/env perl
# TODO: check how can we do it without wget
# TODO: add comments to the script
use strict;
use warnings FATAL => 'all';
my $firefox_dir = $ENV{"HOME"} . "/.mozilla/firefox/";
my %extensions = (
"ublock-origin" => "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/",
"zen-fox" =... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
firefox/user.js | JavaScript | // userchrome.css usercontent.css activate
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
// Fill SVG Color
user_pref("svg.context-properties.content.enabled", true);
// CSS Blur Filter - 88 Above
user_pref("layout.css.backdrop-filter.enabled", true);
// Restore Compact Mode - 89 Above
user_... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
hyprland/hypr/emacs.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
my $emacs = `ps -C emacs -o pid=`;
if ($emacs eq "") {
if (-x "/home/alex/disk/dev/emacs/src/emacs") {
system("hyprctl dispatch workspace 2");
system("/home/alex/disk/dev/emacs/src/emacs &");
} else {
system("hyprctl dispatch workspace 2");
... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
hyprland/hypr/move-focus.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
my $direction = shift @ARGV // "";
my $group = `hyprctl activewindow | grep "grouped" | awk '{print \$2}'`;
my $lastWindowID = `hyprctl activeworkspace | grep "lastwindow:" | awk '{print \$2}' | sed 's/^0x//'`;
my $lastGroup = `echo "$group" | rev | cut -d"," -f 1 | rev | sed... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
hyprland/waybar/style.css | CSS | * {
font-family: "FiraCode", "Font Awesome 6 Free", "Font Awesome 6 Brands", monospace;
font-size: 13px;
}
window#waybar {
background: #eee8d5;
color: #002b36;
}
#workspaces button {
background: #eee8d5;
color: #888888;
border: none;
padding: 0 8px;
}
#workspaces button.focused {
background: #fdf6e... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
hyprland/wofi/style.css | CSS | window {
background-color: #073642;
color: #fdf6e3;
font-family: "Fira Code Retina";
font-size: 14px;
}
#input {
background-color: #073642;
color: #fdf6e3;
}
#entry:selected, #entry:hover {
background-color: #073642;
color: #fdf6e3;
}
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
i3/emacs.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
my $emacs = `ps -C emacs -o pid=`;
if ($emacs eq "") {
if (-x "/home/alex/disk/dev/emacs/src/emacs") {
system("/home/alex/disk/dev/emacs/src/emacs &");
} else {
system("emacs &");
}
sleep 1;
}
system("i3-msg", "mode", "passthrough");
system(... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
i3/i3-next-workspace.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
use JSON;
my $workspaces = `i3-msg -t get_workspaces`;
my $workspaces_json = decode_json($workspaces);
foreach my $workspace ( @{$workspaces_json} ) {
my %workspace_hash = %{$workspace};
my $focused = $workspace_hash{focused};
my $workspace_num = $workspace_hash... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
mysql/root-to-native-password.sql | SQL | SET old_passwords=0;
ALTER USER username@hostname IDENTIFIED BY '';
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
shell/bin/external/DiffHighlight.pm | Perl | package DiffHighlight;
use 5.008;
use warnings FATAL => 'all';
use strict;
# Use the correct value for both UNIX and Windows (/dev/null vs nul)
use File::Spec;
my $NULL = File::Spec->devnull();
# Highlight by reversing foreground and background. You could do
# other things like bold or underline if you prefer.
our ... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
shell/bin/git-prompt/git-prompt.sh | Shell | # bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# 2) Add t... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
shell/bin/lib/DiffHighlight.pm | Perl | package DiffHighlight;
use 5.008;
use warnings FATAL => 'all';
use strict;
# Use the correct value for both UNIX and Windows (/dev/null vs nul)
use File::Spec;
my $NULL = File::Spec->devnull();
# Highlight by reversing foreground and background. You could do
# other things like bold or underline if you prefer.
our ... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
shell/bin/mail/offlineimap.py | Python | import subprocess
def get_pass():
passwd = subprocess.getoutput('op item get qvmlw4o5342mdtofsdpxaorvdi --reveal | grep password | sed -e "s/ password: //"')
return passwd
| 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
sway/emacs.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
my $emacs = `ps -C emacs -o pid=`;
if ($emacs eq "") {
if (-x "/home/alex/disk/dev/emacs/src/emacs") {
system("/home/alex/disk/dev/emacs/src/emacs &");
} else {
system("emacs &");
}
sleep 1;
}
system("i3-msg", "mode", "passthrough");
system(... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
sway/i3-next-workspace.pl | Perl | #!/usr/bin/perl
use strict;
use warnings;
use JSON;
my $workspaces = `i3-msg -t get_workspaces`;
my $workspaces_json = decode_json($workspaces);
foreach my $workspace ( @{$workspaces_json} ) {
my %workspace_hash = %{$workspace};
my $focused = $workspace_hash{focused};
my $workspace_num = $workspace_hash... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
system/serv-1/setup.sh | Shell | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# update current system
sudo apt-get -qq update -y
sudo apt-get -qq upgrade -y
# install different utils and components
sudo apt-get -qq install -y tmux
# make ansible happy with python interpreter
if [ ! -f "/usr/bin/python" ];
then
if [ -f "/usr/bin/pyt... | 0xAX/dotfiles | 57 | A set of .emacs, .bash, git and other configuration files | Emacs Lisp | 0xAX | Alex Kuleshov | travelping |
index.js | JavaScript | // prettier-ignore
const TABLE = Array.of(
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o'... | 0xflotus/dtg-js | 0 | JavaScript | 0xflotus | |||
test/index.spec.js | JavaScript | import { describe, expect, test } from "vitest";
import { toBase60, toJSDate } from "../index";
describe("dtg-js", () => {
test("invalid base 60 string", () => {
expect(() => toJSDate("foobar")).toThrow(
"It\'s not a valid base 60 string",
);
});
test("invalid datetime object", () => {
expect(... | 0xflotus/dtg-js | 0 | JavaScript | 0xflotus | |||
clean-css.mjs | JavaScript | import {Buffer} from 'node:buffer';
import getStdin from 'get-stdin';
import CleanCSS from 'clean-css';
getStdin()
.then(data => minify(data))
.then(data => process.stdout.write(data));
async function minify(data) {
const {
compatibility,
level,
format,
inline
} = JSON.parse(process.argv[2]);
... | 1000ch/Sublime-clean-css | 0 | clean-css plugin for Sublime Text | Python | 1000ch | Shogo Sensui | |
clean_css.py | Python | import sublime
import sublime_plugin
import json
from os.path import dirname, realpath, join
try:
# Python 2
from node_bridge import node_bridge
except:
from .node_bridge import node_bridge
sublime.Region.totuple = lambda self: (self.a, self.b)
sublime.Region.__iter__ = lambda self: self.totuple().__iter_... | 1000ch/Sublime-clean-css | 0 | clean-css plugin for Sublime Text | Python | 1000ch | Shogo Sensui | |
node_bridge.py | Python | import os
import platform
import subprocess
IS_MACOS = platform.system() == 'Darwin'
IS_WINDOWS = platform.system() == 'Windows'
def node_bridge(data, bin, args=[]):
env = None
startupinfo = None
if IS_MACOS:
env = os.environ.copy()
env['PATH'] += ':/usr/local/bin'
if IS_WINDOWS:
startupinfo = s... | 1000ch/Sublime-clean-css | 0 | clean-css plugin for Sublime Text | Python | 1000ch | Shogo Sensui | |
test.css | CSS | .foo {
border-color: red;
border-right-color: blue;
}
| 1000ch/Sublime-clean-css | 0 | clean-css plugin for Sublime Text | Python | 1000ch | Shogo Sensui | |
index.html | HTML | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<title>facebook-button: Facebook button as Web Components.</title>
<link rel="stylesheet" href="https://1000ch.github.io/gh-pages.css/gh-pages.css">
<!-- Place... | 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/facebook-like-button.ts | TypeScript | export class FacebookLikeButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'href',
'layout',
'size',
'action',
'width'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
b... | 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/facebook-share-button.ts | TypeScript | export class FacebookShareButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'href',
'layout',
'size',
'width'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
border: none;
... | 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/index.ts | TypeScript | export { FacebookLikeButton } from './facebook-like-button';
export { FacebookShareButton } from './facebook-share-button';
| 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/facebook-like-button.test.ts | TypeScript | import { FacebookLikeButton } from '../src/index';
describe('FacebookLikeButton', (): void => {
test('should be defined', (): void => {
expect(FacebookLikeButton).toBeDefined();
});
});
| 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/facebook-share-button.test.ts | TypeScript | import { FacebookShareButton } from '../src/index';
describe('FacebookShareButton', (): void => {
test('should be defined', (): void => {
expect(FacebookShareButton).toBeDefined();
});
});
| 1000ch/facebook-button | 0 | Facebook button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
index.html | HTML | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<title>twitter-button: Twitter button as Web Components.</title>
<link rel="stylesheet" href="https://1000ch.github.io/gh-pages.css/gh-pages.css">
<!-- Place t... | 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/index.ts | TypeScript | export { TwitterFollowButton } from './twitter-follow-button';
export { TwitterHashtagButton } from './twitter-hashtag-button';
export { TwitterMentionButton } from './twitter-mention-button';
export { TwitterShareButton } from './twitter-share-button';
| 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/twitter-follow-button.ts | TypeScript | export class TwitterFollowButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'width',
'user',
'size'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
}
</style>
<iframe all... | 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/twitter-hashtag-button.ts | TypeScript | export class TwitterHashtagButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'width',
'text',
'hashtag',
'size'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
}
</style>... | 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/twitter-mention-button.ts | TypeScript | export class TwitterMentionButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'width',
'user',
'size'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
}
</style>
<iframe al... | 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/twitter-share-button.ts | TypeScript | export class TwitterShareButton extends HTMLElement {
static get observedAttributes(): string[] {
return [
'width',
'url',
'user',
'text',
'size'
];
}
static get template(): string {
return `
<style>
:host {
display: inline-block;
}
... | 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/twitter-follow-button.test.ts | TypeScript | import { TwitterFollowButton } from '../src/twitter-follow-button';
describe('TwitterFollowButton', (): void => {
test('should be defined', (): void => {
expect(TwitterFollowButton).toBeDefined();
});
});
| 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/twitter-hashtag-button.test.ts | TypeScript | import { TwitterHashtagButton } from '../src/twitter-hashtag-button';
describe('TwitterHashtagButton', (): void => {
test('should be defined', (): void => {
expect(TwitterHashtagButton).toBeDefined();
});
});
| 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/twitter-mention-button.test.ts | TypeScript | import { TwitterMentionButton } from '../src/twitter-mention-button';
describe('TwitterMentionButton', (): void => {
test('should be defined', (): void => {
expect(TwitterMentionButton).toBeDefined();
});
});
| 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
test/twitter-share-button.test.ts | TypeScript | import { TwitterShareButton } from '../src/twitter-share-button';
describe('TwitterShareButton', (): void => {
test('should be defined', (): void => {
expect(TwitterShareButton).toBeDefined();
});
});
| 1000ch/twitter-button | 2 | Twitter button as Web Components. | TypeScript | 1000ch | Shogo Sensui | |
src/BLE2902.cpp | C++ | /*
* BLE2902.cpp
*
* Created on: Jun 25, 2017
* Author: kolban
*/
/*
* See also:
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml
*/
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include "BLE2902.h"
BL... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLE2902.h | C/C++ Header | /*
* BLE2902.h
*
* Created on: Jun 25, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_BLE2902_H_
#define COMPONENTS_CPP_UTILS_BLE2902_H_
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include "BLEDescriptor.h"
/**
* @brief Descriptor for Client Characteristic Configuration.
*
* This is a... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLE2904.cpp | C++ | /*
* BLE2904.cpp
*
* Created on: Dec 23, 2017
* Author: kolban
*/
/*
* See also:
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
*/
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include "BLE2904.h"
BL... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLE2904.h | C/C++ Header | /*
* BLE2904.h
*
* Created on: Dec 23, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_BLE2904_H_
#define COMPONENTS_CPP_UTILS_BLE2904_H_
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include "BLEDescriptor.h"
struct BLE2904_Data {
uint8_t m_format;
int8_t m_exponent;
uint16_t m_unit;... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLEAddress.cpp | C++ | /*
* BLEAddress.cpp
*
* Created on: Jul 2, 2017
* Author: kolban
*/
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include "BLEAddress.h"
#include <string>
#include <sstream>
#include <iomanip>
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#ifdef ARDUINO_ARCH_ESP32
#include "esp32-hal-l... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLEAddress.h | C/C++ Header | /*
* BLEAddress.h
*
* Created on: Jul 2, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_BLEADDRESS_H_
#define COMPONENTS_CPP_UTILS_BLEADDRESS_H_
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include <esp_gap_ble_api.h> // ESP32 BLE
#include <string>
/**
* @brief A %BLE device address.
*
... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian | |
src/BLEAdvertisedDevice.cpp | C++ | /*
* BLEAdvertisedDevice.cpp
*
* During the scanning procedure, we will be finding advertised BLE devices. This class
* models a found device.
*
*
* See also:
* https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile
*
* Created on: Jul 3, 2017
* Author: kolban
*/
#include "s... | 1technophile/BLE | 0 | Temporary directory before the release of Arduino ESP32 with the library version | C++ | 1technophile | Florian |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.