Skip to content

Instantly share code, notes, and snippets.

@syohex
syohex / output.log
Created September 18, 2012 07:29
Sample of WebService::DMM
1: 桜木凛の誘惑オフィス
2: 家庭教師は女子大生 桜木凛
3: 桜木凛の手コキ・淫語・エステティシャン
4: 同級生 桜木凛
5: 桜木凛、セル解禁。
6: 桜木凛のハレンチ・アナウンサー
7: 空中レロレロ 超S級単体女優のエアキッス2
8: プレミアム5周年記念特別作品 THE PREMIUM V.I.P
9: 桜木凛の上目使いフェラ天国
10: PREMIUM STYLISH SOAP 桜木凛
@syohex
syohex / helm-ack.el
Created September 23, 2012 13:09
App::ack with helm interface
;;; helm-ack.el --- Ack command with helm interface
;; Copyright (C) 2012 by Syohei YOSHIDA
;; Author: Syohei YOSHIDA <[email protected]>
;; URL:
;; Version: 0.01
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@syohex
syohex / yapc-schedule.el
Created September 25, 2012 14:54
View yapc asia schedule with helm interface
;;; yapc-schedule.el --- View YAPC::Asia 2012 schedule with helm interface
;; Copyright (C) 2012 by Syohei YOSHIDA
;; Author: Syohei YOSHIDA <[email protected]>
;; URL:
;; Version: 0.01
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@syohex
syohex / github_atom.pl
Created September 26, 2012 04:18
Github personal atom parser on CLI
#!perl
package App::Github::RSS;
use strict;
use warnings;
use XML::Feed;
use URI;
use DateTime;
use Getopt::Long qw(:config posix_default no_ignore_case gnu_compat);
@syohex
syohex / helm-flymake.el
Created October 1, 2012 13:55
flymake with helm interface
(require 'flymake)
(defvar helm-c-flymake-source
'((name . "Error and Warnings")
(candidates . (lambda ()
(with-current-buffer helm-current-buffer
(loop for err in flymake-err-info
for line = (car err)
for detail = (caar (cdr err))
for msg = (format "%5d: %s" line (aref detail 4))
@syohex
syohex / capture-all-theme.el
Created October 1, 2012 14:58
capture buffer with all themes
;;; capture-all-theme.el ---
;; Copyright (C) 2012 by Syohei YOSHIDA
;; Author: Syohei YOSHIDA <[email protected]>
;; URL:
;; Version: 0.01
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@syohex
syohex / Makefile.PL.patch
Created October 2, 2012 06:33
Patch for Makefile.PL in Geohash
diff --git a/Makefile.PL b/Makefile.PL
index f09d12b..c8a820a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -8,7 +8,7 @@ githubmeta;
requires 'parent';
requires 'Geo::Hash';
build_requires 'Test::More';
-build_requires 'Test::Require';
+build_requires 'Test::Requires';
@syohex
syohex / myemacs_screenshot.png
Created October 2, 2012 13:54
関西 Emacs勉強会 #x06 ポジションペーパ
myemacs_screenshot.png
@syohex
syohex / match.rb
Created October 3, 2012 12:26
simple match ruby
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
file = ARGV[0] || File.expand_path("~/.zshrc")
File.open(file) do |f|
f.each_line do |line|
if matched = line.match(/^source/)
puts line
end
@syohex
syohex / dmm_api.rb
Created October 3, 2012 22:02
DMM API with Ruby nokogori
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
require 'nokogiri'
require 'open-uri'
require 'pit'
config = Pit.get("dmm.co.jp", :require => {
"api_id" => "you email in twitter",
"affiliate_id" => "your password in twitter"