Skip to content

Instantly share code, notes, and snippets.

View eugener's full-sized avatar

Eugene Ryzhikov eugener

View GitHub Profile
@eugener
eugener / gostty-settings.ini
Created January 10, 2025 03:27
Gostty settings
font-size=16
window-padding-balance=true
window-padding-x=10
window-save-state=always
background-opacity=0.9
background-blur-radius=20
confirm-close-surface=always
@eugener
eugener / zed-settings.json
Created January 10, 2025 03:26
Zed configuration
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"assistant": {
@eugener
eugener / Clerk Themed Provider.tsx
Created December 8, 2024 01:56
Clerk Themed Provider ( based on next-theme)
'use client';
import { ClerkProvider } from "@clerk/nextjs";
import { dark } from "@clerk/themes";
import { useTheme } from "next-themes";
export function ClerkThemedProvider({ children }: { children: React.ReactNode }) {
const { resolvedTheme } = useTheme();
const clerkTheme = resolvedTheme === 'dark' ? dark : undefined;
@eugener
eugener / Octokit Github App webhook.ts
Last active December 8, 2024 01:55
Octokit Github App webhook
import { App } from '@octokit/app';
import { EmitterWebhookEvent } from '@octokit/webhooks';
import { WebhookEventName } from '@octokit/webhooks-types';
import { AppService } from '../github-apps/services/app-service';
//prep:create app
this.app = new App({
appId,
privateKey,
webhooks: {
package org.oxbow.codebridge.ui.main
import java.io.File
import scala.reflect.runtime.universe
import org.controlsfx.control.StatusBar
import org.oxbow.codebridge.scm.Repository
import org.oxbow.codebridge.util.InjectableController
import javafx.application.Platform
import javafx.fxml.FXML
import javafx.geometry.Orientation
plugins: [
"hyper-statusline",
"hyperterm-bold-tab",
"hyper-tabs-enhanced",
"hyper-papercolor",
"hyper-opacity",
"hyper-simple-highlight-active-session",
"hypercwd",
"hyper-pane",
"hyper-search"
{
"editor.fontSize": 15,
"editor.fontFamily": "Consolas, Menlo, Monaco, 'Courier New', monospace",
"editor.tabSize": 4,
"terminal.integrated.fontFamily": "Consolas, Menlo, Monaco, 'Courier New', monospace",
"terminal.integrated.fontSize": 15,
// "terminal.integrated.fontWeight"
"http.proxy": "http://go-proxy.fpl.com:8080",
@eugener
eugener / OptionCheatsheet.scala
Created December 3, 2012 03:00 — forked from devnulled/OptionCheatsheet.scala
Scala Option Cheatsheet
// flatMap
// This code is equivalent to:
// option.flatMap(foo(_))
option match {
case None => None
case Some(x) => foo(x)
}
// flatten
// This code is equivalent to:
@eugener
eugener / Spring AOP Configuration to use Spring annotations in Scala
Last active August 28, 2018 00:31
Spring AOP Configuration to use Spring annotations in Scala
<!--
Following switches Spring proxy targeting to classes vs interfaces as default
and allows for using Spring annotations (scanning etc) in Scala
-->
<aop:config proxy-target-class="true"/>
JTable table = TableRowFilterSupport.forTable(new JTable()).searchable(true).apply();