Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
██████

Oskar oskarrough

💭
██████
View GitHub Profile
View How to build a JSON API with Elixir & Phoenix.md

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
View keybase.md

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 / useful-web-audio
Last active Jun 20, 2021
A list of useful audio tools and experiments for the web
View useful-web-audio
## 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
View index.html
<button onClick="generate()">Generate</button>
<slay-map rows="10" columns="6"></slay-map>
@oskarrough
oskarrough / chrome-remote-deugging-windows-10-android.md
Last active Jul 12, 2020
Chrome Remote Debugging from Windows 10 to Android
View chrome-remote-deugging-windows-10-android.md

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]
}
View radio4000-ecosystem.md

The ecosystem of Radio4000

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

View lovefingers-org.html
<HTML>
<HEAD>
<TITLE>Lovefingers</TITLE>
</HEAD>
<BODY bgcolor="white" text="#999999" link="#339999" vlink="#339999">
<TABLE border="0" cellpadding = "14"><tr><td valign="top">
View ember-fastboot-now-sh-deploy.md

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