Skip to content

Instantly share code, notes, and snippets.

View ioseb's full-sized avatar

Ioseb Dzmanashvili ioseb

View GitHub Profile
function convertToKA(input) {
var chars = {
"a": "ა",
"b": "ბ",
"g": "გ",
"d": "დ",
"e": "ე",
"v": "ვ",
"z": "ზ",
"T": "თ",
package ge.gtug;
import android.content.Context;
import android.content.res.Resources;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
package ge.edu.cst;
import java.util.HashMap;
import java.util.Map;
public class ASCII2UTF8Converter {
// Georgian unicode alphabet starts at 4304
private static final int UTF8_CHAR_CODE_START = 4304;
// Populate array of Georgian ASCII characters
div {
zoom: 1;
}
.clearfix {
overflow: hidden;
height: 100%;
}
.clearfix {
padding: 24px;
background-color: #000;
@ioseb
ioseb / clearfix.css
Created December 29, 2009 14:10
cross browser CSS clearfix
/** Clearfix */
.clearfix:after {
clear: both;
content: ".";
display: block;
height: 0;
line-height: 0;
visibility: hidden;
}
.clearfix {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ka" lang="ka">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test</title>
<style type="text/css">
.float-left {
float: left;
width: 50%;
$(function() {
var curpos = 0,
moving = false;
function empty() { return false; };
$('#scroll').mousedown(function(e) {
curpos = e.pageY
moving = true;
$('table.board').click(function(e) {
var target = e.target;
if (target.nodeName == 'TD') {
var params = {
rowIndex: target.parentNode.sectionRowIndex,
cellIndex: target.cellIndex
};
<?php
class DynamicImage {
/**
* @var HttpRequest
*/
private $req;
/**
* @var File
function getMouseXY(e) {
var x, y, e = window.event || e;
if (e.clientX) {
x = e.clientX + Math.max(
document.documentElement.scrollLeft,
document.body.scrollLeft
);
y = e.clientY + Math.max(