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
#!/bin/bash | |
music_dir="$HOME/Music" | |
folder="Radio" | |
logfile="$HOME/log/rec-radio.log" | |
# Ref. | |
# https://gist.github.com/riocampos/5656450 | |
# http://wordpress.honobono-life.info/code/bash%E3%81%A7%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E3%83%9E%E3%83%83%E3%83%81%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E6%9D%A1%E4%BB%B6%E8%A9%95%E4%BE%A1/ |
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="ja"> | |
<head> | |
<meta charset="UTF-8"/> | |
{% if article is empty %} | |
<title>WordPress: Post New</title> | |
{% else %} | |
<title>WordPress: Update Post</title> | |
{% endif %} | |
</head> |
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="ja"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title>Get WordPress OAuth Token</title> | |
</head> | |
<body> | |
<?php | |
require_once('HTTP/OAuth/Consumer.php'); | |
session_start(); |
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/ruby | |
#require 'csv' | |
require 'axlsx' | |
require 'rexml/document' | |
Component = Struct.new(:item, :ref, :value, :footprint) | |
Order = Struct.new(:item, :value, :footprint, :count) | |
xml_file = File.expand_path(ARGV[0]) |