Skip to content

Instantly share code, notes, and snippets.

View thedevankit's full-sized avatar
🏠
Working from home

Ankitkumar Singh thedevankit

🏠
Working from home
View GitHub Profile
@thedevankit
thedevankit / pdf-thumbnail-php.md
Created September 25, 2017 11:49 — forked from umidjons/pdf-thumbnail-php.md
Creating PDF thumbnails in PHP

Creating PDF thumbnails in PHP

Install Ghostscript

Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit).

Enable ImageMagick

@jeromeetienne
jeromeetienne / firebase-receiver.html
Created June 25, 2017 16:00
firebase - example - one webpage sending data to another
<script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
// YOUR CONFIG goes here - https://firebase.google.com/docs/web/setup#add_firebase_to_your_app
};
var firebaseApp = firebase.initializeApp(config);
var rootRef = firebase.database().ref();
// Get a reference to the /users/ada node
var adaRef = firebase.database().ref("users/ada");