This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tooltips | |
function positionTooltip(element, event) { | |
var left = event.clientX + 20 + element.width() > window.innerWidth ? | |
window.innerWidth - element.width() - 20 : event.clientX + 10; | |
var top = event.clientY + 20 + element.height() > window.innerHeight ? | |
event.clientY - element.height() - 30 : event.clientY + 20; | |
element.css({'left': left + 'px', 'top': top + 'px'}); | |
} | |
$(document).on('mousemove', function (event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const localizationDir = ""; | |
const buildDir = "build"; | |
function showHelp() { | |
console.log( | |
"\nUsage: " | |
+ "node " | |
+ process.argv[1].substring(process.argv[1].lastIndexOf("\\") + process.argv[1].lastIndexOf("/") + 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var c = document.getElementById("myCanvas"); | |
var ctx = c.getContext("2d"); | |
// Create some imgData (100 x 100) | |
var imgData = ctx.createImageData(100, 100); | |
// Fill every pixel red in imgData | |
// Example from: http://www.w3schools.com/tags/canvas_imagedata_data.asp | |
var i; | |
for (i = 0; i < imgData.data.length; i += 4) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |