Skip to content

Instantly share code, notes, and snippets.

@rornor
rornor / read.md
Last active September 26, 2022 06:23
@rornor
rornor / artistSearch.hta
Last active July 9, 2021 01:55
HTA application for artist search using Google, Bing and Amazon
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20121008/json2.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.js" data-dojo-config="parseOnLoad:true"></script>
<script>
dojo.require("dojo.parser");
dojo.require("dojox.image.LightboxNano");
</script>
<HTA:APPLICATION
@rornor
rornor / nest.vb
Last active August 29, 2015 13:58
LinqPad example
Try
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 = "http://developer.echonest.com/api/v4"
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)))
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
>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.