Skip to content

Instantly share code, notes, and snippets.

View wtrocki's full-sized avatar
🚀
Making API Backends an Better Place!

Wojciech Trocki wtrocki

🚀
Making API Backends an Better Place!
View GitHub Profile
@wtrocki
wtrocki / Note to Frequency
Created August 21, 2018 22:22 — forked from stuartmemo/Note to Frequency
Convert note to frequency
// Takes string of Note + Octave
// Example:
// var frequency = getFrequency('C3');
var getFrequency = function (note) {
var notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'],
octave,
keyNumber;
if (note.length === 3) {
@wtrocki
wtrocki / mobile-services.js
Last active March 12, 2019 12:14 — forked from psturc/mobile-services.js
For release 0.1.0 of ionic-showcase
let config = {
"version": 1,
"namespace": "test",
"clientId": "org.aerogear.ionic.showcase",
"services": [
{
"id": "e339e761-3687-11e9-9467-0af08791569c",
"name": "sync-app-test-org.aerogear.ionic.showcase",
"type": "sync-app",
"url": "https://sync-app-showcase-server-demo.comm2.skunkhenry.com/graphql",
subscription SubscribeData{
subscribeTasks{
id
title
description
version
}
}
subscription subscribeTasks{
subscribeTasks{
id
title
description
version
}
}