Skip to content

Instantly share code, notes, and snippets.

@gong023
gong023 / bench.php
Created December 4, 2015 05:26
bench
<?php
require_once __DIR__ . '/vendor/autoload.php';
class TurmericSample
{
use \TurmericSpice\ReadWriteAttributes {
mayHaveAsInt as public getId;
mayHaveAsFloat as public getBalance;
mayHaveAsString as public getName;
setValue as public setId;
@kamatari
kamatari / jupyter_box.markdown
Last active September 5, 2015 01:05
anaconda入りjupyter環境 vagrant box
#!/usr/bin/env ruby
def main
source = ARGV[0]
offset_time = ARGV[1].to_f
trim_time = ARGV[2].to_f
#size = '480x270'
size = ARGV[3]
crop = ''
crop = "-crop #{ARGV[4]}" unless ARGV[4].nil?
@matchy256
matchy256 / rec_radiko.sh
Last active October 31, 2023 08:23 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@jwage
jwage / SplClassLoader.php
Last active August 16, 2024 17:36
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,