Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
void main() {
int a;
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
void izpisPolja(int polje[][10], int N) {
for (int a = 0; a < N; a++) {
akfjakfj
lasfka
alčfkaf
koda pač
// Flipbox
$(".flipbox-container").mouseover(function(){
$(this).flippy({
verso:"<div id='Flipbox'>Test</div>",
direction:"LEFT",
duration:"750",
onFinish: function() {
console.log("test");
$("#Flipbox").html("");
var paper_width = 1110,
paper_height = 600;
paper = Raphael("game", paper_width, paper_height),
socket = io.connect();
paper.rect(0, 0, 900, 600, 10).attr({
"stroke-width": 0,
"fill": "#52922c"
});
var pc = [
{ card: "a1", x: 10, y: 10, width: 146, height: 220, round: 10 },
{ card: "a2", x: 161, y: 10, width: 146, height: 220, round: 10 },
{ card: "a3", x: 312, y: 10, width: 146, height: 220, round: 10 },
];
for (a = 0; a < 2; a++) {
paper.image("images/schnapsen/" + pc[a].card + ".png", pc[a].x, pc[a].y, pc[a].width, pc[a].height).paper.rect(pc[a].x, pc[a].y, pc[a].width, pc[a].height, pc[a].round).attr({
'stroke-width': 0
/* SCORE */
#score-box {
position: absolute;
right: 0px;
top: 0px;
height: 100%;
background: #dde4eb;
color: #35383f;
border-left: 1px solid #b2b9c2;
width: 300px;
extends layout
block content
title= title
h1 Let the game begin
p Hops, lets play
#platform.snops
#chat
ul#messages
input(type='text', name='input_message', value='Message', id='input')
var express = require('express'),
url = "mongodb://nodejitsu_zoranf:s622he159nr7g8isgjke2i1ght@ds051947.mongolab.com:51947/nodejitsu_zoranf_nodejitsudb8036041315",
coll = ['users', 'games'],
db = require('mongojs').connect(url, coll)
http = require('http'),
path = require('path');
app = express(),
server = http.createServer(app),
io = require('socket.io').listen(server);
db.users.findOne({username:"someuser_not_found"}, function(err, doc) {
if (err) {
console.log(err);
}
if (doc) {
console.log("Success" + doc.username);
} else {