Skip to content

Instantly share code, notes, and snippets.

View drdim's full-sized avatar
🏠
Working from home

Bogatkin Dmitriy drdim

🏠
Working from home
View GitHub Profile
/*
* This is an example build file that demonstrates how to use the build system for
* require.js.
*
* THIS BUILD FILE WILL NOT WORK. It is referencing paths that probably
* do not exist on your machine. Just use it as a guide.
*
*
*/
@drdim
drdim / gist:7560307
Created November 20, 2013 09:31
bug
http://jsfiddle.net/CKbuD/1/
@drdim
drdim / gist:6895764
Last active December 25, 2015 01:29
array2xml
<?php
/**
* Преобразование в xml строку
* @param array $array
* @param string $tag
* @return string
*/
function array2xml($array = array(), $tag = "nodef")
{
@drdim
drdim / gist:5457420
Last active December 16, 2015 15:39
Image Optimisation script used utils, optipng,
#!/bin/bash
DIR=$1;
DIR=`echo $1 |sed -e 's,\(.\)/$,\1,'`
back() {
mkdir "$DIR.old";
for i in `ls $DIR`;
do
cp -r $DIR/$i $DIR.old;
This file has been truncated, but you can view the full file.
//ActionScript 3.0
// package dm
// package songsterr
// package guitartuner
// class ClosestNoteFinder
package dm.songsterr.guitartuner
{
import __AS3__.vec.*;
public class ClosestNoteFinder extends Object