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
function byId(id) { | |
return document.querySelectorAll(`[data-bi-id=${id}]`)[0] | |
} | |
function text(el) { | |
return el?.textContent || el?.innerText | |
} | |
function currentPage() { | |
el = document.querySelectorAll('.SiteNavigation__link--active')[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
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Prject.Config; | |
using Project.Database.Entities; | |
using NHibernate; | |
namespace Project.Queries | |
{ | |
// I just want to get all the units from the db. |
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
Dir.glob("*.flac").each do |f| | |
flac = "./#{f.gsub(' ', '\ ')}" | |
mp3 = "./#{f.gsub(' ', '\ ').chomp('.flac')}.mp3" | |
system("ffmpeg -i #{flac} -map_metadata 0:g:0 #{mp3}") | |
end |
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
function set_window_title | |
{ | |
local title="$1" | |
if [[ -z "$title" ]]; then | |
title="root" | |
fi | |
# Set window title | |
echo -n -e "\033]0;${title}\a" | |
} |