Skip to content

Instantly share code, notes, and snippets.

@alexey-bass
alexey-bass / show-password-jquery.html
Created May 17, 2010 16:04
Show typing password in browser with Prototype and jQuery
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Show password with jQuery</title>
</head>
<body>
<p>jQuery 1.4.2</p>
<p>Tested in Windows 7 with Google Chrome 4.1.249.1064, Mozilla Firefox 3.6.3, Opera 10.53</p>
@alexey-bass
alexey-bass / show-password-jquery.html
Created May 17, 2010 16:59
Show typing password in browser with Prototype and jQuery (the ugly way)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Show password with jQuery</title>
</head>
<body>
<p>jQuery 1.4.2</p>
<p>Tested in Windows 7 with Google Chrome 4.1.249.1064, Mozilla Firefox 3.6.3, Opera 10.53 and Internet Explorer 8.0.7600.16385</p>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GoogleD3vF3st</title>
<style type="text/css">
textarea {width: 100%;}
</style>
</head>
<body>
X,Y,TYPE,SPEED,DIRTYPE,DIRECTION
34.760417,31.581683,1,90,1,180
34.7676,31.643283,1,90,1,180
34.772267,31.530583,1,90,1,180
34.783083,31.4988,1,90,1,0
34.7852,32.0356,1,90,1,270
34.786367,32.046667,1,90,1,90
34.810217,32.111433,1,90,1,0
34.818367,32.005,1,90,1,270
34.82015,32.16855,1,90,1,0
@alexey-bass
alexey-bass / 8.3.4.117940 480x272 sku.23569 sys.txt
Created August 21, 2010 11:44
iGO sys.txt for YFPND82C (DealExtreme sku.23569)
[debug]
disable_outlookpoi=1
skip_eula=1
[sound]
ding=0
[interface]
maxzoom2d=6000000
show_exit=1
@alexey-bass
alexey-bass / 8.3.4.117940 800x480 sku.37914 sys.txt
Created August 21, 2010 11:50
iGO sys.txt for AT8X0 (DealExtreme sku.37914)
[project]
name = "ui_igo8_da"
[debug]
disable_outlookpoi = 1
skip_eula = 1
;show_device_type = 1; display the device type boot
;show_rawdisplay_info = 1; display the graphics system at boot
[sound]
@alexey-bass
alexey-bass / compare.js
Created July 30, 2011 14:03
JavaScript version compare
/**
* Simply compares two string version values.
*
* Example:
* versionCompare('1.1', '1.2') => -1
* versionCompare('1.1', '1.1') => 0
* versionCompare('1.2', '1.1') => 1
* versionCompare('2.23.3', '2.22.3') => 1
*
* Returns:
@alexey-bass
alexey-bass / array shuffle.js
Created July 30, 2011 14:12
JavaScript array shuffle
/**
* @function
* @param {Boolean} $new Need a new array or shuffle this.
* @return {Array}
* @see http://www.hardcode.nl/subcategory_1/article_317-array-shuffle-function.htm
* @see http://yelotofu.com/2008/08/jquery-shuffle-plugin/
* @author Alexey Bass (albass)
*/
Array.prototype.shuffle = function($new) {
$new = $new || false;
@alexey-bass
alexey-bass / index.php
Created October 5, 2011 17:06
Zend Transaction proposal draft
<?php
/**
* Zend Transaction proposal draft.
*
* @author Alexey Bass
* @copyright Alexey Bass, 2011
* @version 2011-10-06
*/
require_once 'Zend/Loader/Autoloader.php';
@alexey-bass
alexey-bass / .bash_prompt.sh
Created October 14, 2012 08:13 — forked from melo/.bash_prompt
My PS1 bash setup
#!/bin/bash
#
# PS1 Git magic
#
# Original: https://gist.github.com/623142
#
# To enable save as .bash_prompt in $HOME and add to .bashrc:
# . ~/.bash_prompt
#
# Pedro Melo, <melo@simplicidade.org>