Skip to content

Instantly share code, notes, and snippets.

View wenbert's full-sized avatar

Wenbert Del Rosario wenbert

View GitHub Profile
@wenbert
wenbert / README.md
Created July 25, 2012 01:29 — forked from melanke/README.md
watch the changes of some object or attribute

Watch.js 1.0.13

##compatibility Works with: IE 9+, FF 4+, SF 5+, WebKit, CH 7+, OP 12+, BESEN, Rhino 1.7+ If you want a similar API that works for all browser try MultiGetSet

About

Watch.JS is a small library that brings a lot of possibilities. Maybe you know the design pattern called "Observer", imagine the possibility of executing some function always that some object changes. Well, already exists other libraries that do this, but with Watch.JS you will not have to change your way to develop. Give a chance to Watch.JS, take a look at the examples and how is simple to embody Watch.JS to your routine.

## the Controller
<?php
class FormfieldsController extends AppController {
public $helpers = array('Html', 'Form', 'Formfield');
public $components = array('RequestHandler');
public function beforeFilter() {
parent::beforeFilter();
$this->Security->csrfExpires = '+1 hour';
<?php
namespace App\Controller;
use App\Controller\AppController;
use Goutte\Client;
class TestController extends ScraperController {
public function add_products()
try {
$savedNode = $nodesTable->save($node);
} catch(Exception $e) {
debug($e);
}
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
FROM php:7.0-fpm
RUN docker-php-ext-install pdo_mysql
# Install mbstring
RUN docker-php-ext-install mbstring
# Install bcmath
RUN docker-php-ext-install bcmath
# Install mcrypt