Skip to content

Instantly share code, notes, and snippets.

@alexzabolotny
alexzabolotny / example.php
Created March 21, 2017 09:56 — forked from hikari-no-yume/example.php
function chaining for PHP 7
<?php declare(strict_types=1);
require_once "✨.🐘";
✨($_)->strlen("foo")->var_dump($_);
@alexzabolotny
alexzabolotny / gist:840d46f83b6827ab9cbf
Last active August 29, 2015 14:23
Share iPad/iPhone screen drawing over Skype
1. You need Mac running at least Mac OS Yosemite, iPad and USB cable.
2. Connect iPad to Mac with USB cable.
3. Open QuickTime Player on Mac.
4. Go to File->New Movie Recording.
5. Use small arrow next do QuickTime's record button to select you iPad name and verify that you see its screen. iPad must be unlocked to share screen.
6. Share your screen or QuickTime's window on Skype. Done.
@alexzabolotny
alexzabolotny / Google Maps to Garmin
Created June 18, 2015 10:06
How to: Upload directions from Google Maps to Garmin (Forerunner 310XT in this case)
1. Create a route in google maps;
2. Copy map URL to http://www.gpsvisualizer.com/convert_input and convert to GPX;
3. Download GPX and go to https://connect.garmin.com/modern/activities;
3.1. Optionally use http://www.gpsies.com/convert.do to convert to TCX;
4. Find 'Import' button and import GPX/TCX file from step 3 as a Garmin activity;
5. Go to details of imported activity and find 'Save as Course' in 'Gear' icon menu (upper right corner);
6. Put all options (e.g. "loop to start") and save;
7. You can send the course to device from the same page as soon as it saves.