You are on page 1of 4

Libros pyton

Python - Google Drive

Fondos

Más de 1.000 vídeos en HD y 4K gratis de Motion y Movimiento - Pixabay

este archivo crea todos los archivos de una (ver video en la carpeta)

`touch ${[...document.querySelectorAll("li")].map(e => (


e.innerText.includes("File:")
|| e.innerText.includes("file:")
)
&& e.querySelector("code")
&& e.querySelector("code").innerText
).filter(Boolean).join(" ")}`

`touch ${[...document.querySelectorAll("li")].map(e => ( e.innerText.includes("File:") ||


e.innerText.includes("file:") ) && e.querySelector("code") &&
e.querySelector("code").innerText ).filter(Boolean).join(" ")}`

gita() { sudo git add -A; sudo git commit -m "$1"; sudo git push origin "$2"; }

emacsi() { sudo emacs "$1"; sudo echo "->lines<-"; sudo wc -l "$1"; sudo echo "-
>content<-"; sudo cat "$1"; }

-Wall -pedantic -Werror -Wextra

cd /usr/local/bin/
sudo touch emacsi
sudo emacs emacsi

y compiar ahí este código


#!/bin/bash clear; sudo emacs "$1"; sudo echo "> Lines"; sudo wc
--lines "$1" | cut -c -3; sudo echo "> Content"; sed 's/
/·/g;s/\t/→/g;s/\r/§/g;s/$/¶/g' "$1" | cat --number; if [[ $1 ==
*.c ]]; then #read ; sudo echo "> Betty return"; sudo betty "$1"; fi

https://github.com/jzamora5/holbertonschool-low_level_programming
https://github.com/davixcky/holbertonschool-low_level_programming
https://github.com/Marisol2201/holbertonschool-low_level_programming
https://github.com/philipyoo/holbertonschool-low_level_programming
https://github.com/rydzign/holbertonschool-low_level_programming

Configurar Betty
;; ------------Emacs-Config-for-no-hassle-at-Holberton-School.-------------- ;;
;; ;;
;; This is my configuration file for emacs, was done for use with Vagrant ;;
;; running Ubuntu 14.04.6 LTS trusty on VirtualBox over SSH. ;;
;; ;;
;; Most of the color configuration was done through emacs's own configs for ;;
;; utility colors like the highlight of the whitespaces left around, etc... ;;
;; to change those or pick a different theme, do: ;;
;; ;;
;; M-x and write "menu-bar-open" ;;
;; press 'o' for Options. ;;
;; press 'c' for Customize Emacs ;;
;; ;;
;; And from there you can pick where to go, but is always faster to use ;;
;; commands like: ;;
;; ;;
;; M-x customize-themes ;;
;; ;;
;; This configuration comes with the tab indentation required by the betty ;;
;; coding style in the C language used at Holberton school, lines no ;;
;; more than 80 characters in lenght and some extra features. ;;
;; ;;
;; Any contributions are welcome. ;;
;; - - - - - - - - - | Written by Diego Lopez Jan-2021 |- - - - - - - - - - ;;
;; ---------------------| Cohort 13 @Holberton School |--------------------- ;;
;; ------------------------------------------------------------------------- ;;
;; Default setting and configurations. ;;
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;;
;; Prevents creation of back-up ~files.
(setq backup-inhibited t)
;; Highlights whitespaces and lines over 80 characters.
(require 'whitespace)
(setq whitespace-style '(face empty lines-tail trailing))
(global-whitespace-mode t)
;; Disables auto-save.
(setq auto-save-default nil)
;; Enables use of C-c to copy, C-x to cut...
(cua-mode 1)
;; Auto closing brackets.
(electric-pair-mode 1)
;; Highlights parenthesis and brackets.
(show-paren-mode t)
;; Remembers cursor's last position.
(if (version< emacs-version "25.0")
(progn
(require 'saveplace)
(setq-default save-place t))
(save-place-mode 1)
)
;; UTF-8 as default encoding.
(set-language-environment "UTF-8")
(set-default-coding-systems 'utf-8)
;; Shows cursor position within line.
(column-number-mode 1)
;; Shows line number column on the left by default.
(global-linum-mode t)
;; Makes lines column wider.
(setq linum-format "%3d\u2502 ")
;; Set default C style.
(setq c-default-style "linux" c-basic-offset 4)
;; Sets tabulation spaces.
(setq c-basic-offset 8 tab-width 8)
;; Makes tab key always call an indent command.
(setq-default tab-always-indent t)
;; Make tab key call indent command or insert tab character.
(setq-default tab-always-indent nil)
;; Make tab key do indent first then completion.
(setq-default tab-always-indent 'complete)
;; Bound f5 to comment and f6 to uncomment region.
(global-set-key [f5] 'comment-region)
(global-set-key [f6] 'uncomment-region)
;; ------------------------------------------------------------------------- ;;
;; Custom variables. ;;
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;; '(company-idle-delay 0.05)
;; '(company-minimum-prefix-length 1)
'(custom-enabled-themes (quote (tsdh-dark)))
'(custom-safe-themes (quote
("14aaa858f62de91b7cb444ce50ece2ebc4abe2248cc5f821538dd0d182ad6a4a" default)))
'(menu-bar-mode nil)
)
;; ------------------------------------------------------------------------- ;;
;; Custom faces. ;;
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;;
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(button ((t (:foreground "color-178" :overline t :underline t))))
'(custom-button-pressed-unraised ((t (:inherit custom-button-pressed-
unraised :foreground "color-94"))))
'(custom-group-tag ((t (:inherit variable-pitch :foreground "color-136"
:weight bold :height 1.2))))
'(custom-group-tag-1 ((t (:inherit variable-pitch :foreground "color-94"
:weight bold :height 1.2))))
'(custom-state ((t (:foreground "color-47"))))
'(custom-variable-tag ((t (:foreground "color-136" :weight bold))))
'(eieio-custom-slot-tag-face ((t (:foreground "color-136"))) t)
'(error ((t (:foreground "brightred" :weight bold))))
'(font-lock-negation-char-face ((t (:foreground "brightred" :underline
(:color "brightred" :style wave)))))
'(link ((t (:foreground "color-178" :underline t))))
'(link-visited ((t (:inherit link :foreground "color-94"))))
'(linum ((t (:inherit (shadow default) :foreground "color-243"))))
'(menu ((t nil)))
'(minibuffer-prompt ((t (:foreground "color-220"))))
'(mode-line ((t (:background "color-236" :foreground
"brightwhite" :box (:line-width -1 :color "red" :style released-button)))))
'(mode-line-buffer-id ((t (:foreground "color-178" :weight
bold))))
'(mode-line-emphasis ((t (:weight bold))))
'(mode-line-highlight ((t (:box (:line-width 2 :color "grey40"
:style released-button)))))
'(mode-line-inactive ((t (:inherit mode-line :background
"color-235" :foreground "color-243" :box (:line-width -1 :color "grey40") :weight
light))))
'(region ((t (:inverse-video t))))
'(show-paren-match ((t (:foreground "#00FF00"))))
'(show-paren-mismatch ((t (:foreground "#FF00FF"))))
'(trailing-whitespace ((t (:background "brightred"))))
'(whitespace-line ((t (:background "color-234"
:foreground "brightred" :inverse-video t)))))
;; ------------------------------------------------------------------------- ;;
;; Added lisp packages. ;;
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;;
;; ;;
;; Section for lisp packages, add the packages in your ~/.emacs.d/lisp ;;
;; if the dir doesn't exist you can create it. ;;
;; ;;
;; To enable configurations below uncomment or erase the first two ;; at ;;
;; the beggining on the lines where it says to. ;;
;; ;;
;; -01. Indent-guide package: https://github.com/zk-phi/indent-guide ;;
;;
;; Tells emacs where the elisp lib dir is.
;;(add-to-list 'load-path "~/.emacs.d/lisp/") ;; <--- Uncomment this line
;; 01. Loads Indent-guide package.
;;(load "indent-guide") ;; <---Uncomment this line
;; Sets color of indentation-guide character.
;;(set-face-foreground 'indent-guide-face "color-243") ;; <---Uncomment this
line.
;;(indent-guide-global-mode) ;; <---Uncomment this line
;; To enable completion install the package running the command:
;; M-x list-packages and find the company package.
;;
;; 02. Enables complete-anything on all buffers.
;;(add-hook 'after-init-hook 'global-company-mode) ;;<---Uncomment this line.
;; Adds Melpa packages
;; (require 'package)
;; (add-to-list 'package-archives
;; '("melpa" . "https://melpa.org/packages/") t)
;; (package-initialize)

You might also like