アマチュアオーケストラでは他団体の演奏会のパンフレットに自団体の演奏会のチラシを無料で挟み込ませてもらうことが一般的に行われている。 アイネクは地域のアマチュアオーケストラの検索、チラシを挟み込みたい団体とのマッチングを行うサイトである。
- 自分の地域にどんなアマチュアオーケストラがあるのかわからない
require 'benchmark' | |
num = 10000 | |
Benchmark.bm 2 do |r| | |
r.report '+' do | |
str = '' | |
num.times do | |
str += 'a' | |
end |
require 'benchmark' | |
num = 1000000 | |
Benchmark.bm 2 do |r| | |
r.report '+' do | |
str = '' | |
num.times do | |
str = 'a' + 'b' | |
end |
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
<?php | |
$_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']); |
# Virtual Hosts | |
# | |
# Required modules: mod_log_config | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at |
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
<?xml version="1.0"?> | |
<packages> | |
<package id="googlechrome" /> | |
<package id="firefox" /> | |
<package id="curl" /> | |
<package id="git" /> | |
<package id="dropbox" /> | |
<package id="flashplayerplugin" /> | |
<package id="itunes" /> | |
<package id="googledrive" /> |
#!/usr/bin/env python | |
import sys | |
import csv | |
if (len(sys.argv) < 2): | |
print 'Usage: %s ' % sys.argv[0] | |
quit() | |
csv_file = sys.argv[1] |
#!/bin/sh | |
echo "Setting $1 bounds to 720p" | |
# 720p is 1280x720. | |
# Bounds is startX, startY, endX, endY. Adjust size from starting position to account for this | |
osascript -e "tell application \"$1\" to set the bounds of the first window to {0, 0, 1280, 720}" | |
# activate the app, to bring it to the front | |
osascript -e "tell application \"$1\" to activate" |