Skip to content

Instantly share code, notes, and snippets.

Maciej Krasowski ddpunk

  • Poland
Block or report user

Report or block ddpunk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b9f3364ad708df05ee46f2d030ab250b
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");
View gist:37ff48e1063ce101eb583321043c61e6
* 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
View gist:de5d183280183c0ebcdab1a4d43a7b0b
* 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
View gist:1c9076b8996db63a1cea
// Equal profiles
$(document).ready(function() {
var maxHeight = Math.max.apply(null, $("#team .profile").map(function ()
{
return $(this).height();
}).get());
$("#team .profile").height(maxHeight);
});
View gist:7429235
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: {
You can’t perform that action at this time.