Instantly share code, notes, and snippets.

View 0_test.sql
CREATE TABLE a (
order_no TEXT NOT NULL,
detail_no TEXT NOT NULL,
amazon_item_id TEXT NOT NULL,
divided_delivery_charge TEXT NOT NULL,
divided_cod_fee TEXT NOT NULL,
registration_date TEXT NOT NULL,
registration_id TEXT NOT NULL,
update_date TEXT NOT NULL,
update_id TEXT NOT NULL
View piculet.tf
variable "region" {
default = "ap-northeast-1"
}
provider "aws" {
region = "${var.region}"
}
data "aws_caller_identity" "current" {}
View roadworker.tf
variable "region" {
default = "ap-northeast-1"
}
variable "availability_zones" {
type = "list"
default = ["ap-northeast-1a", "ap-northeast-1c"]
}
provider "aws" {
region = "${var.region}"
View wri.pe2hubedit.rb
require 'date'
require 'fileutils'
Dir.glob('page-*').each do |f|
content = File.read(f)
title = content.partition("\n")[0]
body = content.partition("\n")[2]
next if body.empty?
next if title.split(' ').empty?
splitted = title.split(' ')
View fusic20.md

Fusicの20の信条

  • 働く人がイキイキとしている
  • デキる人になる
  • とことん働き、とことん遊ぶ
  • 尖る
  • 常に+αを考える
  • 速く
  • 全力でやる
  • 諦めが悪い
View gulpfile.js
var gulp = require('gulp');
var exec = require('gulp-exec');
gulp.task('pandoc', function() {
var options = {
silent: true
};
gulp.src('./input.md')
.pipe(exec('pandoc <%= file.path %> -f markdown -o output.docx', options))
.pipe(exec('pandoc <%= file.path %> -f markdown -o output.pdf -V documentclass=ltjarticle -V classoption=a4j -V classoption=landscape --latex-engine=lualatex --toc', options));
View JavaScript::MultiQueue
function (__structure outputStructure) main (
__number inputNumber,
__number FillIndex,
__boolean Fill,
__number ClearIndex,
__boolean Clear,
__number Iterations)
{
Object.Queue = (Object.Queue) ? Object.Queue : new Array(Iterations);
var result = new Object();
View user.yml
---
- hosts: all
vars:
username: hogehoge
sudo: true
tasks:
- name: add ssh user
user: name={{ username }} comment="ssh user"
- authorized_key: user={{ username }} key="{{ item }}"
with_lines:
View techtouch#0b10111.md

TechTouch #0b10111

** まさかの開催番号を間違っていました...正しくは#0b10111です(社内用に1回はさんでいました) **

Markdown方式で書くと吉。他は基本的に「適当」でお願いします。 AAの追加すらOKです。

最終的にgistか何かで公開します。

参加者

View canything.rb
require 'formula'
class Canything < Formula
url 'https://github.com/keiji0/canything/zipball/master'
sha1 '3dc52483443211b19441f5f8732943475143cecf'
homepage 'https://github.com/keiji0/canything'
version '20130128'
def install
system "make"