Skip to content

Instantly share code, notes, and snippets.

View JUNKI555's full-sized avatar
😂

JUNYA KITAYAMA JUNKI555

😂
View GitHub Profile
@JUNKI555
JUNKI555 / 20230708_ruby_uniq_speedtest.rb
Created July 8, 2023 06:23
Ruby 重複削除スピードテスト
# ruby uniq speed test : Ruby 2.7.3
# こっちも参考に
# https://www.eisbahn.jp/yoichiro/2012/04/ruby_uniq_array.html#gsc.tab=0
# https://zenn.dev/universato/articles/20201210-z-ruby
#
#
# :::::Result: (何回か試行したが大差なかった)
# [109] pry(main)> uniq_email_and_user_names
# 1.378417334
# => 10
@JUNKI555
JUNKI555 / electron_index.js
Created December 20, 2021 16:19
Electron resizable false maximize window current Display
const { BrowserWindow, screen } = require('electron')
const createWindow = () => {
// get current display
const targetDisplay = screen.getDisplayNearestPoint(screen.getCursorScreenPoint())
// set resizable maximize
// show more
// https://github.com/electron/electron/issues/19934
// https://stackoverflow.com/questions/50213126/how-to-create-a-non-resizable-and-100-screen-not-full-screen-browserwindow
const transparentWindow = new BrowserWindow({
@JUNKI555
JUNKI555 / output_manifest_js.js
Created December 5, 2020 13:43
Simpacker 用 manifest.json 出力 Node.js スクリプト
// ==================================================
// Simpacker 用 manifest.json 出力 Node.js スクリプト
// 基本の使い方:node output_manifest_js.js public
// ==================================================
const fs = require('fs');
const path = require('path');
const crypto = require('crypto')
// default ignore Path
const DEFAULT_IGNORE_PATH = 'public';
// default manifest.json path
@JUNKI555
JUNKI555 / DotNetCore.flt
Created June 24, 2019 05:28
WinMergeでgit管理の.Net Coreプロジェクトを比較するときの除外フィルタ設定
## This is a directory/file filter template for WinMerge
name: exclude for dotnet core
desc: exclude
## Select if filter is inclusive or exclusive
## Inclusive (loose) filter lets through all items not matching rules
## Exclusive filter lets through only items that match to rule
## include or exclude
def: include
@JUNKI555
JUNKI555 / jobcan_sort_projects_value.js
Created May 15, 2019 09:46
20190508_JOBCANのプロジェクト名入力セレクトボックスをvalue順にソートするBookmarklet
javascript:void((function() {
$("[name='projects[]']").each(function(i, obj){
var selectedValue = $(obj).val();
var sortedItems = $(obj).children().sort(function(a,b){
var sortA= a.text;
var sortB = b.text;
if (sortA > sortB) {
return 1;
} else if (sortA < sortB) {
return -1;
@JUNKI555
JUNKI555 / docker-compose.yml
Created April 26, 2019 09:22
20190426_Wekan_DockerCompose
version: '3'
services:
wekan:
image: mquandalle/wekan
links:
- wekandb
environment:
- MONGO_URL=mongodb://wekandb/wekan
- ROOT_URL=http://{your ip or computer name}:9080
ports: