background preloader

Truc intéressants pour le code

Facebook Twitter

Path Node.js v5.9.1 Manual & Documentation. Stability: 2 - Stable This module contains utilities for handling and transforming file paths.

Path Node.js v5.9.1 Manual & Documentation

Almost all these methods perform only string transformations. The file system is not consulted to check whether paths are valid. Use require('path') to use this module. The following methods are provided: Node.js - How to set NODE_ENV to production/development in OS X. Code Like A Girl — The Lighthouse. Code Like A Girl A sticker that became so much more.

Code Like A Girl — The Lighthouse

I started the concept of Code Like a Girl with a sticker a year ago. Asynchronous Adventures in JavaScript: Understanding the Event Loop. Asynchronous Adventures in JavaScript: Understanding the Event Loop JavaScript is a powerful language that is quickly eating the world of software development.

Asynchronous Adventures in JavaScript: Understanding the Event Loop

One of the things that differentiates JavaScript from some of the more “traditional” C-like languages, is how it executes code. For those unfamiliar with JavaScript, it is often described as having a single-threaded, event-driven, and non-blocking I/O model. 10 Hottest Design Tools You Must Try In 2016 — The Digital Age. 10 Hottest Design Tools You Must Try In 2016 A recent design tools survey conducted by Khoi Vinh, one of Fast Company’s “fifty most influential designers in America”, shows that Photoshop is slowly losing its popularity among designers.

10 Hottest Design Tools You Must Try In 2016 — The Digital Age

Answers from over 4,000 participants hailing from almost 200 countries prove that designers are open to new tools that ease the process of conceptualizing, wireframing, prototyping and designing digital products. Let’s take a look at some of the hottest design tools you must try in 2016. Learning React.js: Getting Started and Concepts. Introduction Today we are going to kick off the first installment in a new series of tutorials, Learning React, that will focus on becoming proficient and effective with Facebook's React library.

Learning React.js: Getting Started and Concepts

Before we start building anything meaningful, its important that we cover some base concepts first, so lets get this party started. What is React? Setting Up a React.js Environment Using Npm, Babel 6 and Webpack. Facebook has really changed the way we think about front-end UI development with the introduction of React.

Setting Up a React.js Environment Using Npm, Babel 6 and Webpack

One of the main advantages of this component based approach is, it is easy to reason about as the view is just a function of props and state. Though the learning curve of React is shallower when compared to that of its counterparts, one intimidating aspect for the beginners is the tools (Babel, Webpack) and libraries around it. In fact, these tools are not required to use React and but in order to get the most out of the features of ES6, JSX and bundling, we need them. In this blog post, we are going to see how to setup a React development environment without being sidetracked by the tools. A Disclaimer: The approach that I am going to share is just for beginners to understand how to get started with React, as going by this lean way has helped a lot when I started learning React.

How to Become a Better Node.js Developer in 2016. These tips and best practices are not just for development - but how to operate Node.js infrastructures, how you should do your day-to-day development and other useful pieces of advice.

How to Become a Better Node.js Developer in 2016

Use ES2015 During the summer of 2015 the final draft of ES2015 (formerly ES6) was published. With this a number of new language features were added to the JavaScript language, including: arrow functions,template strings,rest operator, argument spreading,generators,promises,maps, sets,symbols, Forum du club des développeurs et IT Pro. Tags: joujoukinder a écrit: 01/03/2005 18h45 Information sur RUNTIME Bonjour, Quelqu'un pourrait-il m'expliquer ce qu est qu un runtime losque on parle d'une application?

Forum du club des développeurs et IT Pro

(si vous avez un exemple concret...)Merci! [Titre changé par BWP-Necromance] Anonymous a écrit: 01/03/2005 19h12 Re: Information sur RUNTIME Envoyé par le_marsupilami_2001Bonjour, Quelqu'un pourrait-il m'expliquer ce qu est qu un runtime losque on parle d'une application? (si vous avez un exemple concret...)Merci!

Un runtime est en environement necessaire a l'exécution d'un programme.Un exemple:lorsque Internet exploreur va sur le Web, et qu'il rencontre des pages avec du javascript. A very brief introduction to RxJS. Enter RxJS, the not-so-red-headed stepchild of Reactive Extensions from the .NET platform adopted by the JavaScript world.

A very brief introduction to RxJS

If you’re familiar with LINQ in any form or fashion, you’ll immediately think of words like “enumerable, yield, and foreach.” While the concept is similar to Enumerables, Rx takes things to the next level with error handling, and presumes that the “yield’d” values might be some events that haven’t actually happened yet. Like these index’s that for some reason just won’t let up: (function(){ var indexEverySecond = Rx.Observable.interval(1000); indexEverySecond.subscribe(function(index) { console.log(index); // 1, 2, 3, 4, etc... }); }()); Disclaimer: I’m expecting you to have a good understanding of JavaScript, closures, and imperative programming.

RxJS has the most useful methods you’d expect to see in it’s .NET implementation, like, for instance, select: Introduction à ReactJS. Learning React.js: Getting Started and Concepts. React la révolution des Views. CSS Vertical Center with Flexbox. Cross-Browser Inline-Block. Ah, inline-block, that elusive and oh so tempting display declaration that promises so much, yet delivers so little.

Cross-Browser Inline-Block

Too many times have I received PSD files like this: and begin to cry. Css - How to vertically align an image inside div. HTML 5 Canvas Polar Clock. Ember.js: Observing array property using @each doesn't work. What is the difference between the '[]' property and the '@each' property in ember.js? Lodash documentation.

_(value) Creates a lodash object which wraps value to enable implicit chaining. Methods that operate on and return arrays, collections, and functions can be chained together. Geometry - Efficiently find points inside a circle sector. Let’s Write Fast JavaScript — The JavaScript Collection. Shut up and show me the tips! Alright, so we want to write faster JavaScript code, here are a few small tips on making your code faster, and more memory efficient. Please note, I’m not strictly talking about DOM and web apps, it’s about JavaScript, DOM included. Seeing is believing, I’m going to add a jsperf test case for every tip, and test it using Firefox 38 and Chrome 39. #1 Don’t make me typecast JavaScript is dynamically typed, but try not to use that feature if you want speed.

Edit: The test case was technically wrong, sorry. . { var x = '2'; var y = 5; x = 2; x + y;} Test Case. You Might Not Need jQuery. Iterate through object properties. Node.js - Sails.js populate nested associations. Questions and Answers Resource. Sails.js 0.10.4 returns inconsistent JSON results where nested associations exist. This causes all sorts of headaches with nested associations and Ember Data. What is the preferred way of getting the two to work together? My stack is: Sails.js 0.10.4Ember CLI 0.0.42Ember 1.7.0Ember Data ~1.0.0-beta.7ember-data-sails-adapter: ~2.0.0.

Ember Data: A Tutorial and Examples of the Ember.js Data Library. Ember Data (a.k.a ember-data or is a library for robustly managing model data in Ember.js applications. The developers of Ember Data state that it is designed to be agnostic to the underlying persistence mechanism, so it works just as well with JSON APIs over HTTP as it does with streaming WebSockets or local IndexedDB storage. It provides many of the facilities you’d find in server-side object relational mappings (ORMs) like ActiveRecord, but is designed specifically for the unique environment of JavaScript in the browser. While Ember Data may take some time to grok, once you’ve done so, you will likely find it to have been well worth the investment. It will ultimately make development, enhancement, and maintenance of your system that much easier. MySQL command to show list of databases on server. I am a new Linux user and never used MySQL database server before.

How do I show the list of databases on my server? Is there any good GUI frontend exists for the same purpose? You can use the mysql command to connect to mysql server and list available databases. Task: Mysql list databases mysql is a simple command-line tool. mysql is command line and it is very easy to use. Sublime Text, raccourcis et plugins - La tête dans le flux !