Dockerized Plex with Transmission and Radarr and Sonarr for more easily movies and TV series download.
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
const std = @import("std"); | |
const Data = struct { | |
val: u64, | |
frame: ?anyframe = null, | |
}; | |
const Node = struct { | |
data: Data = undefined, | |
next: ?*Node = null, |
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
/** @param {string} csvString * @returns {object[]} */ | |
export function CSV2JSON(csvString) { | |
const rows = csvString.split("\n"); | |
const header = rows[0]; | |
const cols = header.split(","); | |
return rows | |
.filter((r) => r.length !== 0) | |
.slice(1) | |
.map((row) => { | |
const rowCols = row.split(","); |
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
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then | |
// use window.btoa' step. According to my tests, this appears to be a faster approach: | |
// http://jsperf.com/encoding-xhr-image-data/5 | |
/* | |
MIT LICENSE | |
Copyright 2011 Jon Leighton | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
Zig FMT is consistent and has a immutable style. But sometimes its hard to get around it. Here are a few places where Zig FMT might help but you may not know it:
By default zig fmt formats struct fields into one line:
const MyStruct = { hello: "darkness", my_old: "friend" };
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
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101 | |
* 2017-12-05 | |
* | |
* -- T. | |
*/ | |
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
#include <stdlib.h> | |
#include <stdio.h> |
-
nimly - Lexer Generator and Parser Generator as a Library in Nim.
With nimly, you can make lexer/parser by writing definition in formats like lex/yacc. nimly generates lexer and parser by using macro in compile-time, so you can use nimly not as external tool of your program but as a library.
- room cleaning motor with house map
- Vertical hanging plotter - ODrive like a. Don't use your own motor circuit.
- https://ftp.heanet.ie/mirrors/fosdem-video/2020/AW1.125/nimoneverything.mp4 - Check out this video!
NewerOlder