Skip to content

Instantly share code, notes, and snippets.

@sugyan
sugyan / 1.pl
Created February 13, 2024 03:37
YAPC::Hiroshima 2024 Perlbatross
(chop,utf8::decode$_)^print/(\X)\X?/g,$",/\X(\X)/g,$/for<>
@sugyan
sugyan / fizzbuzz.pl
Last active September 21, 2023 08:49
"^ "
=~ (
("(").("~"^"."^"^"^(""=="")."").("^"
^"="^(""=="").""^")").("^"^".").("="
^"~"^(""=="")."").("("^(""=="^").""^
"."^"^").("("^(""=="").""^"^"^")").(
(" ^( "
== "
") .
"" ^
use std::fmt::{Display, Formatter, Result, Write};
#[derive(Clone, Copy, PartialEq, Eq)]
enum Op {
Add,
Sub,
Mul,
Div,
}
#![feature(test)]
extern crate test;
const NUM_ITER: usize = 10;
#[allow(dead_code)]
#[inline(always)]
fn pop_lsb(n: &mut u64) -> u32 {
let ret = n.trailing_zeros();
*n = *n & n.wrapping_sub(1);
This file has been truncated, but you can view the full file.
+1523KE: ▲2三桂右不成
+3523KE: ▲2三桂左不成
+1624KE: ▲2四桂右
+3624KE: ▲2四桂左
+1725KE: ▲2五桂右
+3725KE: ▲2五桂左
+1826KE: ▲2六桂右
@sugyan
sugyan / LICENSE.txt
Created May 20, 2011 08:58 — forked from 140bytes/LICENSE.txt
self-reproducing program
Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
あたし大卒やのにね 仕事をもらわれへんのやと書いた
マスターの手紙の文字は とがりながらふるえている
ヲタのくせにと足を切られ 学生たちの眼が年をとる
虚しさを握りしめ過ぎた 日々の中夢が崩れ去る
私 本当は目撃したんです 昨日大手企業の 面接で
五秒で落ちたヲタクと 学歴だけで受かった奴らの薄笑い
私 驚いてしまって 助けもせず叫びもしなかった
ただ恐くて逃げました 私の敵は すべてです
落書きの報告書 Twitterばかりしてる俺
超高速でビルドするけど 動かないVirtual Machine
やさしくないJavaの本ページ破りたい
Chromeの裏 2ちゃんを覗いて見つかれば逃げ場もない
座って固まり 目を伏せながら
心のひとつも解りあえないプログラムをにらむ
そして仲間たちは今夜辞職の計画をたてる
とにかくもう 会社や家には帰りたくない
自分の業務が何なのかさえ 解らず震えている
25の夜
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Main {
package main
import (
"encoding/xml"
"io"
"log"
"net/http"
"time"
)