This file contains hidden or 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
| // Node | |
| import path from 'path'; | |
| import fs from 'fs'; | |
| // React | |
| import React from 'react'; | |
| import { renderToString } from 'react-dom/server'; | |
| // Express | |
| import express from 'express'; |
This file contains hidden or 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
| angular.module('fab.components.fabAmountEdit', []).directive('fabAmountEdit', function (hotkeys,$timeout) { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| ngModel: '=?', | |
| enabled: "@", | |
| error: "@", | |
| help: "@", | |
| unit: "@", | |
| kind: "@", |
This file contains hidden or 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
| <div click-out="closePopover()" class="form-group label-inside-new" | |
| ng-class="{'has-error': isShowError}" | |
| ng-show="visible=='true'"> | |
| <div class="popover-place" popover-trigger="triggerPopover" | |
| popover-placement="top" | |
| popover-template="'components/fabPopover/fabSwitchPopover.tpl.html'"> | |
| <input class="form-control" | |
| required='{{required}}' | |
| type="{{inputKindField}}" | |
| name="{{id}}" |
This file contains hidden or 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.Collections.Generic; | |
| using Castle.Core.Internal; | |
| using EEC.Portal.OP22.DomainModel.Definitions; | |
| using EEC.Portal.OP22.Web.Boilerplate.Forms; | |
| namespace EEC.Portal.OP22.Web.ApplicantOffice.Application.Requests.Validation | |
| { | |
| public class ValidateRightHolder | |
| { | |
| public List<string> ValidateFormData(RightHolderForm form) |
This file contains hidden or 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
| #!bash | |
| red='\033[0;32m' | |
| nocolor='\033[0m' | |
| committers=( eskat0n nad alex dieselT vpestov Imater ) | |
| for username in "${committers[@]}" | |
| do | |
| commits=$(git shortlog -s --author="${username}" --no-merges | awk '/([0-9]+)/ { print $1 }') |
This file contains hidden or 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
| //Install-Package Newtonsoft.Json -ProjectName Ksnsi.Queries | |
| //Install-Package MemoryCache -ProjectName Ksnsi.Queries | |
| using System; | |
| using MemoryCache; | |
| using Newtonsoft.Json; | |
| namespace Ksnsi.Queries | |
| { | |
| public interface IQueryProcessor |
This file contains hidden or 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
| db.MaterialPropertyValue.find().forEach( | |
| function(e) { | |
| db.MaterialPropertyValue.update({_id: e._id}, {$set: {Value: e.Value.toLowerCase() } }); | |
| } | |
| ); |
This file contains hidden or 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
| //Install-Package Newtonsoft.Json -ProjectName Ksnsi.Queries | |
| //Install-Package MemoryCache -ProjectName Ksnsi.Queries | |
| using System; | |
| using MemoryCache; | |
| using Newtonsoft.Json; | |
| namespace Ksnsi.Queries | |
| { | |
| public interface IQueryProcessor |
This file contains hidden or 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 tmp = DataDocumentStore.Initialize(); | |
| var session = tmp.OpenSession(); | |
| for (var i = 0; i <= 10; i++) | |
| { | |
| session.Store(new Note | |
| { | |
| Title = "Save document1 №"+i | |
| }); | |
| session.SaveChanges(); | |
| } |
This file contains hidden or 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 List<TModel> Post<TModel>(string url, object bodyObject) where TModel : new() | |
| { | |
| var request = new RestRequest(url, Method.POST) | |
| { | |
| RequestFormat = DataFormat.Json | |
| }; | |
| request.AddBody(bodyObject); | |
| IRestResponse<List<TModel>> response = _client.Execute<List<TModel>>(request); | |
| CheckResponseFailed(response); | |
| return response.Data; |