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 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
<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
/// <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
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
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
/* | |
************ Noul If ************ | |
ofera multiple avantaje vs nativul if. | |
1. EstePascalCase | |
2. Are(callbackuri) la fel ca d3. Genial! | |
3. Accepta multiple Then/Else pentru a se mula pe orice proiect. | |
4. Colegii il vor adopta imediat ! | |
Flexibil! Dinamic! Util! Deloc Ironic! |
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
public class SessionManager | |
{ | |
#region Instance | |
private SessionManager() { } | |
private const string SESSIONKEY = "SessionManager"; | |
public static SessionManager Current | |
{ | |
get | |
{ | |
SessionManager instance = (SessionManager)HttpContext.Current.Session[SESSIONKEY]; |
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
var $d = (function () { | |
function $d() { | |
var self = this; | |
this._success = []; | |
this._fail = []; | |
this.promise = { | |
then: function (callback) { | |
self._success.push(callback); | |
}, |
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
/** | |
* An async module | |
* @module asyncModule | |
*/ | |
var q = require('q'); | |
var debug = require('debug')('asyncModule'); | |
debug.log = console.log.bind(console); | |
var service = (function () { | |
//private |