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
| #include <windows.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| // ensure only one running instance | |
| HANDLE hMutexHandle = CreateMutex(NULL, TRUE, L"my.mutex.name"); | |
| if (GetLastError() == ERROR_ALREADY_EXISTS) | |
| { | |
| return 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
| ; AutoHotkey Media Keys | |
| ^!Space::Send {Media_Play_Pause} | |
| ^!Left::Send {Media_Prev} | |
| ^!Right::Send {Media_Next} | |
| ^!NumpadMult::Send {Volume_Mute} | |
| ^!NumpadAdd::Send {Volume_Up} | |
| ^!NumpadSub::Send {Volume_Down} |
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
| # Creates a binary sensor with the name and type of the currently playing item as attributes | |
| # Replace <SERVER_ADDRESS>, <API_KEY> and <USERNAME> | |
| - sensor: | |
| name: "Jellyfin NowPlaying" | |
| scan_interval: 30 | |
| command: >- | |
| curl http://<SERVER_ADDRESS>/jellyfin/Sessions\?ApiKey\=<API_KEY> | jq ' | |
| (.[] | select(.UserName == "<USERNAME>") | select(.NowPlayingItem) | select(.PlayState.IsPaused == false)) // {} | |
| | { |
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
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); |
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 { GUI, Controller } from 'lil-gui'; | |
| import '@eastdesire/jscolor'; | |
| export class ColorController extends Controller { | |
| private $input: HTMLInputElement; | |
| private picker: any; | |
| constructor(parent: GUI, object: object, property: string, alpha: boolean | 'auto' = 'auto') { | |
| super(parent, object, property, 'color'); |
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 { GUI, Controller } from 'lil-gui'; | |
| export class TextController extends Controller { | |
| private $button: HTMLButtonElement; | |
| private $text: HTMLTextAreaElement; | |
| constructor(parent: GUI, object: object, property: string, rows: number = 4) { | |
| super(parent, object, property, 'textarea'); |
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 | |
| /** | |
| * Squaricon | |
| * | |
| * @description: PHP image hash generator | |
| * | |
| * @author: Damien "Mistic" Sorel - http://strangeplanet.fr | |
| * @license: MIT | |
| * @version: 2.0.0 | |
| * @date: 21/05/2015 |
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 | |
| /** | |
| * Identicon++ | |
| * | |
| * @description: PHP implementation of Don Park Identicon algorithm with additional shapes and variations. | |
| * | |
| * @author: Damien "Mistic" Sorel - http://strangeplanet.fr | |
| * @license: MIT | |
| * @version: 2.0.0 | |
| * @date: 21/05/2015 |
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
| /** | |
| * jQuery amusesMoi! 1.0 | |
| * | |
| * Copyright 2012-2013, Damien "Mistic" Sorel | |
| * http://www.strangeplanet.fr | |
| * | |
| * License: | |
| * MIT and GPL dual licensing | |
| * | |
| * Depends: |
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
| .textareaLinesNumbers { | |
| position: relative; | |
| } | |
| .textareaLinesNumbers textarea.linesContainer { | |
| display:block; | |
| border:none; | |
| position:absolute; | |
| overflow:hidden; | |
| text-align:right; |
NewerOlder