Image | App ID | App Name | Category | Deploy Date |
---|
This file contains 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
// mqtt örneği | |
// mqtt paketini dahil edin | |
const mqtt = require('mqtt'); | |
// Broker'a bağlanın | |
const client = mqtt.connect('mqtt://test.mosquitto.org'); // Örnek olarak, test.mosquitto.org üzerindeki ücretsiz bir MQTT broker kullanılabilir | |
// Bağlandığında gerçekleşecek olayı dinleyin | |
client.on('connect', () => { |
This file contains 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
class AsyncLock { | |
private _lock = new Int32Array(new SharedArrayBuffer(4)) // SharedArrayBuffer for multi-threading, 4 bytes for 32-bit integer | |
static INDEX = 0 | |
static UNLOCKED = 0 | |
static LOCKED = 1 | |
lock() { | |
while (true) { | |
console.log("lock") |
This file contains 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 createExpDate(year, month) { | |
const expDate = (year - 2000) * 12 + month - 1; | |
} | |
function createRndNumber(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function CompileString(str) { | |
result = new Uint32Array(1); |
This file contains 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
DebugMessage(str) | |
{ | |
global h_stdout | |
DebugConsoleInitialize() ; start console window if not yet started | |
str .= "`n" ; add line feed | |
DllCall("WriteFile", "uint", h_Stdout, "uint", &str, "uint", StrLen(str), "uint*", BytesWritten, "uint", NULL) ; write into the console | |
WinSet, Bottom,, ahk_id %h_stout% ; keep console on bottom | |
} | |
DebugConsoleInitialize() |
This file contains 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
char a[20]; | |
void setA(char b){ | |
*a=b; | |
} | |
char getA(){ | |
return *a; | |
} | |
int main() { | |
setA("atest"); |
This file contains 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(){ | |
/** | |
* Capture error data for debugging in web console. | |
*/ | |
var captures = []; | |
/** | |
* Wait until `window.onload`, so any external scripts |
This file contains 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
// ==UserScript== | |
// @name odnoklassniki | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author AlpGul | |
// @include * | |
// @grant none | |
// ==/UserScript== |
Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3
Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
This file contains 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 strict'; | |
( t => { | |
const h = t.FEATURES; | |
t.extend( { | |
extension: { | |
onConnect: { | |
addListener: function ( a ) { | |
return chrome.runtime.onConnect.addListener( a ) | |
} | |
}, |
NewerOlder