Skip to content

Instantly share code, notes, and snippets.

@facine
facine / dialog.html
Created September 19, 2023 11:37 — forked from coinsandsteeldev/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<!DOCTYPE html>
<html>
<head>
<script>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
@facine
facine / tmux.md
Created March 9, 2018 11:03 — forked from jonhattan/tmux.md
tmux quickstart

tmux quickstart

$ tmux

CTRL+B C -> create new pane

CTRL+B [num] -> go to a pane

CTRL+D -> finish bash session, closes the pane. Closing all panes will destroy the window and thus the tmux

<?php
/**
* Implements hook_menu().
*/
function MODULENAME_menu() {
$items['node/%node/edit-line-item/%commerce_line_item'] = array(
'title' => 'Edit line item in the cart',
'page callback' => 'node_page_view',
'page arguments' => array(1),
@facine
facine / magic.php
Created October 8, 2013 11:18 — forked from e0ipso/magic.php
<?php
/**
* A base class with getters and setters incorporated.
*/
class ObjectBase {
/**
* Setter function for a generic attribute.
*
* @param string $property_name
<?php
$URL = 'http://example.com/login.php';
$user = 'USER';
$pass = 'PASS';
$cookie_path = dirname(__FILE__).'/cookie.txt';
/**
* Hace login en la web enviando un POST con el usuario y contraseña.