JSFiddle

Mirza's public fiddles

  • Squarest

    Given input number, return two largest multiplying (int) factors that produce it.

  • Shortest path

    You are given two integers L and R. Their values are initially set to L = 0 and R = 1. You can change thir values by performing the following commands: * the command 'L' changes the value of L to 2*L - R; * the commanrd 'R' changes the value of R to 2*R - L. You are given an integer N. The goal is to find the shortest sequence of commands after which L = N or R = N. For example, consider N = -11; the shortest sequence of commands required to set either L or R to - 11 is ['L', 'L', 'R', 'L']. After each command, the values of L and R are as follows: * initial values: L = 0, R = 1; * command 'L': L = -1, R = 1; * command 'L': L = -3, R = 1; * command 'R': L = -3, R = 5; * command 'L': L = -11, R = 5. After the fourth command we get L = N.

  • CZ-ROT jQuery plugin

    ROT13 plugin for jQuery. It takes value from and element (string) and does ROT13 encryption to it. By default it rotates the input string by 13 spaces, forward. Options include changing number of spaces for rotation, as well as direction of rotation.

  • CZ-Ratio jQuery Plugin

    Set (user defined) ratio for an element, based on its width, height, shorter or longer side.

  • CZ-Parallax jQuery Plugin

    Simple and tiny jQuery plugin for Parallax effect.