Skip to content

Instantly share code, notes, and snippets.

var profitCenterNameTbl = new ExecQuery().GetData("Получаем имена всех профит-центров для вывода в название отчета", query, 0, null)
.Rows.Cast<DataRow>()
.Select(r => r.Field<String>("profit_center_name"))
.ToList()
.Distinct();
String profitCenterNameString = "";
foreach (var i in profitCenterNameTbl)
profitCenterNameString += i + ",";
@dimker4
dimker4 / gist:f442b4d3618b98bde6180aea563b3be8
Last active May 4, 2017 02:59
wordpress вывод поста
<?php
if (have_posts()) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<?endwhile; endif; wp_reset_query(); ?>
@dimker4
dimker4 / gist:0509f870ae91627592a32560e950d7fb
Last active July 24, 2021 16:06
Плавный переход на якорь js
<nav id="menu">
<ul>
<li><a href="#ex1">Link #1</a></li>
<li><a href="#ex2">Link #2</a></li>
<li><a href="#ex3">Link #3</a></li>
<li><a href="#ex4">Link #4</a></li>
</ul>
</nav>
<div id="content">