Skip to content

Instantly share code, notes, and snippets.

View monschine's full-sized avatar

Jordi monschine

  • Barcelona
View GitHub Profile
@monschine
monschine / bezier.js
Created March 7, 2018 12:35 — forked from mckamey/bezier.js
JavaScript port of Webkit CSS cubic-bezier(p1x.p1y,p2x,p2y) and various approximations
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@monschine
monschine / bezier.js
Created March 7, 2018 12:35 — forked from mckamey/bezier.js
JavaScript port of Webkit CSS cubic-bezier(p1x.p1y,p2x,p2y) and various approximations
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@monschine
monschine / console-example.php
Created December 21, 2017 17:56 — forked from sallar/console-example.php
PHP Colored CLI Output Script.
<?php
// Output screenshot:
// http://cl.ly/NsqF
// -------------------------------------------------------
include_once 'console.php';
// ::log method usage
// -------------------------------------------------------
Console::log('Im Red!', 'red');
@monschine
monschine / panokml.php
Created July 20, 2017 09:14 — forked from mavisland/panokml.php
pano.kml
<?php
function WriteHeader() {
header('Content-Type: application/vnd.google-earth.kml+xml');
header('Content-Disposition: attachment;filename="pano.kml"');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<kml xmlns=\"http://earth.google.com/kml/2.1\">\n";
echo "<Folder>\n";
echo "\t<name>pano</name>\n";
echo "\t<open>1</open>\n";
@monschine
monschine / panokml.php
Created July 20, 2017 09:13 — forked from mavisland/panokml.php
pano.kml
<?php
function WriteHeader() {
header('Content-Type: application/vnd.google-earth.kml+xml');
header('Content-Disposition: attachment;filename="pano.kml"');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<kml xmlns=\"http://earth.google.com/kml/2.1\">\n";
echo "<Folder>\n";
echo "\t<name>pano</name>\n";
echo "\t<open>1</open>\n";