Skip to content

Instantly share code, notes, and snippets.

View halllllll's full-sized avatar
🌴
On vacation

halK halllllll

🌴
On vacation
View GitHub Profile
@halllllll
halllllll / 0決め打ちダミーアカウント生成.gs
Last active November 4, 2021 10:15
Google Apps Script - generate dummy account on sheet
const sheet = SpreadsheetApp.getActiveSheet();
/**
* カスタムメニュー作成
*/
function onOpen(e) {
const ui = SpreadsheetApp.getUi();
const menu = ui.createMenu('GIG');
menu.addItem("ダミーアカウント追加", 'genDummyMenu_');
{"lastUpload":"2019-08-10T07:58:42.864Z","extensionVersion":"v3.4.1"}
@halllllll
halllllll / README.md
Created August 17, 2018 02:39
RSpec practice

これを学習したメモっつかパクリです

@halllllll
halllllll / Rakefile
Created July 17, 2018 08:03
my first Rakefile practice.
#参考 http://www2s.biglobe.ne.jp/~idesaku/sss/tech/rake/
require 'rake/clean'
# なぜか消えない
CLEAN.include('*.o')
CLOBBER.include('*.o')
CLEAN << "*.o"
CLOBBER << "*.o"
@halllllll
halllllll / alphabet.go
Created March 29, 2018 12:03
さっき作ったgenerate_alphabet.go を利用してa-zのstring出すやつ
package main
import (
"fmt"
)
func craetea2z() string {
alphabet := make([]rune, 0)
for cur := []rune("a"); ; cur[0] += 1 {
alphabet = append(alphabet, cur[0])
@halllllll
halllllll / generate_alphabet.go
Created March 28, 2018 15:44
runeってかbyteだけどそれを利用してアルファベットをaから作るやつ
package main
import (
"fmt"
)
func main(){
fmt.Println("アルファベット文字列の辞書順について.")
// 要はrune(byte)なのでアルファベット全部生成できないか?
alp := "a"
for _, v := range alp{
@halllllll
halllllll / nihongo_sort_join.go
Created March 28, 2018 05:14
nihongo is muzukasii-
package main
import (
"fmt"
"sort"
"strings"
)
func main(){
message := "いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑいもせす"
lnh := len([]rune(message))
ms := make([]string, lnh)
@halllllll
halllllll / reposityorytest.txt
Created February 5, 2018 04:35
repository test
tes
@halllllll
halllllll / gist:966f188e54d0f51d59028897bee19c0b
Last active February 5, 2018 05:14 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>カレーのレシピ</title>
</head>
<body>
<article>
<section>
<header>
@halllllll
halllllll / utility.go
Last active March 4, 2021 00:21
go utilities for competitive programming
package main
import (
"bufio"
"fmt"
"os"
"reflect"
"strconv"
)