Obscure JavaScript: Imitating Perl in JavaScript

obscurejavascript:

This time I wanted to see how close I could get to Perl syntax. You may have heard about JavaScript Perl imitation, but I wanted to give my own perspective. Here is a fibonacci function in Perl:

sub fib{ # My is used for variables available only in the declared block. One way to get passed #...

3 notes

Obscure JavaScript: Extremely Obscure JavaScript Strings

obscurejavascript:

This is by far the most obfuscated style of JavaScript I have ever seen. It produces a string through a series of expression. And Yes, it’s valid, run it in your browser’s console or Node.js:

...

2 notes

2500+ Best jQuery Plugins & Tutorials with jQuery Demo examples 2013

(Source: carnotaurus)

7 notes

carnotaurus:

decodering:

Nested

jQuery plugin for a gap free, multi column grid layout experience. It’s available for free at Github


scruffy, pointless, and unusable

https://github.com/suprb/Nested

carnotaurus:

decodering:

Nested

jQuery plugin for a gap free, multi column grid layout experience. It’s available for free at Github

scruffy, pointless, and unusable

https://github.com/suprb/Nested

11 notes

Gridster.js

cherry-pick:

Gridster is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns.

You can even dynamically add and remove elements from the grid. It is on par with sliced bread, or possibly better. 

looks good

2 notes

Nijiko Yonskai: The Rulist, Beautiful Javascript Validation Syntax

nijikokun:

Lately I have been coding on Node.js servers a lot, which utilize pure JavaScript or CoffeeScript, if you so choose. During this time, I’ve had to validate tons of data or just create quick little tests to make…

THX

(Source: )

1 note

Renaissance Nerd: A Thought Experiment: Pixel Art

renaissancenerd:

We know we can draw a 45-pixel × 45-pixel square using an empty div and some CSS.


.square { 
background-color: #fff; border: 1px solid #ccc; 
height: 45px; width: 45px;
}

And we know that we can make the square’s background color red using jQuery.

$('.square').css('background-color', 'red');

(Source: renaissancenerd)

5 notes

in1: jQuery Transparent Background and Google Maps

in1dotcom:

Here is how you can put a transparent Google Map background on a site. This example that uses the GeoPlugin (http://www.geoplugin.net) for geolocation.

A common problem, that this example resolves, is that CSS background transparency affects all layers that site on top of the transparent…

(Source: in1.com)

1 note

markx - Convert Markdown, Jade, and more to static HTML with Node.js

thechangelog:

Markx from Greg Allen is a command line tool for creating static web sites from Markdown and Jade and includes built in live preview and syntax highlighting.

# convert markdown and code blocks to html
$ markx blog.md > blog.html

# convert jade to html
$ markx index.jade > index.html

# convert markdown with jade template to html
$ markx --template template.jade blog.md > blog.html

# live preview of your markdown file
$ markx --preview 8001 blog.md

# live preview of your markdown file with a custom header/footer
$ markx --preview 8001 --head head.html --foot foot.html blog.md

Syntax highlighting is provided by Ivan Sagalaev’s Highlight.js which supports most of the usual suspects.

Check the source on GitHub for installation and usage.

(Source: thechangelog)

9 notes

Learn from Haskell - Functional, Reusable JavaScript

While many functional/haskell paradigms don’t translate, there are a few techniques that JS can benefit from.

2 notes

QUnit – A Powerful JavaScript Unit Testing framework

amtindia:

QUnit is a powerful, easy-to-use, JavaScript test suite. It’s used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code (and even capable of testing JavaScript code on the server-side).

QUnit is especially useful for regression testing:…

1 note

Log4js - The Logging Framework for JavaScript

Log4js is a logging framework for JavaScript. The main goal is to have a robust and solid logging API which is very simmilar to the Java logging framework Log4j. there is a kanso package here

0 notes

jsTree :: javascript treeview component

tsmd:

jsTree is a javascript based, cross browser tree component. It is packaged as a jQuery plugin.

2 notes

JSONSelect
0 notes