Skip to content

Instantly share code, notes, and snippets.

View pebsconsulting's full-sized avatar

Georgi Tsochev pebsconsulting

  • PEBS-Management Consulting LTD
  • Sofia
View GitHub Profile
@pebsconsulting
pebsconsulting / bp-footer-debug.php
Created July 28, 2017 16:44 — forked from r-a-y/bp-footer-debug.php
A BuddyPress debug plugin that outputs some useful BuddyPress global variables in the footer.
@pebsconsulting
pebsconsulting / findZIndexes
Created September 8, 2017 14:52 — forked from benkeen/findZIndexes
Find all elements in a page with a z-index set
$('*').filter(function() {
return $(this).css("zIndex") !== "auto";
}).each(function(row, item) {
console.log(item, $(item).css("zIndex"));
});
@pebsconsulting
pebsconsulting / docker-compose.yml
Created November 19, 2017 00:21 — forked from ju2wheels/docker-compose.yml
docker-compose reference YAML file with comments
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
service_name:
<?php
$OTS = '/usr/bin/ots';
loadurl();
if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){
header('Content-Type: text/html; charset=utf-8');
html_header();
form();
@pebsconsulting
pebsconsulting / Equity.md
Created March 24, 2018 09:06 — forked from isaacsanders/Equity.md
Joel Spolsky on Equity for Startups

This is a post by Joel Spolsky. The original post is linked at the bottom.

This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.

The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju

({
block : 'page',
title : 'hello',
head : [
{ elem : 'css', url : 'hello.min.css' }
],
scripts : [{ elem : 'js', url : 'hello.min.js' }],
mods : { theme : 'islands' },
content : [
{
.input
{
position: relative;
top: 44px;
}
.input__control
{
width: 200px;
}
.link
{
color: #666;
text-decoration: none;
}
.link__slogan
{
font: 11px Verdana, sans-serif;
block('goods')(
tag()('ul'),
content()(function() {
return this.ctx.goods.map(function(item){
return [
{
elem: 'item',
content: [