This file contains hidden or 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
| /* | |
| Making a Tornado/Hurricane with circles of different sizes and sin waves (WIP) | |
| moving forward and disappering | |
| */ | |
| int x = 0; | |
| int x_dis = 0; | |
| int y = 0; | |
| int x2 = 0; | |
| int y2 = 0; |
This file contains hidden or 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
| #!/usr/bin/env bb | |
| (defn money-sum | |
| "Calcula el total de sumar los billetes de las diversas denominaciones" | |
| [bills] | |
| (reduce + (map #(* %1 %2) (keys bills) (vals bills)))) | |
| (def bills (apply hash-map [500 (Integer/parseInt (nth *command-line-args* 0 0)) | |
| 200 (Integer/parseInt (nth *command-line-args* 1 0)) | |
| 100 (Integer/parseInt (nth *command-line-args* 2 0)) |
This file contains hidden or 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
| #!/usr/bin/env bb | |
| (require '[babashka.process :refer [shell]] | |
| '[clojure.java.io :as io] | |
| '[clojure.string]) | |
| ;; (def image-extensions #{".jpg" ".jpeg" ".png" ".webp" ".bmp" ".svg"}) | |
| (def wallpaper-locations [ ;; "." | |
| "/usr/share/endeavouros/backgrounds" | |
| "/usr/share/backgrounds/xfce" | |
| "/home/maribelma/Imágenes/wallpapers" |
This file contains hidden or 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
| ;; #!/usr/bin/env bb | |
| ;; This was designed for babashka but because of trouble with Locales | |
| ;; must be executed as clj -M kindle-hg.bb instead, using the "normal" JVM and not the Graal one or the bb binary | |
| ;; This is only the case if mixing spanish and english locales in the My Clippings.txt file | |
| ;; and ONLY affects the timestamps in org format, failing to Epoch. | |
| (require '[clojure.string]) | |
| (import '[java.time.format DateTimeFormatter] | |
| '[java.time LocalDateTime] | |
| '[java.util Locale]) |
This file contains hidden or 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
| # https://github.com/Murzchnvok/polybar-collection/blob/master/themes/murz/tray.ini | |
| [bar/mi_barra] | |
| width = 100% | |
| height = 24 | |
| # font-0 = "JetBrainsMono Nerd Font:size=10;2" | |
| #icons normal size | |
| font-0 = "JetBrainsMono Nerd Font:style=Normal:size=11;3" | |
| # icons big size (most for border) | |
| font-1 = "JetBrainsMono Nerd Font:style=Normal:size=19;5" | |
| # text normal |
This file contains hidden or 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
| /* hides the native tabs */ | |
| #TabsToolbar | |
| { | |
| visibility: collapse; | |
| } | |
| /* hides the title bar */ | |
| #titlebar { | |
| visibility: collapse; | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| exec stack ghc -- \ | |
| --make xmonad.hs \ | |
| -i \ | |
| -ilib \ | |
| -fforce-recomp \ | |
| -main-is main \ | |
| -v0 \ | |
| -o "$1" |
This file contains hidden or 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
| #!/bin/bash | |
| db_name="your_database_name" | |
| fecha=$(date +"%Y%m%d%H%M%S") | |
| rutarespaldo="/the/path/Where_you-want-to-store-the/DB/${db_name}.${fecha}" | |
| mysqldump --column-statistics=0 -u root "${db_name}" > "${db_name}.${fecha}.sql" | |
| zip -m "${rutarespaldo}.zip" "${db_name}.${fecha}.sql" |
This file contains hidden or 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
| #!/bin/bash | |
| # Usage : MakeBase64CSV.sh infile.csv outfile.csv | |
| # infile.csv columns are : externalID, name, filename or identifier | |
| # infile.csv separator MUST BE | | |
| echo \"External ID\",\"Name\",\"Image\" > $2 | |
| while IFS="|" read f1 f2 f3; do |
This file contains hidden or 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
| #!/bin/bash | |
| # if no args open new frame | |
| if [ $# -eq 0 ]; then | |
| jumpapp -R emacs || emacsclient -nc | |
| exit | |
| fi | |
| emacsclient -e "(frames-on-display-list \"$DISPLAY\")" # &>/dev/null |
NewerOlder