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
import java.nio.charset.StandardCharsets; | |
public class NG1 { | |
public static void main(String[] args) { | |
String str = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
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
Classfile /home/yuji/repos/gist/jjug_ccc_2023/sample/com/example/Main.class | |
Last modified 2023/05/28; size 426 bytes | |
SHA-256 checksum 2887486397f85a098cd8908463d9499351497938089eafc72988a5cbaf4b55e0 | |
Compiled from "Main.java" | |
public class com.example.Main | |
minor version: 0 | |
major version: 64 | |
flags: (0x0021) ACC_PUBLIC, ACC_SUPER | |
this_class: #21 // com/example/Main | |
super_class: #2 // java/lang/Object |
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
#!/bin/env ruby | |
content_dir = File.expand_path(ARGV[0]) | |
translated_dir = File.expand_path(ARGV[1]) | |
Dir.glob("**/*.md", base: translated_dir).each do |path| | |
content_file = "#{content_dir}/#{path}" | |
translated_file = "#{translated_dir}/#{path}" | |
has = false |
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
#!/bin/env ruby | |
require 'yaml' | |
require 'json' | |
removed = Hash.new { |hash, key| hash[key] = 0 } | |
ARGV.each do |base| | |
Dir.glob(["**/*.html", "**/*.md"], base: base).each do |path| | |
file = File.join(base, path) |
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
import java.lang.String; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
sortByLength(Arrays.asList(args)); | |
} |
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
diff --git a/files/ja/mozilla/add-ons/webextensions/api/alarms/alarm/index.html b/files/ja/mozilla/add-ons/webextensions/api/alarms/alarm/index.html | |
index 6d91ff819..56bbda4ba 100644 | |
--- a/files/ja/mozilla/add-ons/webextensions/api/alarms/alarm/index.html | |
+++ b/files/ja/mozilla/add-ons/webextensions/api/alarms/alarm/index.html | |
@@ -34,9 +34,3 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/alarms/Alarm | |
<p>{{Compat("webextensions.api.alarms.Alarm")}}</p> | |
-<p>{{WebExtExamples}}</p> | |
- |
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
base = ARGV[0] | |
en_base = ARGV[1] | |
regexp = /\{\{\s*Compat\s*\(?.*\}\}/i | |
Dir.glob("**/*.html", base: base).each do |path| | |
file = File.join(base, path) | |
next if not FileTest.file?(file) | |
content = File.read(file) |
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
#include <M5StickC.h> | |
#include "MHZ19.h" | |
#define RX_PIN 36 // Rx pin which the MHZ19 Tx pin is attached to | |
#define TX_PIN 26 // Tx pin which the MHZ19 Rx pin is attached to | |
#define BAUDRATE 9600 // Device to MH-Z19 Serial baudrate (should not be changed) | |
#define LCD_MODE_DIGIT 0 | |
#define LCD_MODE_GRAPH 1 |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ConsoleApplication1 | |
{ | |
static class LINQ | |
{ | |
static void Main(String[] args) |
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
import java.util.Random; | |
public enum Kiyoshi { | |
ズン, ドコ; | |
private static final Kiyoshi[] answer = new Kiyoshi[] { ズン, ズン, ズン, ズン, ドコ }; | |
public static void main(String[] args) { | |
Random random = new Random(); | |
int index = 0; |
NewerOlder