Skip to content

Instantly share code, notes, and snippets.

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

Oskar oskarrough

💭
██████
View GitHub Profile
1. yarn add critical --dev
2. copy paste this npm script
```
"scripts": {
"critical-css": "cat dist/index.html | critical --base dist/ --inline --minify > index.tmp && mv index.tmp dist/index.html"
}
```
@oskarrough
oskarrough / index.html
Last active May 26, 2018 10:09
Standalone emergency player for Radio4000 --> http://jsbin.com/kiyudepuyo/edit?html,output
<div id="ytplayer"></div>

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
@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">

The ecosystem of Radio4000

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

// numeronym('internationalisation')
// returns 'i18n'
function numeronym(text) {
return text[0] + (text.length - 2) + text[text.length - 1]
}
@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"):

@oskarrough
oskarrough / index.html
Created December 23, 2020 20:07
stwmap
<button onClick="generate()">Generate</button>
<slay-map rows="10" columns="6"></slay-map>

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: