Skip to content

Instantly share code, notes, and snippets.

View lubiluk's full-sized avatar

Paweł Gajewski lubiluk

View GitHub Profile
@lubiluk
lubiluk / AsyncOperation.swift
Last active September 26, 2018 12:59
Simple async operation implementation. Based on hints from Apple documentation and ideas from Advanced NSOperations session of WWDC 2015 (https://developer.apple.com/videos/wwdc/2015/?id=226).
//
// AsyncOperation.swift
//
// Created by Paweł Gajewski on 26/09/2018.
// Copyright © 2018. All rights reserved.
//
import Foundation
/**
@lubiluk
lubiluk / ROS_Lunar_macOS_Sierra.txt
Last active February 19, 2021 00:17
A step by step installation of ROS Lunar on macOS Sierra.
# The commands below resulted in successful compilation and installation
# of ROS Lunar on macOS Sierra
# desktop distribution is used instead of desktop_full to avoid installation
# of Gazebo7 and Qt4. Gazebo8 works out of the box when installed from brew.
#
# Note: Commands presented in this file are intended to be executed manually,
# one by one, as opposed to running this file as a script. Some paths used
# here should be adapted to your environment.
# Create a workspace
myApp.directive('googleplaceAutocomplete', function () {
return {
restrict: 'A',
require: 'ngModel',
scope: {
googleplaceAutocompletePlace: '=?',
googleplaceAutocomplete: '=',
},
link: function postLink(scope, element, attrs, model) {
var options = scope.googleplaceAutocomplete;
@lubiluk
lubiluk / DataTable.scala
Created July 12, 2012 15:58
lift DataTable view
package code.view
import _root_.scala.xml.{ NodeSeq, Node, Elem, PCData, Text }
import _root_.net.liftweb.common._
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.http.js._
import JsCmds._
import JE._
import S._