
javascript
Get flash to fully experience Pearltrees
This module implements version 1 and 2c of the Simple Network Management Protocol (SNMP) . This module is installed using node package manager (npm) : It is loaded using the require() function: var snmp = require ( "net-snmp" ); Sessions to remote hosts can then be created and used to perform SNMP requests and send SNMP traps or informs: var session = snmp . createSession ( "127.0.0.1" , "public" ); var oids = [ "1.3.6.1.2.1.1.5.0" , "1.3.6.1.2.1.1.6.0" ] ; session . get ( oids , function ( error , varbinds ) { if ( error ) { console . error ( error ); } else { for ( var i = 0 ; i < varbinds . length ; i ++ ) if ( snmp . isVarbindError ( varbinds [ i ] ) console . error ( snmp . varbindError ( varbinds [ i ] ) else console . log ( varbinds [ i ] . oid + " = " + varbinds [ i ] . value ); } }); session . trap ( snmp .
stephenwvickers / node-net-snmp
Public constructors are problematic for a number of reasons, but chief among them for me is that they couple the calling code to the constructor implementation. In other words, it forces you to break the open/closed principle . Later on, if you need to make your object instantiation polymorphic, you’ll end up invalidating all of the code that used new directly. You might want to create a function that acts a bit like a constructor function, only it’s capable of returning multiple types of objects which will satisfy the contract of the interface (this is a lot like the purpose of an abstract class in other OO languages). This design sensibility is true in all OO languages (several of the GoF design patterns address this very issue), but in JavaScript, it gets even worse.
Stop Using Constructor Functions in JavaScript | Eric Elliott - JavaScript Architect (A JavaScript Blog)
Harmony of Dreams Come True | Brendan Eich
lambda-state-4
Mousetrap. bind ( '4' , function () { highlight ( 2 ); }); Mousetrap. bind ( 'x' , function () { highlight ( 3 ); }, 'keyup' ); Mousetrap. bind ( 'command+shift+k' , function (e) { highlight ([ 6 , 7 , 8 , 9 ]); return false ; }); Mousetrap. bind ([ 'command+k' , 'ctrl+k' ], function (e) { highlight ([ 11 , 12 , 13 , 14 ]); return false ; }); Mousetrap. bind ( 'g i' , function () { highlight ( 17 ); }); Mousetrap. bind ( '* a' , function () { highlight ( 18 ); }); Mousetrap. bind ( 'up up down down left right left right b a enter' , function () { highlight ([ 21 , 22 , 23 ]); }); Introduction Mousetrap is a standalone library with no external dependencies. It weighs in at around 1.7kb minified and gzipped and 3kb minified. What are you waiting for? Throw away your mouse and download it now .
Mousetrap - Keyboard shortcuts in Javascript
Walrus
A bolder kind of mustache. View this readme on documentup . About Walrus is a templating library inspired by mustache , handlebars , ejs and friends, but with a couple of important differences in philosophy and style: View logic is different than business logic (and that's okay!).Generalized input on the cross-device web | Boris Smus
It’s official! We’re getting a new function syntax! The TC39 group (the panel charged with delivering ES 6) has reached consensus on an abbreviated syntax for JavaScript function expressions. Its popularly known as the fat arrow syntax, and is based on a similar construct found in CoffeeScript. Make no mistake, I’m delighted that we will finally have an alternative to the unnecessary clunkiness and verbosity of the present grammar, but I can’t shake a nagging feeling that this proposal (in its current form) is flawed to the extent that it might actually make new developers more confused than they already were.
JavaScript Fat City « JavaScript, JavaScript…
TIOBE Software: The Coding Standards Company
There are a few threads available on the web with regard to how to test if a font is installed on a client machine, but I'm not satisfied with any of those that I found. The reason being that they each seem to use a single common font as a baseline measurement and compare the dimensions of some reasonably complex string rendered in the common font against the same string rendered in the test font. This irks me for a number of reasons:
Test if a font is installed via JavaScript : ls.n
guybrush's gist: 1749439
var assert = require ( 'assert' ) var op = require ( './' ) var result = op ( this , 'foo.bar' , 'blub' ) assert . equal ( this . foo . bar , 'blub' )zui53 @ GitHub
ZUI53 is a JavaScript Library to create powerfull webbased Zoomable User Interfaces (ZUIs) with new technologies like HTML5 and CSS3. Demos Scroll Mousewheel to zoom.URI.js
URI.js is a javascript library for working with URLs. It offers a "jQuery-style" API ( Fluent Interface , Method Chaining) to read and write all regular components and a number of convenience methods like . directory () and . authority (). URI.js offers simple, yet powerful ways of working with query string, has a number of URI-normalization functions and converts relative/absolute paths. While URI.js provides a jQuery plugin . URI.js itself does not rely on jQuery.JigLibJS2 Javascript 3D Physics Engine
JigLibJS2 Javascript 3D Physics Engine Javascript port of JiglibFlash (which is a port of c++ JigLib). The code is generated automatically from the AS3 code so all functionality should work exactly like the AS3 version.language-detection - Language Detection Library for Java
This is a language detection library implemented in plain Java. (aliases: language identification, language guessing) Generate language profiles from Wikipedia abstract xml Detect language of a text using naive Bayesian filter 99% over precision for 53 languages 01/12/2012 Migrate the repository of language-detection from subversion into git for Maven support 09/13/2011 Add language profile of Estonian, Lithuanian, Latvian and Slovene. Support retrieving a list of loaded language profiles as getLangList() ( issue 20 ) support generating a language profile from plain text ( issue 23 ) Fixed a bug of issue 21 . 02/02/2011 fixed bugs (no profile directory / long text detectation) 01/24/2011 4x faster detection (thanks to elmer.garduno ) 12/22/2010 Support Apache Nutch's plugin 11/18/2010 Provide a package file. import java . util . ArrayList ; import com . cybozu . labs . langdetect .mootools

