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
from concurrent.futures import ThreadPoolExecutor, as_completed | |
from random import randint | |
from time import sleep | |
def task(): | |
sleep_time = randint(1, 10) | |
print(f'sleeping {sleep_time}') | |
sleep(sleep_time) | |
return 5 * 5 |
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
\\wsl.localhost\Debian\home\<username>\ |
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 { /Fortnite.com/Devices } | |
using { /Verse.org/Simulation } | |
using { /UnrealEngine.com/Temporary/Diagnostics } | |
using { /UnrealEngine.com/Temporary/SpatialMath } | |
pawn := class(): | |
var TotalHP<private> : int = 100 | |
var CurrentHP<private> : int = 100 |
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 { /Fortnite.com/Devices } | |
using { /Verse.org/Simulation } | |
using { /Verse.org/Verse } | |
using { /UnrealEngine.com/Temporary/Diagnostics } | |
slice_class := class(creative_device): | |
Item1 : []string = array{"zero", "one", "two", "three", "four"} | |
Item2 : string = "string here" |
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 { /Fortnite.com/Devices } | |
using { /Verse.org/Simulation } | |
using { /Verse.org/Verse } | |
using { /UnrealEngine.com/Temporary/Diagnostics } | |
arrays_maps := class(creative_device): | |
Words : []string = array{"zero", "one", "two", "three", "four"} | |
var Result1 : []string = array{} | |
var Result2 : [string]string = map{ |
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
module.exports = { | |
env: { | |
browser: true, | |
es2021: true, | |
}, | |
extends: 'airbnb-base', | |
overrides: [ | |
], | |
parserOptions: { | |
ecmaVersion: 'latest', |
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 <stdio.h> | |
#include <stdlib.h> | |
#define CHUNK 32 | |
void *my_realloc(void *buffer, size_t size) { | |
char *tmp = realloc(buffer, size); | |
if (!tmp) { | |
perror("realloc"); | |
free(buffer); |
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
{ | |
"[javascript]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "biomejs.biome", | |
}, | |
"[shellscript]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "timonwong.shellcheck", | |
}, |
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
// package.json must have similar to below | |
// in the "scripts" section: | |
// "scripts": { | |
// "start": "electron .", | |
// "pack": "electron-builder -m", | |
// "test": "echo \"Error: no test specified\" && exit 1" | |
// } | |
// | |
// | |
// Disable code signing: |
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
# install into node_modules: | |
npm install electron --save-dev | |
npm install electron-builder --save-dev | |
{ | |
"name": "glow_clock", | |
"version": "1.0.0", | |
"main": "main.js", // <-should be createWindow() electron starting point | |
"scripts": { | |
"start": "electron .", |
NewerOlder