Skip to content

Instantly share code, notes, and snippets.


Oskar oskarrough

View GitHub Profile
View How to build a JSON API with Elixir &

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 ( on keybase.
  • I have a public key ASC-EI4Sv7gToVrZzQ9UE85P9wwT3IfY2bSA1xekIVnhgQo

To claim this, I am signing this object:

oskarrough / useful-web-audio
Last active Jun 20, 2021
A list of useful audio tools and experiments for the web
View useful-web-audio
## Packages
View index.html
<button onClick="generate()">Generate</button>
<slay-map rows="10" columns="6"></slay-map>
oskarrough /
Last active Jul 12, 2020
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"):

View numeronym.js
// 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.

View lovefingers-org.html
<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

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

How to deploy ember with fastboot using

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