Skip to content

Instantly share code, notes, and snippets.

View boyaq's full-sized avatar

bulutbazar boyaq

View GitHub Profile
@LucaColonnello
LucaColonnello / HTTPInterface.js
Last active August 31, 2017 17:23
Loopback React SDK Proposals
// it could be part of the LoopBackSDK module
// evaluate usage of node http module for ajax call
var http = require( 'http' );
// LoopBack HTTP Interface
// Class that has the responsibility to call
// the LoopBack Application, must be instantiated for each models
function HTTPInterface(
@prime31
prime31 / gist:5675017
Last active September 9, 2024 04:24
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@remy
remy / gist:2484402
Created April 24, 2012 22:45
jquery.marquee.js
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@drmartin1998
drmartin1998 / air_printing.js
Created March 20, 2011 13:59
JS routine to print HTML in Adobe AIR
var doPrintAir = function(e) {
// create PrintJob object
var myPrintJob = new window.runtime.flash.printing.PrintJob;
var invoiceDom = Y.one("#invoice_container");
var contentHeight = invoiceDom.getStyle('height').replace(/px/, '');
var contentWidth = 800; //invoiceDom.getStyle('width').replace(/px/, '');
myPrintJob.paperArea.width = '612px';
myPrintJob.paperArea.height = '792px';