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
| import { Injectable } from '@angular/core'; | |
| import { HttpClient } from '@angular/common/http'; | |
| import { Observable } from 'rxjs'; | |
| enum Snippets { | |
| skills = "skills-names", | |
| workers = "workers-list", | |
| workers_by_skill = "workers-list-by-skill", | |
| } |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| REM :: Create an output directory so we don't overwrite original files | |
| mkdir "output" 2>nul | |
| :: Loop through all .mp3 files in the current directory | |
| for %%F in (*.mp3) do ( | |
| set "filename=%%~nF" | |
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
| <?php | |
| function isDevanagariConsonant($char) | |
| { | |
| $code = uniord($char); | |
| return ($code >= 0x0915 && $code <= 0x0939); // क - ह | |
| } | |
| function isVowelSign($char) | |
| { |
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
| // List of resources embedded in a Qt application | |
| QDirIterator it(":", QDirIterator::Subdirectories); | |
| while (it.hasNext()) | |
| { | |
| QString dir = it.next(); | |
| qDebug() << dir; | |
| // /icons/. | |
| // /icons/logo.svg | |
| // ... |
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
| // Determine the horizontal position | |
| bool left = x <= MARGIN; | |
| bool right = x >= w - MARGIN; | |
| // Determine the vertical position | |
| bool top = y <= MARGIN; | |
| bool bottom = y >= h - MARGIN; | |
| if (left && top) { | |
| setCursor(Qt::SizeFDiagCursor); // Top-Left corner ( \ ) |
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
| // work in progress | help required | |
| void PatternEditor::randomizePatterns() | |
| { | |
| TrackContainer::TrackList tl = model()->tracks(); | |
| // @todo Skip counting unsunpported tracks | |
| int tracks = tl.size(); | |
| if(tracks>24) | |
| { |
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
| ``` | |
| use Illuminate\Support\Facades\DB; | |
| ... | |
| public function boot(): void | |
| { | |
| DB::statement("ATTACH DATABASE '/path/database2.db' AS db2;"); | |
| } | |
| ``` |
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 Microsoft.AspNetCore.Mvc; | |
| namespace web.Controllers | |
| { | |
| public class EndPointDTO | |
| { | |
| public string? name { get; set; } | |
| public string? pattern { get; set; } | |
| public List<string>? methods { get; set; } | |
| } |
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
| # Author: @anytizer, 2025-10-25 | |
| # Advanced usages: | |
| # python lmms-zyn.py > lmms-zyn.csv | |
| # Helps to analyze zynaddsubfx presets (compressed files) | |
| # Compare with original release repo and LMMS Embedded Presets | |
| import os | |
| import hashlib |
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
| # Creating a git Repo over HTTP(s) | |
| It could be riskier to use git over http(s). | |
| Use alternatives when possible. | |
| Reference materials | |
| - https://git-scm.com/docs/git-update-server-info.html | |
| - https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP | |
| - https://web.mit.edu/git/www/howto/setup-git-server-over-http.html |
NewerOlder