Skip to content

Instantly share code, notes, and snippets.

View beshkenadze's full-sized avatar

Aleksandr Beshkenadze beshkenadze

View GitHub Profile
[
{
"property": {
"name": "<b>node1.1</b>"
},
"type": "book"
},
{
"property": {
"name": "drag me! sorry imposible",
@beshkenadze
beshkenadze / 101.txt
Created March 13, 2012 10:30
101 совет по авиаперелетам
1. Билеты, купленные сильно заранее, дешевле только у лоукостов.
2. Чтоб купить дешево билет в нормальной компании, нужно заранее мониторить ценообразование.
3. Часто цена на билет может упасть примерно за 2 недели до вылета, а потом за несколько дней до вылета снова может вырасти.
4. Цена по одним направлениям в разные сезоны у разных авиакомпаний может быть разная.
5. Часто цена на momondo, expedia и aviasales ниже, чем на сайте авиакомпании. Но не всегда.
В аэропорту
6. Часто можно зарегистрироваться на стойке для бизнес класса, если там никого нет.
7. Большинство людей в аэропорту следуют общему потоку.
We couldn’t find that file to show.
@beshkenadze
beshkenadze / uri.js
Created September 6, 2012 12:40 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@beshkenadze
beshkenadze / README.markdown
Created October 8, 2012 13:59 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@beshkenadze
beshkenadze / plugin-jquery.js
Last active October 11, 2015 17:08
template for jquery plugin
!function( $ ){
"use strict"
var Taggable = function ( element, options ) {
this.$element = $(element);
this.options = $.extend({}, $.fn.taggable.defaults, options);
this.initialize();
}
Taggable.prototype = {
@beshkenadze
beshkenadze / CheatSheet.java
Created November 2, 2012 12:31 — forked from romannurik/CheatSheet.java
Android helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is already default platform behavior for icon-only action bar items and tabs. This class provides this behavior for any other such UI element.
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@beshkenadze
beshkenadze / gist:4152635
Created November 27, 2012 06:03 — forked from vena/gist:2856490
Netatalk 3.0 beta installation procedure (Ubuntu 12.04)

Install prerequisites:

$ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev

Download src:

$ cd /usr/local/src
$ git clone git://netatalk.git.sourceforge.net/gitroot/netatalk/netatalk
$ cd netatalk

$ ./bootstrap

@beshkenadze
beshkenadze / 1_netatalk-3-install-on-debian-7
Last active October 13, 2015 13:38 — forked from vena/gist:2856490
Netatalk 3 installation procedure (Ubuntu 12.04.2 LTS/Debian 7)
$ tar xvf netatalk-3.0.5.tar.bz2
$ cd netatalk-3.0.5
$ ./configure \
--with-init-style=debian \
--with-cracklib \
--without-libevent \
--with-pam-confdir=/etc/pam.d \
--with-dbus-sysconf-dir=/etc/dbus-1/system.d
$ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no