Skip to content

Instantly share code, notes, and snippets.

View oskarrough's full-sized avatar
💭
██████

Oskar oskarrough

💭
██████
View GitHub Profile
@oskarrough
oskarrough / useful-web-audio
Last active March 18, 2024 08:01
A list of useful audio tools and experiments for the web
## Packages
https://github.com/yoriiis/vlitejs
https://github.com/killercrush/music-tempo
https://github.com/goto-bus-stop/get-artist-title
https://github.com/internet4000/media-now
https://github.com/internet4000/media-url-parser/
https://github.com/exogen/graphbrainz-extension-discogs
https://nelson.glitch.me
https://glitch.com/~record-player

How to build a JSON API with Elixir & Phoenix

Welcome! In this guide we'll go step by step to build an API with Elixir and the Phoenix Framework.

Note, i wrote this around 2017/18 so things might have changed. Also it's incomplete. Hopefully still useful. Yadayada.

Here's the plan:

  • Install Elixir
  • Create a new Phoenix project

Keybase proof

I hereby claim:

  • I am oskarrough on github.
  • I am oskarr (https://keybase.io/oskarr) on keybase.
  • I have a public key ASC-EI4Sv7gToVrZzQ9UE85P9wwT3IfY2bSA1xekIVnhgQo

To claim this, I am signing this object:

@oskarrough
oskarrough / index.html
Created December 23, 2020 20:07
stwmap
<button onClick="generate()">Generate</button>
<slay-map rows="10" columns="6"></slay-map>
@oskarrough
oskarrough / chrome-remote-deugging-windows-10-android.md
Last active July 12, 2020 19:21
Chrome Remote Debugging from Windows 10 to Android

My Windows 10 wouldn't recognize my phone. After using adb it now works. Here's how.

  • Connect your Android phone via USB
  • When it asks what to connect as, choose "Camera (PTP)"
  • Open Google Chrome and the webpage you want to test
  • Open Chrome Developer Tools and find the "Remote Devices" tab

Now, your phone might or might not appear in this tab.
On my OS X and Fedora, it did. On Windows I had to get Android Debug Bridge ("ADB"):

// numeronym('internationalisation')
// returns 'i18n'
function numeronym(text) {
return text[0] + (text.length - 2) + text[text.length - 1]
}

The ecosystem of Radio4000

This is community overview of projects related to Radio4000. Feel free to edit.

@oskarrough
oskarrough / lovefingers-org.html
Created June 22, 2019 09:15
backup, just in case..
<HTML>
<HEAD>
<TITLE>Lovefingers</TITLE>
</HEAD>
<BODY bgcolor="white" text="#999999" link="#339999" vlink="#339999">
<TABLE border="0" cellpadding = "14"><tr><td valign="top">

Here's how you can get server-side rendering with Ember + FastBoot and deploy it with now.sh.

It requires an ember-cli application that doesn't fail when you run ember fastboot --serve-assets. Also that you have now.sh installed.

How to deploy ember with fastboot using now.sh

  1. ember install ember-cli-fastboot
  2. Add a server.js (example)
  3. ember build -p
  4. cp server.js dist/server.js