Skip to content

Instantly share code, notes, and snippets.

@EmilSabitov
EmilSabitov / style.css
Created May 31, 2016 07:49
Template for style css
html * {
max-height: 1000000px;
}
* {
-webkit-text-size-adjust: none;
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
// iframe
var youtubePlayer = document.getElementsByClassName('youtube-player')[0];
// play
youtubePlayer.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
// pause
youtubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
// stop
@EmilSabitov
EmilSabitov / PushNotifications.php
Created July 4, 2016 10:05 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";