background preloader

DailyJS: A JavaScript Blog

impress Impressive totalitarian style Multipurpose Application Server for node.js. All decisions are made. Solutions are scaled. Tools are provided and optimized for high load. The main difference from others that Impress core is monolithic and its approach is to make all in one solution with high code coupling for obligatory things and leave not obligatory to be integrated by applied developers optionally. Installation $ npm install impress Features Configuration Install module using "npm install impress" in new directory. Handler examples and file system url mapping Example Following "server.js" is stating file. require('impress'); impress.server.on("start", function() { }); impress.server.start(); File "access.js" is something line ".htaccess", you can easily define access restrictions for each folder, placing "access.js" in it. File "request.js": place such file in folder to be executed on each request (GET, POST, PUT, etc.). <! Contributors Timur Shemsedinov (marcusaurelius)See github License

The Node Beginner Book » A comprehensive Node.js tutorial Documentation JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module. More docs: List of all JSHint options · CLI flags · Writing your own reporter · FAQ Basic usage The easiest way to use JSHint is to install it as a Node program. To do so, simply run the following command in your terminal (flag -g installs JSHint globally on your system, omit it if you want to install JSHint in the current working directory): $ npm install jshint -g After you've done that you should be able to use the jshint program. $ jshint myfile.js myfile.js: line 10, col 39, Octal literals are not allowed in strict mode. 1 error If a file path is a dash (-) then JSHint will read from standard input. Configuration JSHint comes with a default set of warnings but it was designed to be very configurable. This setup allows you to have different configuration files per project. Inline configuration Directives jshint

janl/mustache.js - GitHub inorganik/countUp.js Полезные инструменты, туториалы и ресурсы Созданый Райаном Далем в 2009 году, Node.js — относительно новая технология, завоевавшая в последнее время большую популярность среди веб-разработчиков. Однако, до сих пор не каждый знает, что на самом деле Node.js это серверная JavaScript среда, использующая асинхронную событийную модель. Что это означает? Все просто: это среда, которая предназначена для написания масштабируемых, высокопроизводительных приложений. И это еще не все: то, что действительно круто в Node.js — это тысячи модулей, доступных для любых целей, а также активниешее сообщество этого молодого проекта. Полезные инструменты Node.js Node Express Boilerplate Node Express Boilerplate позволяет начать проект с чистого листа, но при этом сразу же обеспечивает решение всех тех рутинных задач, которые зачастую могут сорвать проект еще до того, как он начат. Socket.IO Mastering Node Log.io Ваша инфраструктура имеет сотни логов, распределенных по десяткам машин? Formaline LDAPjs Node Supervisor Stylus: Расширеный CSS для Node.js Jade

Studio The professional, open source development tool for the open web It's ready. It's time. Core Features HTML, CSS, and JavaScript Code Assist Aids in authoring of HTML, CSS, JavaScript, PHP, and Ruby. Code Assist Deployment Wizard Support for one-shot as well as keep-synchronized setups. Deployment Wizard Support for one-shot as well as keep-synchronized setups. Integrated Debugger Set breakpoints, inspect variables, control execution. Integrated Debugger Git Integration Easily put your projects under git source code control. Git Integration Easily put your projects under git source code control. Built-in Terminal Quickly access a command line terminal for execution of operating system commands and language utilities such as gem, rake, etc. Built-in Terminal IDE Customization Setup your development environment exactly the way you want it by extending the core capabilities through scripting of custom commands. IDE Customization

A Javascript When Function Mon Feb 20 2012 function when(conditionFunc, execFunc, interval){ if (conditionFunc()){ execFunc(); }else{ setTimeout(function(){ when(conditionFunc, execFunc, interval);}, interval); } } You have some code which should only execute when a condition is true. E.g. You have code which relies on a javascript library but can't be sure the library has loaded yet and don't want the code to execute until it has. Use when like this... function libIsReady(){ return typeof(LIBRARYNAME) ! Categories

{{ mustache }} Logic-less templates. Available in Ruby, JavaScript, Python, Erlang, node.js, PHP, Perl, Objective-C, Java, .NET, Android, C++, Go, Lua, ooc, ActionScript, ColdFusion, Scala, Clojure, Fantom, CoffeeScript, D, Haskell, XQuery, ASP, Io, Dart, and for Haxe Works great with TextMate, Vim, Emacs, and Coda The Manual: mustache(5) and mustache(1) Demo <h1>{{header}}</h1> {{#bug}} {{/bug}} {{#items}} {{#first}} <li><strong>{{name}}</strong></li> {{/first}} {{#link}} <li><a href="{{url}}">{{name}}</a></li> {{/link}} {{/items}} {{#empty}} <p>The list is empty.

JavaScript Implementation of SHA-256 Cryptographic Hash Algorithm | Movable Type Scripts A cryptographic hash (sometimes called ‘digest’) is a kind of ‘signature’ for a text or a data file. SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text. See below for the source code. A hash is not ‘encryption’ – it cannot be decrypted back to the original text (it is a ‘one-way’ cryptographic function, and is a fixed size for any size of source text). SHA-256 is one of the successor hash functions to SHA-1 (collectively referred to as SHA-2), and is one of the strongest hash functions available. In this JavaScript implementation, I have tried to make the script as clear and concise as possible, and equally as close as possible to the NIST specification, to make the operation of the script readily understandable. This script is oriented toward hashing text messages rather than binary data. Notes on the implementation of the preprocessing stage: Note that what is returned is the textual hexadecimal representation of the binary hash.

Impress: многоцелевой сервер приложений для Node.js Несмотря на заметные успехи, Node.js все еще остается специализированной технологией, которой преимущественно закрывают узкие места в системах, написанных в другом стеке технологий. Причина такого положения кроется в том, что сама по себе нода не имеет многих библиотек, к которым мы привыкли на других языках и которые обеспечивают быструю разработку именно прикладного ПО. Например, для того, чтобы разделить в коде обработчики разных URL, отдавать статические файлы, организовывать сессии, запускать нескольких потоков, иметь доступа к БД, кешировать данные в памяти, разграничивать права пользователей, иметь логи и ротировать их, создавать сетевое API, рендерить шаблоны, настраивать URL-реврайтинг, обеспечивать быструю доставку событий с сервера на клиенты, для всего этого, и многих других задач, используются отдельные библиотеки (модули). Разные модули написаны разными разработчиками, сложно стыкуются, конфликтуют. Немного метрик кода Возможности и сферы применения Примеры 3.

Dos días de diseño y hacking en la web El viernes 24 y sábado 25 se llevó a cabo el evento Mejorando.la/Conferencia enfocado al diseño y desarrollo web con sede en México. Vivimos horas intensas de aprendizaje y nuevos conocimientos en las 10 conferencias y dos panel realizados en el transcurso del evento, lo genial fue que para quienes no pudimos estar en las sedes era posible ver el evento y participar por medio de redes sociales gracias al streaming. Las conferencias y cursos realizados por el equipo de Mejorando.la se realizan por el interés en la educación y de satisfacer necesidades en hispanoamerica porque en ocasiones las universidades no estan al tanto de las innovaciones continuas. Viernes 24 Con la bienvenida de @stephaniefalla en las instalaciones de Microsoft se dió inicio el primer día de la conferencia, presentando el diseño del evento realizado por Rubén Gómez y el uso de colores dedicados a México. México es estimulante y tiene mucho talento humano. ¿Qué aprendimos? Diseñando experiencias de consumo

Related:  front endhackgnicolaschenet