This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"image/color" | |
"machine" | |
"time" | |
"tinygo.org/x/drivers" | |
"tinygo.org/x/drivers/ssd1306" | |
"tinygo.org/x/tinyfont" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var currentUrl=window.location.href.split("?")[0];if(currentUrl.startsWith("https://wrcbuddy.com/static-leaderboard")){var parts=currentUrl.split("/");var selectedLocation=parts[4];var selectedRoute=parts[5];var selectedVehicleClass=parts[6];var selectedSurfaceCondition=parts[7];var racenetUrl="https://racenet.com/ea_sports_wrc/leaderboards/?selectedLocation="+selectedLocation+"&selectedRoute="+selectedRoute+"&selectedSurfaceCondition="+selectedSurfaceCondition+"&selectedVehicleClass="+selectedVehicleClass+"&slot=secondary";window.location.href=racenetUrl;}else if(currentUrl.startsWith("https://racenet.com/ea_sports_wrc/leaderboards")){var params=new URLSearchParams(window.location.search);var selectedLocation=params.get('selectedLocation');var selectedRoute=params.get('selectedRoute');var selectedVehicleClass=params.get('selectedVehicleClass');var selectedSurfaceCondition=params.get('selectedSurfaceCondition');var wrcbuddyUrl="https://wrcbuddy.com/static-leaderboard/"+selectedLocation+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# 以下の Perl version として作成 | |
# git-logのPRETTY FORMATの動くチートシートを作った | |
# https://zenn.dev/fujimura/articles/79b27b80e14e2e | |
use strict; | |
use warnings; | |
my $CLEAR = "\e[0m"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
var githubUrl = window.location.href; | |
var encodedUrl = encodeURIComponent(githubUrl); | |
window.location.href = 'https://kicanvas.org/?github=' + encodedUrl; | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
RUN apt-get update && apt-get install -y tzdata | |
# timezone setting | |
ENV TZ=Asia/Tokyo | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
bash \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
) | |
func main() { | |
err := run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
"github.com/DarkMetalMouse/hid" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"log" | |
"net/http" | |
) | |
func main() { | |
err := run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package fmt | |
import "errors" | |
// Errorf formats according to a format specifier and returns the string as a | |
// value that satisfies error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"image/color" | |
"strings" | |
"time" | |
"golang.org/x/image/bmp" |
NewerOlder