Skip to content

Instantly share code, notes, and snippets.

@sixFingers
sixFingers / todo.html
Created April 1, 2021 07:53
Backbone Todo app
<html>
<head></head>
<body>Hello</body>
</html>
{
"success":true,
"data":{
"name":"Contact Form to Manage and respond to conversations with customers \u2014 HappyForms",
"slug":"happyforms-upgrade",
"version":"1.17.5",
"author":"HappyForms",
"requires":"5.0.3",
"tested":"5.4.2",
"requires_php":"5.3",
@sixFingers
sixFingers / XHR
Last active February 5, 2019 09:54
{
"name": "Filous"
}

Actions

make_api_loaded

do_action( 'make_api_loaded', $Make );
Description
= 1.8.8 - May 10 2017 =
* New feature: Added a setting to control background position for sections.
* Improved: Settings in overlays are now categorized into expandable sections.
* Improved: Better styling for the background color picker.
* Improved: Settings backend specification for sections was refactored for easier tweaking.
* Improved: Background controls in the overlay now show up only when a background media is selected.
* Improved: Media overlay sidebars are now contextual to the selected media.
* Improved: Compatibility with WooCommerce 3.0 product galleries.
* Improved: Removed legacy General -> Logo panel from Customizer.
* Improved: Wording of input labels in various builder sections.
-- Andrew's monotone chain convex hull algorithm
-- https://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain
-- Direct port from Javascript version
function march(points)
local p = #points
local cross = function(p, q, r)
return (q[2] - p[2]) * (r[1] - q[1]) - (q[1] - p[1]) * (r[2] - q[2])
end
@sixFingers
sixFingers / diff.py
Created November 5, 2015 14:49 — forked from jorendorff/diff.py
A primitive `diff` in 50 lines of Python. Explained here: http://pynash.org/2013/02/26/diff-in-50-lines.html
""" Usage: python diff.py FILE1 FILE2
A primitive `diff` in 50 lines of Python.
Explained here: http://pynash.org/2013/02/26/diff-in-50-lines.html
"""
def longest_matching_slice(a, a0, a1, b, b0, b1):
sa, sb, n = a0, b0, 0
runs = {}
// Programma di esempio:
// * Apri una finestra
// * Ascolta l'evento "quit" di SDL
// * Crea un renderer
// * Carica una bitmap da un percorso
// * Crea una texture dalla bitmap
// * Disegna la texture sul renderer
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
@sixFingers
sixFingers / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/