Skip to content

Instantly share code, notes, and snippets.

@otarza
otarza / vaxo
Created November 7, 2013 08:07
<?php
require_once __DIR__ . '/config.php';
function db_connect() {
static $conn;
if (empty($conn)) {
$conn = mysqli_connect(
123
<form action="https://secure.pay1.de/client-api/" method="POST">
<input type="hidden" name="portalid" value="2000000">
<input type="hidden" name="aid" value="10000">
<input type="hidden" name="mode" value="test">
<input type="hidden" name="request" value="bankaccountcheck">
<input type="hidden" name="successurl" value="http://www.yoursite.com/success.php">
<input type="hidden" name="errorurl" value="http://www.yoursite.com/error.php">
<input type="hidden" name="hash" value="70eaec2a33fa1b4674c0b1ge5e982966">
<input type="hidden" name="responsetype" value="REDIRECT">
<input type="hidden" name="language" value="en">
exports.search = function (req, response) {
var term = req.params.term;
response.send("hello search: " + term);
if (req.session.oauth && req.session.oauth.access_token) {
var text = req.body.text;
var result = "fail";
oa.get(
ListView hedgeList = chveulebrivi listview;
//R.layout.row_hedge - sheni sheqmnili custom row.
//HedgeHelper cards - romelic inaxavs obieqtebs.
HedgeListAdapter adapter = new HedgeListAdapter(HedgehogActivity.this, R.layout.row_hedge, cards);
hedgeList.setAdapter(adapter);
///HedgeListAdapter
@otarza
otarza / DB
Created June 27, 2013 20:36
Database interaction layer for PHP and MySql
<?php
/**
* Created by JetBrains PhpStorm.
* User: Otar
* Date: 2/22/13
* Time: 8:02 AM
* To change this template use File | Settings | File Templates.
*/
class DB {
private $pdo_connection;
@otarza
otarza / gist:4037475
Created November 8, 2012 08:02
homework1
USE [homework1]
GO
/****** Object: Table [dbo].[birds] Script Date: 11/08/2012 12:02:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[birds](
@otarza
otarza / isPrime
Created November 4, 2012 07:01
isPrime
private boolean IsPrime(int n) {
int f = n-1;
while(f!=1) {
int k=n%f;
f=f-1;
if(k==0) {
return false;
}
}
return true;
a:focus {
outline: none;
}
body > header {
margin-left: 0px;
background: url("../img/bg_header.png");
border-bottom-style: solid;
border-bottom-width: 4px;
border-bottom-color: #769af2;
<!DOCTYPE HTML>
<html>
<head>
<title>Studio - Web, Mobile & FB Apps</title>
<link rel="stylesheet" href="less/reset.less" type="text/css" media="all">
<link rel="stylesheet" href="docs/assets/css/bootstrap.css" type="text/css" media="all">
<link rel="stylesheet" href="css/studio.css" type="text/css" media="all">
</head>
<body>