Skip to content

Instantly share code, notes, and snippets.

View ddpunk's full-sized avatar

Maciej Krasowski ddpunk

View GitHub Profile
define("app/view/question/lookup_bar", ["w2.quora", "interface/jquery", "view/selector", "shared/window_manager", "shared/events/index", "shared/siteuri", "shared/cookies", "app/view/site_header/logged_in", "unified_view/toggle"], function nn(require, exports, module) {
var e = require("w2.quora").Component,
$ = require("interface/jquery")._jQuery,
t = require("view/selector").WithServerCallMessageMixin,
i = require("shared/window_manager"),
n = require("shared/events/index"),
s = require("shared/siteuri").URI,
o = require("shared/cookies"),
r = require("app/view/site_header/logged_in").LoggedInSiteHeaderContext,
a = require("unified_view/toggle");
* Files: /third_party/json2.js, /shared/assert.js, /shared/util.js, /gating.js, /shared/log.settings.js, /shared/log.js, /interface/helpers.js, /interface/settings.js, /jquery.js, /shared/core/rpc.js, /shared/Class.js, /shared/w2.context.js, /shared/events/types.js, /shared/eventemitter.js, /shared/events/hub.js, /shared/events/scope.js, /shared/events/proxy.js, /shared/events/helpers.js, /shared/events/index.js, /third_party/browser.js, /shared/browser.js, /shared/client.js, /w2.errors.js, /shared/qlocal_storage.js, /shared/window_manager.js, /interface/rpc.js, /shared/logging.js, /shared/perf.js, /tchannel_up.js, /w2.livenode.js, /shared/loading.js, /shared/debounce.js, /shared/rpc_manager.js, /jquery.ajax.js, /actions.js, /w2.rpc.js, /webnode2.js, /interface/modal.js, /shared/core/component.js, /shared/siteuri.js, /shared/viewport.js, /shared/cookies.js, /shared/fastclick.js, /interface/jquery.js, /shared/beforeunload.js, /jquery.securepost.js, /jquery.dialog.js, /jquery.tooltip.js, /jquery.menu.js, /datep
* Files: /third_party/json2.js, /shared/assert.js, /shared/util.js, /gating.js, /shared/log.settings.js, /shared/log.js, /interface/helpers.js, /interface/settings.js, /jquery.js, /shared/core/rpc.js, /shared/Class.js, /shared/w2.context.js, /shared/events/types.js, /shared/eventemitter.js, /shared/events/hub.js, /shared/events/scope.js, /shared/events/proxy.js, /shared/events/helpers.js, /shared/events/index.js, /third_party/browser.js, /shared/browser.js, /shared/client.js, /w2.errors.js, /shared/qlocal_storage.js, /shared/window_manager.js, /interface/rpc.js, /shared/logging.js, /shared/perf.js, /tchannel_up.js, /w2.livenode.js, /shared/loading.js, /shared/debounce.js, /shared/rpc_manager.js, /jquery.ajax.js, /actions.js, /w2.rpc.js, /webnode2.js, /interface/modal.js, /shared/core/component.js, /shared/siteuri.js, /shared/viewport.js, /shared/cookies.js, /shared/fastclick.js, /interface/jquery.js, /shared/beforeunload.js, /jquery.securepost.js, /jquery.dialog.js, /jquery.tooltip.js, /jquery.menu.js, /datep
// Equal profiles
$(document).ready(function() {
var maxHeight = Math.max.apply(null, $("#team .profile").map(function ()
{
return $(this).height();
}).get());
$("#team .profile").height(maxHeight);
});
class Api::V1::VideosController < Api::V1::ApplicationController
def index
if params[:q] and !params[:q].empty?
client = Elasticsearch::Client.new log: true, hosts: ['http://localhost:9200'], reload_connections: true
# zapytanie DSL
result = client.search index: 'yt', type: 'video', pretty: true,
body: {
query: {