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 path = require('path'); | |
var url = require('url'); | |
var http = require('http'); | |
var fs = require('fs'); | |
var write_file; | |
//what global variable do we have? | |
var complete = false; | |
var content_length = 0; | |
var downloaded_bytes = 0; |
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 | |
require '../vendor/autoload.php'; | |
use Jcupitt\Vips; | |
Vips\Config::concurrencySet(2); | |
Vips\Config::CacheSetMax(0); | |
//header("Content-type: text/plain"); | |
//var_dump($_REQUEST); | |
$mime = "jpeg"; |
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
'use strict'; | |
var cacheVersion = 1; | |
var currentCache = { | |
offline: 'offline-cache' + cacheVersion | |
}; | |
const offlineUrl = 'offline.html'; | |
this.addEventListener('install', event => { | |
event.waitUntil( |
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 | |
use ajf\TypedArrays\Uint8Array; | |
use ajf\TypedArrays\Float32Array; | |
class openSimplexNoise { | |
/* | |
* Class Open Simplex | |
* Direct PHP implementation based on Jonas Wagner ( https://github.com/jwagner/simplex-noise.js/blob/master/simplex-noise.js ) | |
* implementation for javascript which is based on example code by Stefan Gustavson ([email protected]). | |
* eith Optimisations by Peter Eastman ([email protected]). |
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 | |
ini_set("error_reporting", E_ALL & ~E_NOTICE); | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Genetic Algorithm : TSP : PHP Implementation by Thomas Hunter</title> | |
<style> | |
body { |
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
$.fn.swipe = function( callback ) { | |
var touchDown = false, | |
originalPosition = null, | |
$el = $( this ); | |
function swipeInfo( event ) { | |
if ('undefined' !== typeof event.originalEvent.pageX) { | |
var x = event.originalEvent.pageX, | |
y = event.originalEvent.pageY, | |
dx, dy; |
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
<html> | |
<head> | |
<title>eID: Read</title> | |
<script type="text/javascript" src="https://localhost:100/be_belgium_eid.js"></script> | |
<script language="javascript" type="text/javascript"> | |
// Initialize the reader. | |
var cardReader = new be.belgium.eid.CardReader(); | |
// Bind error events. | |
function noCardPresentHandler() { window.alert("No card present!"); } |
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
document.cookie.split(";").forEach(function(c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); }); |
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
$("#txtboxToFilter").keydown(function (e) { | |
// Allow: backspace, delete, tab, escape, enter and . | |
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 || | |
// Allow: Ctrl+A, Command+A | |
(e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) || | |
// Allow: home, end, left, right, down, up | |
(e.keyCode >= 35 && e.keyCode <= 40)) { | |
// let it happen, don't do anything | |
return; | |
} |
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
<? | |
class ZOHO { | |
private $U = ""; | |
private $P = ""; | |
protected $BURL = 'https://crm.zoho.com/crm/private/xml/'; | |
protected $token = ""; | |
protected $pdata = array(); | |
public function __construct() { | |
$this->pdata = array("authtoken" => $this->token,"scope" => "crmapi"); |