Skip to content

Instantly share code, notes, and snippets.

View chrmod's full-sized avatar

Krzysztof Modras chrmod

View GitHub Profile
@chrmod
chrmod / state-of-wkwebview.md
Last active September 19, 2023 19:20
Privacy Community feedback on the state of WKWebView

Privacy Community feedback on the state of WKWebView

We are developers working on ways to empower users on the Web and help them protect their privacy. Based on our collective experience of creating privacy-preserving technologies for iOS, we have collected and curated a list of the most pressing short-comings of WKWebView (i.e. WebKit WebView). If addressed, these have the potential to positively impact the ecosystem at large, and benefit all users.

Our hope is that this work, supported by some of the most well-known companies

Keybase proof

I hereby claim:

  • I am chrmod on github.
  • I am chrmod (https://keybase.io/chrmod) on keybase.
  • I have a public key ASBxlbNk46cxQDqkGH-DIV7fZC3VoOccgaSWTp7jA5eFIQo

To claim this, I am signing this object:

@chrmod
chrmod / setup-ember-cli.md
Last active August 29, 2015 14:06
ember-cli environment setup

Setting up ember-cli environment

This is a simple HOWTO for setting up and running simple ember-cli application. If any of step below does not work for you, please leave comment under this gist: https://gist.github.com/chrmod/702fe8391e9d17dbc151

1. nvm

Check if nvm is installed in use space:

look for ~/.nvm/nvmsh

@chrmod
chrmod / gist:7302952
Last active December 27, 2015 09:19
rspec mock helper

rSpec #mock DSL helper

This Gist describe a concept of little helper method to speed up mocking of object methods using rSpec. It addresses a simplification of common pattern used while creating mock:

describe "some behaviour" do

  let(:some_important_data) { "some text, array, hash or maybe an object" } 

before do

@chrmod
chrmod / gist:6291623
Last active December 21, 2015 10:28
Disable Jquery Mobile
<script type="text/javascript">
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.listview.prototype.options.icon = "";
$.mobile.hashListeningEnabled = false;
@chrmod
chrmod / redirect_old_url.rb
Created May 17, 2013 13:32
A rack middleware that redirect URLs that have ID to URLs that have SLUG. Should run well with typical friendly_id setup.
class RedirectOldUrl
RESOURCES_WITH_SLUGS = [
"conferences",
"users",
"events",
"articles",
"partners"
]
def initialize(app)