Skip to content

Instantly share code, notes, and snippets.

View piotrbernad's full-sized avatar

Piotr Bernad piotrbernad

View GitHub Profile
- widoki map poszczególnych pięter
- informacje na temat widoku "czy wiesz że..."
{
"brouchures" : [
{
"title":"Test brochure",
"id": 11,
"pages_count": 3,
"pages": [
{
"page_number": 0,
"image_url": "page1.png",
{
"brouchures": [
{
"title": "Test brochure",
"id": 11,
"pages_count": 3,
"pages": [
{
"page_index": 0,
"image_url": "page1",
{
"brouchures": [
{
"title": "Test brochure",
"id": 11,
"pages_count": 3,
"pages": [
{
"page_index": 0,
"image_name": "page1",
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect {
NSArray *attributes = [super layoutAttributesForElementsInRect:rect];
for (UICollectionViewLayoutAttributes *a in attributes) {
if (a.indexPath.item == 0) {
CGSize itemSize = a.frame.size;
CGRect collectionBounds = self.collectionView.bounds;
CGFloat x = floorf(CGRectGetMidX(collectionBounds) - itemSize.width/2.0f);
CGFloat y = floorf(CGRectGetMidY(collectionBounds) - itemSize.height/2.0f);
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><iftTemplate><formTemplate>true</formTemplate><localization><localization>
<language default="true" name="Polski" tag="pl"/>
<entry key="GesText1.text">
<item tag="pl">Pole ze zmiennej sesyjnej</item>
</entry>
<entry key="GesText2.text">
<item tag="pl">Pole z bezpiecznej zmiennej sesyjnej</item>
</entry>
</localization>
</localization><template><system:InternetForm xmlns:data="clr-namespace:pl.consdata.iew.ges.components.data" xmlns:system="clr-namespace:pl.consdata.iew.ges.components.system" xmlns:x1="http://www.eclipse.org/xwt" titleKey="form.title">
<?xml version="1.0" encoding="UTF-8"?>
<form>
<dataSource>DS_PRESENTER_4W</dataSource>
<field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="booleanFormField" mid="GesCheckbox1" id="GesCheckbox1">
<value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</value>
</field>
<field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="booleanFormField" mid="GesCheckbox2" id="GesCheckbox2">
<value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</value>
</field>
<field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="booleanFormField" mid="GesCheckbox3" id="GesCheckbox3">
#!/bin/bash
mv /tmp/id_rsa ${HOME}/.ssh/id_rsa
mv /tmp/id_rsa.pub ${HOME}/.ssh/id_rsa.pub
cat > ~/.ssh/known_hosts <<EOF
[review.appunite.com]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7QO9BK5rR1/3draS4UZlfzRuCXsvauubbN3HNcJiFe4rqDNRTW5oKJ4US4wbds9lB58zrUW3e9mK7XiuX1VXcfZp18//kdozreTK2z37vC0l2KfScfn11EjwBsHztEm+ZTm8oir1ihHUsdob9dnMoMCvD1IpM1jwVsogNX8OwluUY4axlBv+meV4YGKN9YoFIEut9oM2eZXuDM7Yz9PxZ034vxtgMLKdIPfJDb11KmtdEkw5wPRBTq/2baYhacP3QZtXOHi2VWyMztmTsEg4Asl+eCSaXfQzNSQgJxWUxkvfX/bHz4/3DPaTsWESn76lwNQQVKKmp88LNQKUwHIEz
EOF
chmod 0600 ~/.ssh/id_rsa
@piotrbernad
piotrbernad / Pins By Category
Created May 21, 2014 06:02
Pins By Category JSON
{
"categories": [
{
"pinable_type": "restaurant",
"pins_count": "44",
"pin": {
"created_at": "1400053646",
"updated_at": "1400053886",
"id": 2,
"pinnable_type": "Place",
@piotrbernad
piotrbernad / Pins By Month
Created May 21, 2014 06:15
Pins By Month JSON
{
"categories": [
{
"month_string": "20138",
"pins_count": "44",
"pin": {
"created_at": "1400053646",
"updated_at": "1400053886",
"id": 2,
"pinnable_type": "Place",