Skip to content

Instantly share code, notes, and snippets.

View ymirpl's full-sized avatar

Marcin Mincer ymirpl

View GitHub Profile
#ifndef WTE_BPChromeCastPlayerInternalState_h
#define WTE_BPChromeCastPlayerInternalState_h
typedef NS_ENUM(NSUInteger, BPChromeCastPlayerInternalState) {
BPChromeCastPlayerInternalStateDeviceDisconnected,
BPChromeCastPlayerInternalStateDeviceConnecting,
BPChromeCastPlayerInternalStateDeviceConnected,
BPChromeCastPlayerInternalStateAppConnecting,
BPChromeCastPlayerInternalStateAppConnected,
BPChromeCastPlayerInternalStateLoading,

Keybase proof

I hereby claim:

  • I am ymirpl on github.
  • I am marcinmincer (https://keybase.io/marcinmincer) on keybase.
  • I have a public key whose fingerprint is 46D4 B267 0B51 9775 AAE7 A8C5 E5E6 62C8 696C 2F5B

To claim this, I am signing this object:

Preface

App should be easily built in both staging and production versions (major differences – Facebook App ID, Twitter App ID, endpoints).

Staging server

Staging server addresses:

XMPP admin panel: http://chat.staging.example.bladepolska.com:9090

Editing new example website

Theme

The theme is called example. Your old theme is kept on server and called example BACKUP.

Files layout on server: All *.php templates are kept inside themes\example\sw2\ directory. All static files (images/scripts/styles) are inside common, content and sample directories.

Landing page

Landing page is a special kind of page that has it's own layout (special template). The template is called SW2-Landing-without-tabs-v2 Page Template and can be edited using Theme editor in WP's admin panel.

@ymirpl
ymirpl / gulpjs.md
Last active January 4, 2016 12:59

Caution

Use gulp-ruby-sass instead of gulp-sass, as the latter is faster, but buggy.
The gulp-ruby-sass compiler is stupid when it comes to directories, it will put all compiled css files in the plain dest no matter when it was originally.

The coffee compiler respects directories like you would expect it to do.

In other words, if you run gulp-ruby-sass for all files in current directory, using the same directory as a dst you will get:

.
|-- a.css
# coding: utf8
import re
from collections import defaultdict
NO_MPLS_NO_GAL = "/Volumes/Data/ymir/Dropbox/mgr/dla_ens/res/pre_results/no_mpls_no_gal/General-0.sca"
GAL_NO_MPLS = "/Volumes/Data/ymir/Dropbox/mgr/dla_ens/res/pre_results/gal_no_mpls/General-0.sca"
GAL_MPLS = "/Volumes/Data/ymir/Dropbox/mgr/dla_ens/res/pre_results/gal_mpls/General-0.sca"
def make_latex_table(title_row=['a', 'b'], cols=2, data=[], caption="opis", id="tab"):
@ymirpl
ymirpl / gist:2186273
Created March 24, 2012 18:37
Tsung error
Config Error, aborting ! {{case_clause,{error,enoent}},
[{xmerl_scan,fetch_DTD,2,
[{file,"xmerl_scan.erl"},{line,1283}]},
{xmerl_scan,scan_doctype3,3,
[{file,"xmerl_scan.erl"},{line,1264}]},
{xmerl_scan,scan_prolog,4,
[{file,"xmerl_scan.erl"},{line,722}]},
{xmerl_scan,scan_document,2,
[{file,"xmerl_scan.erl"},{line,563}]},
{xmerl_scan,file,2,
@ymirpl
ymirpl / gist:1908137
Created February 25, 2012 12:12
pppGAL.cc
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
@ymirpl
ymirpl / gist:1908133
Created February 25, 2012 12:11
pppGAL.h
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.