
Demo of a simple CRUD RESTful PHP service used with AngularJS and MySQL <?php require_once("Rest.inc.php"); class API extends REST { public $data = ""; const DB_SERVER = "127.0.0.1"; const DB_USER = "root"; const DB_PASSWORD = ""; const DB = "angularcode_customer"; private $db = NULL; private $mysqli = NULL; public function __construct(){ parent::__construct(); // Init parent contructor $this->dbConnect(); // Initiate Database connection * Connect to Database private function dbConnect(){ $this->mysqli = new mysqli(self::DB_SERVER, self::DB_USER, self::DB_PASSWORD, self::DB); * Dynmically call the method based on the query string public function processApi(){ $func = strtolower(trim(str_replace("/","",$_REQUEST['x']))); if((int)method_exists($this,$func) > 0) $this->$func(); else $this->response('',404); // If the method not exist with in this class "Page not found". private function login(){ if($this->get_request_method() ! $this->response('',406); $email = $this->_request['email']; $password = $this->_request['pwd']; if(! if(filter_var($email, FILTER_VALIDATE_EMAIL)){ if($id > 0){
CakePHP v3.0 - the rapid development php framework. Frameworks et bibliotheques pour le développement web Django Django est le framework Web de référence en Python. Il a été créé en 2005 par la société Lawrence Journal-World. Lire la fiche complètetop Google Web Toolkit is an RIA framework developed by Google, whose version 1.0 dates back to 17 May 2006. Lire la fiche complètetop JQuery JQuery est une des principales bibliothèques JavaScript., créée par John Resig en 2006, elle propose deux versions majeurs la 1.x et 2.x avec comme différence majeure l'arrêt du support des versions inférieurs à IE9 pour jQuery 2.x Lire la fiche complètetop Play ! Play! Lire la fiche complètetop Prototype Prototype est une bibliothèque Javascript créée en 2005 par Sam Stephenson, afin d'ajouter le support AJAX au framework Ruby On Rails, elle ne connait plus aucun changement depuis mars 2013. Lire la fiche complètetop Ruby On Rails Ruby On Rails est un framework Web. Lire la fiche complètetop Spring Spring est un portfolio d'outils et de bibliothèques. Lire la fiche complètetop Symfony Lire la fiche complètetop Zend Framework
SVG and CSS - Cascading Style Sheets It is possible to style your SVG shapes using CSS. By styling is meant to change the looks of the shapes. This can be stroke color and width, fill color, opacity and many other properties of your shapes. There are 6 ways to style the shapes in your SVG images. This text assumes that you are familiar with CSS. CSS Styling Using Attributes Is it possible to style an SVG shape using specific style attributes like stroke and fill. There are a range of styling attributes available. Using the style Attribute and CSS Properties This method doesn't use any style specific attributes. Here is the same circle with the stroke and fill set via the style attribute and CSS properties: Using Inline Style Sheets It is possible to define the styles for your shapes in an inline style sheet, and then have all these styles automatically applied to your shapes. Notice how the style of the circle-element is defined inside the <style>-element. The class Attribute Using External Style Sheets SVG CSS Properties
jQuery UI Framework or not Framework Aujourd'hui je voulais vous parler des frameworks PHP et de la raison qu'il y a derrière le choix de l'utilisation d'un framework ou non. Le but ici ne sera pas de faire de l'évangélisation pure et simple, mais plutôt de donner mon point de vue et d'éclaircir les développeurs qui se poseraient encore des questions sur l'utilisation d'un framework. Stop les tuto CakePHP c dla merde ! on veux du PHP Brut ça sert à rien les framework C'est le genre de phrase typique que je vois de plus en plus dans les commentaires des vidéos. Woot !? Même si vous codez en procédural ou en POO vous ne le savez pas mais vous utiliser déjà un framework. Mon code je l'aime, pourquoi utiliser le code d'un autre ? Donc là vous vous dites sûrement "ben mon code que j'ai créé me va, pourquoi utiliser un framework". Les frameworks ouverts utilisent tous la même structure, la structure MVC (Model View Controller) qui est une structure éprouvée qui vous permet de séparer la partie présentation de la partie logique.
GeeksforGeeks | A computer science portal for geeks [ Wikidébrouillard ] Compter jusqu'à 31 avec une seule main De Wikidebrouillard. Présentation de l'expérience Comment compter jusqu'à 31 uniquement à l'aide des 5 doigts d'une main ? Là où habituellement on se limite à compter jusqu'à 5 avec les 5 doigts d'une main ou bien jusqu'à 10 en utilisant les 2 mains, on peut très bien trouver une technique permettant de compter jusqu'à 31 avec une seule main, voire jusqu'à 1023 en utilisant les 2 mains ! Matériel Une main L'expérience La manipulation On associe à chacun des 5 doigts de la main une valeur multiple de 2 croissante. On additionne ensuite les valeurs de chacun des doigts qui sont montrés, par exemple si tous les doigts sont relevés on obtient 1+2+4+8+16 = 31. Que voit-on ? On observe que l'on peut obtenir toutes les valeurs comprises entre 0 et 31 (inclus) selon les différentes combinaisons de doigts que l'on montre. Explications De manière simple Cela revient à compter en base 2 (binaire) qui est un concept de base de l'informatique. Allons plus loin dans l'explication Liens avec d'autres expériences
Accessible Open Source Content Management System Convertisseur d'image gratuit en ligne Front-end Developer Handbook 2017 · GitBook Written by Cody Lindley sponsored by — Frontend Masters This is a guide that anyone could use to learn about the practice of front-end development. It broadly outlines and discusses the practice of front-end engineering: how to learn it and what tools are used when practicing it in 2017. It is specifically written with the intention of being a professional resource for potential and currently practicing front-end developers to equip themselves with learning materials and development tools. Secondarily, it can be used by managers, CTOs, instructors, and head hunters to gain insights into the practice of front-end development. The content of the handbook favors web technologies (HTML, CSS, DOM, and JavaScript) and those solutions that are directly built on top of these open technologies. The book should not be considered a comprehensive outline of all resources available to a front-end developer. The intention is to release an update to the content yearly. Part I.
lorempixel - placeholder images for every case Create Games with Construct 2 The Many Faces of Functions in JavaScript - - Bocoup If you’ve had any contact with JavaScript code, you’re probably very familiar with how to define and call functions, but are you aware of of how many different ways you can define a function? This is a common challenge of writing and maintaining tests in Test262—especially when a new feature comes into contact with any existing function syntax, or extends the function API. It is necessary to assert that new or proposed syntax and APIs are valid, against every existing variant in the language. The following is an illustrative overview of the existing syntactic forms for functions in JavaScript. The Old Ways Function Declaration and Expression The most well known and widely used forms are also the oldest: Function Declaration and Function Expression. function BindingIdentifier() {} (function BindingIdentifier() {}); (function() {}); Keep in mind that Anonymous Function Expressions might still have a “name”; Mike Pennisi explains in depth in his article “What’s in a Function Name? The New Ways