Skip to content

Instantly share code, notes, and snippets.

@ladyjer
ladyjer / excel.html
Created March 15, 2016 21:41
Excel-like sum of HTML input fields using AngularJS
<!DOCTYPE html>
<html lang="en">
<head>
<title>Excel like</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
<h1>Excel like</h1>
@ladyjer
ladyjer / php5_vs_php5.sh
Last active August 1, 2018 20:31
Switch between PHP5 and PHP7 on Linux
sudo service apache2 stop
sudo a2dismod php5
sudo a2enmod php7
sudo service apache2 start
@ladyjer
ladyjer / SoapClientDebug.php
Created January 22, 2016 08:33
Inspect XML created by PHP SoapClient call before/without sending the request
<?php
class SoapClientDebug extends SoapClient
{
public function __doRequest($request, $location, $action, $version, $one_way = 0) {
// Add code to inspect/dissect/debug/adjust the XML given in $request here
// Uncomment the following line, if you actually want to do the request
// return parent::__doRequest($request, $location, $action, $version, $one_way);
}
}
@ladyjer
ladyjer / zizag.css
Created September 13, 2015 14:04
CSS to display a zigzag profile on top and bottom of an HTML element. Class 'zigzag'
.zigzag::after {
content:'';
display:block;
height:10px;
background:repeating-linear-gradient(
-45deg,
transparent ,
transparent 50%,
#006ab7 50%,
#006ab7