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
import * as fs from "fs"; | |
import * as path from "path"; | |
function updateImportsToUseFileExtension(directoryPath: string): void { | |
const files = fs.readdirSync(directoryPath); | |
files.forEach((file) => { | |
const filePath = path.join(directoryPath, file); | |
// Check if the file is a TypeScript file |
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
module.exports = { | |
root: true, | |
parser: '@typescript-eslint/parser', | |
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | |
plugins: ['svelte3', '@typescript-eslint'], | |
ignorePatterns: ['*.cjs'], | |
overrides: [ | |
{ | |
files: ['**/*.svelte'], | |
processor: 'svelte3/svelte3' |
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 min(arr) { | |
if (!arr) return NaN; | |
let min = Number.MAX_VALUE; | |
for (const element of arr) { | |
if (element < min) { | |
min = element; | |
} | |
} | |
return min; |
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
let str1 = "hello"; | |
let str2 = ""; | |
for (let i = str1.length - 1; i >= 0; i--) { | |
str2 += str1[i]; | |
} | |
console.log(str1, "=>", str2); |
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
diff --git a/src/client/pages/graphics.svelte b/src/client/pages/graphics.svelte | |
index 427638c..b2af00f 100644 | |
--- a/src/client/pages/graphics.svelte | |
+++ b/src/client/pages/graphics.svelte | |
@@ -38,7 +38,7 @@ | |
<!-- Per Bundle; this sets the name --> | |
<div class="font-bold wrapper-title bg-primary text-primary-content rounded-tl-lg border-neutral-focus border-1 p-1"> | |
<span class="text-xl">{bundle.name}</span> | |
- <div class="tooltip tooltip-bottom z-20" data-tip="Reload all graphics in this bundle"> | |
+ <div class="tooltip tooltip-bottom" data-tip="Reload all graphics in this bundle"> |
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
#include <stddef.h> | |
// sdbm from here: | |
// http://www.cse.yorku.ca/~oz/hash.html | |
static size_t cstr_hash(const char *str) | |
{ | |
size_t hash = 0; | |
int c; | |
while ((c = *str++)) | |
hash = c + (hash << 6) + (hash << 16) - hash; |
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
$ ninja -C build | |
ninja: Entering directory `build' | |
[34/261] Compiling C++ object libscintilla.a.p/scintilla_gtk_ScintillaGTK.cxx.o | |
../scintilla/gtk/ScintillaGTK.cxx: In function 'std::vector<int> MapImeIndicators(PangoAttrList*, const char*)': | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_SINGLE_LINE' not handled in switch [-Wswitch] | |
2301 | switch (uline) { | |
| ^ | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_DOUBLE_LINE' not handled in switch [-Wswitch] | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_ERROR_LINE' not handled in switch [-Wswitch] | |
[82/261] Compiling C object libfnmatch.a.p/ctags_fnmatch_fnmatch.c.o |
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
#pragma once | |
#include <type_traits> | |
template <typename E> | |
struct enable_enum_flags { | |
static constexpr const bool value = false; | |
}; | |
template <typename E> |
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
[theme_info] | |
name=No Theme | |
description=A colour theme with no language highlighting. | |
version=0.01 | |
author= | |
url= | |
[named_styles] | |
default=0x000000;0xffffff;false;false |
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
diff --git a/meson.build b/meson.build | |
index ab1148cc..3d045976 100644 | |
--- a/meson.build | |
+++ b/meson.build | |
@@ -32,11 +32,11 @@ def_cflags += '-DGEANY_DOCDIR="@0@"'.format(join_paths(prefix, get_option('datad | |
geany_cflags = def_cflags | |
have_gcc4_visibility = cc.has_argument('-fvisibility=hidden') | |
geany_cflags += '-DGEANY_PRIVATE' | |
-if target_machine.system() == 'windows' | |
- geany_cflags += '-DGEANY_EXPORT_SYMBOL="__declspec(dllexport)"' |
NewerOlder