View gist:d99e47c91b1f188a89ea7a1491cd1911
>npm install
npm WARN prefer global npm@3.10.6 should be installed with -g
npm WARN prefer global node-gyp@3.4.0 should be installed with -g
> nslog@3.0.0 install D:\src\nteract\node_modules\nslog
> node-gyp rebuild
D:\src\nteract\node_modules\nslog>if not defined npm_config_node_gyp (node "C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
mp4box = 'c:\Programs\GPAC\MP4Box.exe'
def tosec(s):
# convert time signature to seconds as float
from datetime import datetime
dt = datetime.strptime(s, '%H:%M:%S.%f')
return dt.hour * 3600 + dt.minute * 60 + dt.second + dt.microsecond * 10e-7
View nest.vb
Dim foo As New Foobar2000.Application07Class()
Dim artist As String = foo.Playback.FormatTitle("%artist%")
Dim title As String = foo.Playback.FormatTitle("%title%")
If Not String.IsNullOrEmpty(title) Then
Dim url As String = ""
Dim song As XDocument = XDocument.Load(String.Format("{0}/song/search?api_key={1}&artist={2}&title={3}&results=1&format=xml", _
url, Util.GetPassword("api.echonest"), System.Uri.EscapeDataString(artist), System.Uri.EscapeDataString(title)))
View artistSearch.hta
<!DOCTYPE html>
<script src=""></script>
<script src="" data-dojo-config="parseOnLoad:true"></script>