Skip to content

Instantly share code, notes, and snippets.

@wadap
wadap / nanapi_comic.md
Last active August 29, 2015 14:05
nanapiにおいておく漫画管理リスト
  • ダイの大冒険
  • BLEACH
  • NARUTO
  • 刃牙
  • はじめの一歩
  • ネウロ
  • うしおととら
  • ベルセルク
  • めだかボックス
  • Hunter x Hunter
require 'fluent/mixin/plaintextformatter'
require 'fluent/plugin/out_s3'
class Fluent::S3AlternativeOutput < Fluent::S3Output
Fluent::Plugin.register_output('s3_alternative', self)
include Fluent::Mixin::PlainTextFormatter
end
<?php
$val = 0;
for ($i = 1; $i<= 10; $i++) {
$val = $val + $i;
}
echo $val;
?>
<?php
for ($i = 1; $i<= 100; $i++) {
if ($i % 3 == 0 && $i % 5 == 0)
echo "fizz buzz";
} else if ($i % 3 == 0) {
echo "fizz";
} else if ($i % 5 == 0) {
echo "buzz";
} else {
{
"運動種別": "running",
"運動詳細": [
{
"ラン種別": "LSD",
"距離": "30km",
"経路": "hogehoge",
"時間": "90min"
},
{
<?php
$products = array(
'128G' => '1391050481071',
'256G' => '1391050482273',
'512G' => '1391050483410',
);
foreach ($products as $k => $v) {
$obj = simplexml_load_file('http://www.microsoftstore.com/store/msjp/ja_JP/DisplayPage/id.ProductInventoryStatusXmlPage/productID.289227000?_=' . $v);
@wadap
wadap / innobackupex.patch
Created November 27, 2013 07:15
innobackupexで.mrnファイルまで一緒にcopy
*** innobackupex.org 2013-11-27 12:12:13.000000000 +0900
--- innobackupex 2013-11-27 16:13:43.000000000 +0900
***************
*** 2699,2704 ****
--- 2699,2711 ----
}
}
}
+
+ # backup .mrn files
@wadap
wadap / chef.el
Last active December 21, 2015 14:29
;; chef.el --- chef Minor Mode
;; -*- Mode: Emacs-Lisp -*-
;; Copyright (C) 2013 by wadap
;; 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
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"draw_minimap_border": true,
"font_size": 11,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
# default config
unbind-key C-b
set-option -g prefix C-j
bind C-j send-prefix
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set-window-option -g automatic-rename on
# like screen
bind k kill-window