Skip to content

Instantly share code, notes, and snippets.

Инструкция как собрать JDK + JavaFX

Зачем это нужно

Для 1С:EDT, но текущие JDK не подходят:

  • Azul Zulu - работает нестабильно
  • Liberica - без впн не скачать, на работе это проблема
  • AxiomJDK - бесплатной версии для коммерческой разработки нет (есть версия для тестирования и версия для дома и собственных проектов)

Сборка JDK + JavaFX

Все пути и версии меняйте на свое усмотрение

@mlanin
mlanin / progress_bar.go
Created February 14, 2022 07:02
Create a nice progress bar using symbols
package progress_bar
import (
"strings"
"text/template"
)
// Options can be used to customize look of the progress bar. DefaultProgressOptions() has pretty good defaults.
type Options struct {
Fill string // The character(s) used to fill in the progress bar

Awesome Go

Build Status Awesome Slack Widget Netlify Status

Sponsorships

Digital Ocean

We have no monthly cost, but we have employees working hard to maintain the Awesome Go, with money raised we can repay the effort of each person involved! All billing and distribution will be open to the entire community.

A cura

@mekhanme
mekhanme / profiles.json
Created December 26, 2019 10:23
Windows Terminal config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"copyOnSelect": false,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?│",
"defaultProfile": "{24e4b58f-d9bd-476e-9a95-bda3c133f5b4}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
@ovcharik
ovcharik / wt-tilda.ahk
Last active September 3, 2021 09:59
Autohotkey script. Run/Show/Hide Windows Terminal on top of the screen by F1 hotkey.
#NoEnv
#SingleInstance force
SetWinDelay, -1
DetectHiddenWindows, on
Menu, Tray, NoStandard
; Menu, Tray, Icon, wt-tilda.ico
Menu, Tray, Add, Exit, Exit

Install Zsh and Oh-my-zsh on CentOS 7

Based on this article

ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does

This script can be copy paste to ssh as is. No hands installation. :-)

yum install zsh -y
@PlugFox
PlugFox / Макет.html
Last active January 27, 2021 15:11
Журнал Регистрации ➜ Телеграмм
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Журнал регистрации</title>
<style>.container{margin:0 auto;width:100%}@media only screen and (min-width:601px){.container{width:95%}}@media only screen and (min-width:993px){.container{width:90%}}.deep-orange{background-color:#ff5722!important}table,th,td{border:0}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:0}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(255,87,34,0.5)}table.centered thead tr th{text-align:center}tr{border-bottom:1px solid rgba(0,0,0,0.12)}td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-r
$report = Select-String -Path .\history.mxl -Pattern "{`"#`"," | select Line
$ver = ""
for ($i = 0; $i -lt $report.count; $i++) {
if ($report[$i].Line.StartsWith("{`"#`",`"Version:`"}")) {
$raw = $report[$i+1].Line
$ver = $raw.Substring(6, $raw.Length - 8) -replace ","
}
}
@lummie
lummie / custom_time.go
Last active August 14, 2024 14:14
Golang custom date / time formats when marshalling to JSON
// CustomTime provides an example of how to declare a new time Type with a custom formatter.
// Note that time.Time methods are not available, if needed you can add and cast like the String method does
// Otherwise, only use in the json struct at marshal/unmarshal time.
type CustomTime time.Time
const ctLayout = "2006-01-02 15:04:05 Z07:00"
// UnmarshalJSON Parses the json string in the custom format
func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) {
@rsudip90
rsudip90 / nullHandle_extends.go
Last active January 3, 2024 21:46
database rows null handling in go by extending types
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"time"
"github.com/go-sql-driver/mysql"