Skip to content

Instantly share code, notes, and snippets.

jacek213

  • Warsaw, Poland
Block or report user

Report or block jacek213

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 airbnb.json
{"manage_listing_listing_detail":{"id":40232336,"amenity_categories":[],"name":"","summary":"","street":"Miedziana 22","city":"Warszawa","state":"mazowieckie","country_code":"PL","zipcode":"00-809","lat":52.230576,"lng":20.989931,"bedrooms":0,"beds":1,"bathrooms":1.5,"room_type":"Całe miejsce","room_type_category":"entire_home","person_capacity":2,"property_type_id":1,"tier_id":0,"directions":"","user_defined_location":false,"is_location_exact":true,"list_your_space_last_finished_step_id":"BATHROOMS","property_type_group":"apartments","apt":"","has_ever_been_available":false,"user_id":10381567,"facebook_connected":true,"display_exact_location_to_guest":false,"has_availability":false,"visibility":"world","show_all_visibility_options":false,"listing_category_values":[{"category_type":"residence_type"},{"category_type":"host_interaction"},{"category_type":"size_of_building"},{"category_type":"category_listing_type","category_value":"listing_category_type_home"},{"category_type":"keep_personal_belonging","categor
@jacek213
jacek213 / nginx.conf
Created Feb 4, 2019 — forked from tompave/nginx.conf
nginx conf for multiple upstreams and different domains
View nginx.conf
# A commented nginx configuration file for Ruby on Rails
#
# Author: Tommaso Pavese
# tommaso@pavese.me
# http://tommaso.pavese.me
#
# License: http://www.wtfpl.net/
#
#
# Tested with:
View nginx conf with node app and statics
upstream node_app_main {
server localhost:8080;
}
server {
listen 80;
server_name od-reki.volkswagen.pl;
root /home/deploy/main-node/current/public;
View rails admin export associated value
export do
field :car_name, :string do
export_value do
bindings[:object]&.car_model&.car_name&.name
end
end
end
@jacek213
jacek213 / cloudSettings
Last active May 5, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-05-05T17:05:37.157Z","extensionVersion":"v3.4.3"}
@jacek213
jacek213 / deploy.sh
Created Jun 29, 2018
node app deploy script
View deploy.sh
#!/bin/bash
set -e
set -o pipefail
########### USER CONFIGURABLE OPTS ################
REMOTE_ADDR=example.com
GIT_REMOTE=git@git.example.com:example/app.git
CACHE_DIR=tmp/.cache
###################################################
View poormans_elastic.rb
module Alfalek
class MegaSearch < Grape::API
INDEX_SOURCE = [
{klass: Doctor, cols: %w{title fname lname short_description}},
{klass: DiagnosticCategory, cols: %w{name description}},
{klass: LaboratoryCategory, cols: %w{name description}},
{klass: MicrobiologyCategory, cols: %w{name description}},
{klass: RehabilitationCategory, cols: %w{name description}},
{klass: TreatmentCategory, cols: %w{name description}}
View paginator-section.js.coffee
# @cjsx React.DOM
@PaginatorSection = React.createClass
displayName: 'PaginatorSection'
_handleOnClick: (pageNumber) ->
@props.onPaginate(pageNumber)
_handleNextClick: (e) ->
e.preventDefault();
View paginacja anno domini 2015.js.coffee
# @cjsx React.DOM
@ArticlesSection = React.createClass
displayName: 'ArticlesSection'
getInitialState: ->
didFetchData: false
articles: []
meta:
total_pages: 0
You can’t perform that action at this time.