Skip to content

Instantly share code, notes, and snippets.

Avatar

John-Philip Johansson seriema

View GitHub Profile
@seriema
seriema / PS4 wishlist filter
Created Jul 11, 2020
Bookmarlket for filtering Playstation store wishlist for games on sale
View PS4 wishlist filter
javascript:(function(){ $(".__shared-presentation__wishlist-item-cell__cfd0d.ember-view").each((index, game) => { if (!game.querySelectorAll(".price-display__strikethrough").length) game.style.display = "none" }) ;})();
We couldn’t find that file to show.
@seriema
seriema / build.log
Created Mar 21, 2020
retro-cloud: Docker buildlog for successful RetroPie-Setup (v4.5.17, commit 558f25c)
View build.log
This file has been truncated, but you can view the full file.
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of known hosts.
Switched to a new branch 'develop'
Pulling cache layers for index.docker.io/seriema/retro-cloud:develop...
Done!
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
@seriema
seriema / build.log
Last active Mar 21, 2020
retro-cloud: Docker buildlog for failed RetroPie-Setup (v4.5.17, commit 3e827c1)
View build.log
# Copied from https://hub.docker.com/repository/registry-1.docker.io/seriema/retro-cloud/builds/38183daf-6bd1-432a-ada0-ada85af1ec02
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of known hosts.
Switched to a new branch 'develop'
Pulling cache layers for index.docker.io/seriema/retro-cloud:develop...
Done!
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
@seriema
seriema / README.md
Last active May 2, 2019
lint-episerver-cms-api
View README.md

Run with npx https://gist.github.com/seriema/b1c00036175cbfc374548b499bafcb27.

@seriema
seriema / Episerver_CLA
Last active May 16, 2018 — forked from CLAassistant/SAP_CLA
Episerver Individual Contributor License Agreement
View Episerver_CLA
# Episerver AB Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects ("Projects") made available by Episerver AB
or its affiliates ("Episerver AB"). This Individual Contributor License Agreement ("Agreement") sets out the terms
governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data,
materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any
manner, to Episerver AB in respect of any of the Projects (collectively "Contributions"). If you have any questions
respecting this Agreement, please contact opensource@episerver.com.
@seriema
seriema / a-test-case.md
Created Nov 19, 2015
Basic test templates
View a-test-case.md

Precondition

[any specific settings before testing? other test data than usual? etc]

Test steps

  1. [simple actions to perform, keep them short]
  2. [continue as needed, preferably one action per step]
  3. [etc]

Expected result

@seriema
seriema / jquery-widget-wrapper.js
Last active Oct 17, 2015
A minimal wrapper for my jQuery widget pattern (https://gist.github.com/seriema/5915653/). Personally I would recommend using Angular, Ember, React, or something else that already has a good system for this, but sometimes you don't have a choice and this simple pattern has helped me many times. See a live example here: http://jsfiddle.net/seriem…
View jquery-widget-wrapper.js
// This is the basic principle of a minimalistic jQuery based widget system.
// Every widget has one root element, with a unique classname prefix. Here I used "w-".
// Put these two methods globally in any way you like. Here I put them on the jQuery object.
$ = $.extend($, {
// This allows you to register a widget.
registerWidget: function (selector, callback) {
$(document).on('w-init', function (e) {
$(selector, e.target).each(function () {
@seriema
seriema / characters
Created Jun 1, 2015
Font test. Useful for checking if some characters are missing in a font.
View characters
Latin
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
Latin 1 (Western)
ÁÀÂÄÅÃÆÇÐÉÈÊËÍÌÎÏÑÓÒÔÖÕØŒÞÚÙÛÜÝŸ
áàâäãåæçðéèêëíìîïıñóòôöõøœßþúùûüýÿ
Latin 2 (Eastern)
ĀĂĄĆČĎĐĒĖĘĚĞĢĪĮİĶŁĹĻĽŃŅŇŌŐŔŖŘŠŚŞȘŢȚŤŪŮŰŲŽŹŻ
@seriema
seriema / media-queries.less
Last active May 5, 2020
Media query variables in LESS (for Bootstrap, but could be used anywhere)
View media-queries.less
// Media query variables. Usage: @media @sm-and-up { ... } or @media @tablet, @desktop { ... }
// Media query names like Bootstrap
@xs-and-up: ~"only screen"; // xs is the smallest size, so "xs and up" is basically "everything on a screen"
@xs-only: ~"only screen and (max-width: @{screen-xs-max})";
@sm-and-up: ~"only screen and (min-width: @{screen-sm-min})";
@sm-only: ~"only screen and (min-width: @{screen-sm-min}) and (max-width: @{screen-sm-max})";
@md-and-up: ~"only screen and (min-width: @{screen-md-min})";
@md-only: ~"only screen and (min-width: @{screen-md-min}) and (max-width: @{screen-md-max})";
@lg-and-up: ~"only screen and (min-width: @{screen-lg-min})";
@lg-only: @lg-and-up;
You can’t perform that action at this time.