Skip to content

Instantly share code, notes, and snippets.

View k-kurikuri's full-sized avatar
🌰
Working

k-kurikuri k-kurikuri

🌰
Working
View GitHub Profile
@maratori
maratori / .golangci.yml
Last active December 13, 2024 20:47
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021 Marat Reymers
## Golden config for golangci-lint v1.62.2
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt and change it for your needs.
run:
@zchee
zchee / actionlist.vim
Last active December 12, 2024 01:18
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active November 25, 2024 17:55
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@voluntas
voluntas / working_time.rst
Last active October 21, 2024 15:20
時雨堂を支える固定時間労働 1 日 6 時間

時雨堂を支える固定時間労働 1 日 6 時間

更新:2024-01-20
作者:@voluntas
バージョン:2024.1
URL:https://voluntas.github.io/

概要

@mustafaturan
mustafaturan / chunk.go
Created February 5, 2019 07:00
Go / Chunk Slice
# https://play.golang.org/p/JxqibtHkuO-
func chunkBy(items []string, chunkSize int) (chunks [][]string) {
for chunkSize < len(items) {
items, chunks = items[chunkSize:], append(chunks, items[0:chunkSize:chunkSize])
}
return append(chunks, items)
}
package main
import (
"fmt"
)
func main() {
for i := 1000; i <= 100000; i += 1000 {
n := scramble(uint32(i))
rn := scramble(n)
@kmizu
kmizu / gist:1876800
Last active December 22, 2019 00:05 — forked from gakuzzzz/gist:1865400
Scala環境構築

Scala 開発環境構築手順

前提条件

  • JDKがinstall済みであること
  • java コマンドに環境変数Pathが通っていること
@GINK03
GINK03 / 食べログEDA.md
Last active October 22, 2019 05:17
食べログEDA

食べログEDA

3.6点の壁は本当にあるのか

スクレイピングのコード

import os
import sys
@koyhoge
koyhoge / report.md
Last active November 18, 2018 02:35
エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』  参加メモ

エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』 参加メモ

イベントURL: https://coedo-dev.doorkeeper.jp/events/31461