Skip to content

Instantly share code, notes, and snippets.

View chris-x86-64's full-sized avatar

Christopher Smith chris-x86-64

View GitHub Profile
@chris-x86-64
chris-x86-64 / gyoza.pl
Created April 1, 2012 03:49
Gyoza no Oushou
#!/usr/bin/perl
use strict;
use warnings;
use Encode;
use utf8;
use Net::Twitter::Lite;
use YAML::Syck;
my $conf = YAML::Syck::LoadFile('config.yml');
@chris-x86-64
chris-x86-64 / populate_db.pl
Last active December 18, 2015 20:59
Used in conjunction with Saitan-bot. This populates initial tweet data in saitan.db.
#!/usr/bin/perl
use strict;
use warnings;
use Encode;
use utf8;
use Data::Dumper;
use AnyEvent::Twitter::Stream;
use YAML::Syck;
@chris-x86-64
chris-x86-64 / auth.pl
Created June 23, 2013 07:20
Very simple example of OAuth token request (Net::Twitter::Lite)
#!/usr/bin/perl
use strict;
use warnings;
use feature 'say';
use Net::Twitter::Lite::WithAPIv1_1;
use YAML::Syck;
use Data::Dumper;
my $conf = YAML::Syck::LoadFile('config.yml')->{oauth};
@chris-x86-64
chris-x86-64 / userstream.pl
Created June 23, 2013 07:24
Very simple example of AnyEvent::Twitter::Stream
#!/usr/bin/perl
use strict;
use warnings;
use feature 'say';
use Encode;
use utf8;
use Data::Dumper;
use AnyEvent::Twitter::Stream;
use YAML::Syck;
@chris-x86-64
chris-x86-64 / markov_test.pl
Created June 29, 2013 08:09
Saitan-bot MarkovChain tester.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use YAML::Syck;
use lib './lib';
use SaitanBot::Think;
@chris-x86-64
chris-x86-64 / gist:5893044
Created June 29, 2013 23:00
Christopher Smith (Hiroshi Higuchi) <chris@x86-64.jp> PGP KEY ID: 939AA323
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQMuBFHPYo4RCACwmDV/kkLbtCNojKMziZi6sePeOjj2KkOREbsRoKx+bc2iaojA
STiFiJ1fuEGac9RT5U8XLBaQsA/KGuKBFOYbH9/jT7S4DX0LMWR5aJwMAvtqFD3o
DR3YJcdlkQMo71WgDoWdIagcarss/E8JTE0wdJD+yT7+l5VG8Jk0R+iQLkciWt28
jvEMsZ+Vx0sknwpRrdOzLJzupX1VKG4ZOmh5sjX6So8xFYCnJ6kIBi3Dse37mKtC
Ob1ospMDY6MkXcUZKgmSxDkxwYGoHSDU0hqFXSUXiu3XfbbKox4i9iDzyhicfhlY
iVgmk2RLqU/18CSB6Uey97Gd86pAVU9MfavvAQDFJdcTzWozVF/i8z1ysym2JeCh
QkBmceHDpvNlTaMv8wf/eFOlDY7yBdLOt5BT1qKyQ3TQccwHvqc1TCdjPTF6Zi0V
# -*- coding: utf-8 -*-
# Author: Keiya Chinen, keiyac
# lastupdate 2010/07/30
# users generic .zshrc file for zsh(1)
## Environment variable configuration
#
# LANG
#
" Author: Keiya Chinen, keiyac
" Last Change: 2010/07/29
scriptencoding utf-8
syntax on
filetype plugin on
filetype indent on
augroup vimrc
autocmd!
augroup end
@chris-x86-64
chris-x86-64 / chitanda.pl
Last active December 21, 2015 15:39
千反田える
#!/usr/bin/perl
use strict;
use warnings;
use feature 'say';
my @numeric_characters = ('', '一', '二', '三', '四', '五', '六', '七', '八', '九');
my @digits = ('', '十', '百', '千');
my @alphabets = (
@chris-x86-64
chris-x86-64 / progress.rb
Last active December 21, 2015 19:30
studying mikutter plugin
# -*- coding: utf-8 -*-
Plugin.create(:progress) do
filter_show_filter do |msgs|
[
msgs.map do |m|
if m and !m[:retweeted_status]
m[:message] = "進捗どうですか"
end