Simple commandline utility providing support for reqursively walk through all music directories and split large .flac
files.
Any linux distribution with split2flac
, php
and find
.
private function calculateDuration($startTime) | |
{ | |
$currTime = time(); | |
$diff = $currTime - $startTime; | |
if ($diff >= 3600) { | |
// hours | |
$difference = $diff/3600; | |
$difference = round($difference,0); | |
if ($difference>1) { $extra="s"; } |
package com.smt.todo.model; | |
public class UnitOfWork { | |
private static UnitOfWork soleInstance = null; | |
private FinderInterface finder; | |
public static UnitOfWork getInstance() { | |
UnitOfWork.initialize(); | |
return UnitOfWork.soleInstance; |
interface Interface {} | |
class InterfaceImpl1 implements Interface {} | |
class InterfaceImpl2 implements Interface {} | |
class Main { | |
private static List<Class<? extends Interface>> interfaceImplementations; | |
static { | |
interfaceImplementations = new ArrayList(Interface.class.getClasses()); // <- Doesn't work :( | |
} |
(function (window) { | |
'use stict'; | |
/** | |
* Replaces "{slug}" with specified values, provided by argument | |
* @brief Set's slugs in string | |
* @param {Object} slugValues Map "slugName:slugValue" | |
* @returns {String} | |
*/ | |
String.prototype.setSlugs = function (slugValues) { | |
var |
(function (global) { | |
'use strict'; | |
/** | |
* @return {Function} Abstract function placeholder | |
*/ | |
Function.prototype.makeAbstract = function () { | |
return function () { | |
throw new Error('Abstract method can\'t be called.'); | |
}; | |
}; |
<?php | |
/** | |
* @example | |
* $htmlRenderer = new HtmlRenderer(); | |
* $consoleRenderer = new ConsoleRenderer(); | |
* $htmlRenderer->renderToFile($view, 'some.html', [ TableRendererInterface::STREAMED ]); | |
* echo $consoleRenderer->renderToString($profilingView); | |
*/ | |
interface TableRendererInterface |
# | |
# Gentoo Linux | |
# | |
CONFIG_GENTOO_LINUX=y | |
CONFIG_GENTOO_LINUX_UDEV=y | |
# | |
# Support for init systems, system and service managers | |
# | |
# CONFIG_GENTOO_LINUX_INIT_SCRIPT is not set |
/** | |
* @param ${TYPE_HINT} $${PARAM_NAME} | |
#if (${STATIC} != "static") | |
* @return ${CLASS_NAME} This instance | |
#end | |
*/ | |
#set($TYPE_HINT = $TYPE_HINT.replaceAll("(int(eger)?)|(bool(ean)?)|(string)|object|mixed", "")) | |
#if (${TYPE_HINT} != "") | |
#set($TYPE_HINT="${TYPE_HINT} ") | |
#end |