Skip to content

Instantly share code, notes, and snippets.

@Pacek
Pacek / bundler-fix.md
Last active May 4, 2021 14:55
How to fix Ruby Bundler on Big Sur beta

THE PROBLEM

After updating to macOS Big Sur beta you might encounter issues when using Ruby Bundler to manage Ruby gems in your project - in our case to install CocoaPods and Fastlane for iOS development.

Ignoring json-2.2.0 because its extensions are not built. Try: gem pristine json --version 2.2.0

...

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

@Pacek
Pacek / ReactiveKit+Realm.swift
Last active April 8, 2017 12:37
ReactiveKit+Realm
import ReactiveKit
import RealmSwift
extension ReactiveExtensions where Base: RealmCollection {
var changes: SafeSignal<Base> {
return SafeSignal<Base> { observer in
let realmToken = self.base.addNotificationBlock { changes in
switch changes {
case .initial(let new), .update(let new, _, _, _):
@Pacek
Pacek / gist:3149783
Created July 20, 2012 09:16
Simple modal window jQuery plugin with XSS protection via Mustache.js
/*
* Simple modal window jQuery plugin with XSS protection via Mustache.js
*/
/*
Modal window templates
======================
Somewhere in the DOM
@Pacek
Pacek / gist:3077515
Created July 9, 2012 16:41
Fix jQuery $.getJSON() for IE6/7/8
// old IEs are pretty fucked up so you have to disable caching ajax requests
$.ajaxSetup ({ cache: false });
@Pacek
Pacek / simpledesktops.py
Created April 28, 2012 10:48
Download all wallpapears from simpledesktops.com
"""
This handy script will download all wallpapears from simpledesktops.com
Requirements
============
BeautifulSoup - http://www.crummy.com/software/BeautifulSoup/
Python-Requests - http://docs.python-requests.org/en/latest/index.html
Usage
=====
@Pacek
Pacek / gist:2365387
Created April 12, 2012 07:14
Python UTF-8 file
# -*- coding: utf-8 -*-
@Pacek
Pacek / gmaplink.py
Created April 7, 2012 10:59
Google maps link - Django template filter