Skip to content

Instantly share code, notes, and snippets.

# time identifier
91.375097 2
175.756624 5
227.187051 2
250.818303 4
284.952632 5
324.434247 5
383.398699 4
446.032200 3
534.119578 4
@sago35
sago35 / clipx.pl
Created September 18, 2015 09:08
script for rewriting clipboard
use strict;
use warnings;
use utf8;
use Clipboard;
use Path::Tiny;
use Encode;
my $cp932 = Encode::find_encoding("cp932");
my $utf8 = Encode::find_encoding("utf8");
use strict;
use warnings;
use utf8;
use Path::Tiny;
use Time::Moment;
my $no = shift // die;
my $t = Time::Moment->now;
C:\Users\xxxx\.cpanm\work\1458568216.7268\TOML-Parser-0.06>perl --version
This is perl 5, version 22, subversion 1 (v5.22.1) built for MSWin32-x64-multi-thread
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
@sago35
sago35 / wc.pl
Created December 1, 2016 14:31
wc.pl : Sample code of Getopt::Kingpin
use strict;
use warnings;
use Getopt::Kingpin;
my $kingpin = Getopt::Kingpin->new($0, 'print the number of newlines, words, and bytes in files');
my $flag = {
lines => $kingpin->flag('lines', 'print the newline counts')->short('l')->bool,
words => $kingpin->flag('words', 'print the word counts')->short('w')->bool,
chars => $kingpin->flag('chars', 'print the character counts')->short('m')->bool,
bytes => $kingpin->flag('bytes', 'print the byte counts')->short('c')->bool,
@sago35
sago35 / 20170303_sago35.md
Created March 5, 2017 12:10
2017/03/03 突撃!隣の開発環境!(sago35)

開発環境をさらす人

  • Twitter: @sago35tk
  • Masaaki Takasago

事前に資料作ったら、突撃っぽくないのでは感


<html>
<head>
<style>
rect{ stroke:black; stroke-width:1; }
</style>
</head>
<body>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
@sago35
sago35 / cd.pl
Created July 20, 2019 08:40
perl の hash / array ref の説明用に使った perl script
use strict;
use warnings;
use utf8;
#use Term::Encoding qw(term_encoding);
#my $encoding = term_encoding;
#
#binmode STDOUT => "encoding($encoding)";
#binmode STDERR => "encoding($encoding)";
#my $name_takasago = "takasago";
use strict;
use warnings;
use utf8;
my %attr = ();
while (my $input = <STDIN>) {
chomp $input;
if ($input =~ /([^=]+)=(.*)/) {
package main
import (
"fmt"
"machine"
"time"
"tinygo.org/x/drivers/adt7410"
)