This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @id INT | |
SET @id = 7 | |
DECLARE @tmp TABLE (id INT , ParentId INT) | |
INSERT INTO @tmp VALUES(1,0) | |
INSERT INTO @tmp VALUES(2,0) | |
INSERT INTO @tmp VALUES(3,2); | |
INSERT INTO @tmp VALUES(4,3); | |
INSERT INTO @tmp VALUES(5,0); | |
INSERT INTO @tmp VALUES(6,0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
Dictionary<int, string> mere = new Dictionary<int, string>(); | |
mere.Add(1, "rosii"); | |
mere.Add(2, "verzi"); | |
mere.Add(3, "albastre"); | |
mere.Add(4, "galbene"); | |
Dictionary<int, string> pere = new Dictionary<int, string>(); | |
pere.Add(3, "albastre"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../../_references.js" /> | |
//super adaptare de jquery plugin | |
mainModule.directive('datePicker', function () { | |
return { | |
restrict: 'A', | |
scope:{ | |
bindModel: '=ngModel' | |
}, | |
link: function ($scope, $elem, $attrs) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="{{id}}" type="text" name="" ng-model="value" /> | |
<span class="add" ng-click="add()">+</span> | |
<span class="remove" ng-click="subtract()">-</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using OrangeMSE.Data; | |
using OrangeMSE.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Security; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using OrangeMSE.Data; | |
using OrangeMSE.Connector; | |
using System.Threading; | |
using log4net; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using OrangeMSE.Business; | |
using OrangeMSE.Business.Data; | |
using OrangeMSE.Business.Helpers; | |
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using Newtonsoft.Json; | |
using System.Web.Routing; | |
using System.Net.Http; | |
namespace WebRoleV2 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
<script src="jquery-2.0.3.min.js"></script> | |
<script src="underscore.js"></script> | |
<script src="backbone.js"></script> | |
<script> | |
//#region eventHandler | |
var eventHandler = function (sender) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scan(obj, search, from) | |
{ | |
var k; | |
if (obj instanceof Object) { | |
for (k in obj){ | |
//console.log('object ', obj, k); | |
if (obj.hasOwnProperty(k)){ | |
if(k.toString().indexOf(search)!=-1){ | |
console.log('found string as prop ', k, obj); | |
}else{ |