Skip to content

Instantly share code, notes, and snippets.

Avatar

Milos Zivadinovic mzdv

View GitHub Profile
View Merging algorithm.js
var x = [{
id: 1,
data: 'ab',
ordering: 1
}, {
id: 2,
data: 'cd',
ordering: 1
}];
View Pice i skitanje
public Form1()
{
InitializeComponent();
dataGridView1.MultiSelect = false;
}
private void button1_Click(object sender, EventArgs e)
{
Elementi e1 = new Elementi()
{
View Magija
ThreadStart ts = metoda;
Thread nit = new Thread(ts);
nit.Start();
========> Thread.Sleep(10000);
using (TransactionScope ts = new TransactionScope())
....
ts.Complete();
Pete, pripreme za oba
View ps.class
//Broker
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Data;
namespace Sesija
View gist:962c656cc0dab2db850d
package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
View gist:8050d643f38a02bbd150
package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
View gist:bd48bf3624a06171185e
package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
View EventEmitter and functional programming
var events = require("events");
var util = require("util");
var _ = require("lodash");
var Greeter = function() {
events.EventEmitter.call(this);
console.log("I greet you");
};
util.inherits(Greeter, events.EventEmitter);
You can’t perform that action at this time.