This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Amazon::SQS::Simple; | |
my $aws_access_key = "AKIAJHPGGIQCXXXXXXXX"; | |
my $aws_secret_key = "mzz4DH9f4eGbMKx9ByLeXXXXXXXXXXXXXXXXXXXXXXXX"; | |
# Create an SQS object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require "mail" | |
from = "吹田市立図書館 <yoyaku@lib.suita.osaka.jp>" | |
from = Mail::Encodings.address_encode(from) | |
# "=?UTF-8?B?5ZC555Sw5biC56uL5Zuz5pu46aSo?= <yoyaku@lib.suita.osaka.jp>" | |
a = Mail::Address.new(from) | |
p a.address # yoyaku@lib.suita.osaka.jp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode qw/encode_utf8/; | |
use feature 'say'; | |
use Mail::Address; | |
my $from = q/吹田市立図書館 <yoyaku@lib.suita.osaka.jp>/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
p Nokogiri::XML::Node::ELEMENT_NODE # 1 | |
p Nokogiri::XML::Node::ATTRIBUTE_NODE # 2 | |
p Nokogiri::XML::Node::TEXT_NODE # 3 | |
p Nokogiri::XML::Node::CDATA_SECTION_NODE # 4 | |
p Nokogiri::XML::Node::ENTITY_REF_NODE # 5 | |
p Nokogiri::XML::Node::ENTITY_NODE # 6 | |
p Nokogiri::XML::Node::PI_NODE # 7 | |
p Nokogiri::XML::Node::COMMENT_NODE # 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
body { padding: 10px } | |
table {border-collapse: collapse} | |
#main td { border: solid 1px gray; font-size: 64pt; padding: 0 5px 0 5px } | |
#main tr td.total { padding: 0 10px 0 10px} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# 1 dir にフラットに1日になんファイルもたまっていくディレクトリに | |
# 対して、ファイルのタイムスタンプから yyyyMMdd フォルダを作って | |
# ファイルの移動をおこなう | |
# | |
require 'fileutils' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy: | |
steps: | |
- script: | |
name: make .ssh directory | |
code: mkdir -p "$HOME/.ssh" | |
- create-file: | |
name: write ssh key | |
filename: $HOME/.ssh/id_rsa | |
overwrite: true | |
hide-from-log: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> | |
<meta charset="UTF-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/0.6.7/fastclick.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular-touch.min.js"></script> | |
<script> | |
Array.prototype.shuffle = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ImproveSuitaLibrarySite | |
// @namespace http://github.com/kizashi1122/ | |
// @description More comfortable to use http://lib2.lib.suita.osaka.jp/ | |
// @include https://lib2.lib.suita.osaka.jp/* | |
// ==/UserScript== | |
(function(){ | |
var current_url = location.toString(); | |
var i, j, k, len; |
OlderNewer