Skip to content

Instantly share code, notes, and snippets.

💭
It's probably about Segment Trees

Juan Lopes juanplopes

💭
It's probably about Segment Trees
Block or report user

Report or block juanplopes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:598415
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using Telerik.Web.Mvc;
namespace Simple.Web.Mvc.Telerik
{
public class GridParser
View gist:605615
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace ConsoleApplication4
{
public static class Program
View gist:606419
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace ConsoleApplication4
{
public static class Program
View gist:721688
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using TVGlobo.SDRH.Config;
using Simple;
using TVGlobo.SDRH.Web.Controllers;
using TVGlobo.SDRH.Web.Helpers;
View conficker_finder.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.Threading;
using System.Net;
namespace ConsoleApplication8
View gist:745903
public static class MontaFiltro<T, P>
where P : DbParameter, new()
{
public static string RetornaWhere(T obj, out List<P> parameters)
{
parameters = new List<P>();
var where = new List<string>();
foreach (var property in obj.GetType().GetProperties())
{
View gist:748812
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
View gist:750161
public void ExcluirPacote(Int32 idPacote)
{
ISession session = SessionManager.GetSession();
session.BeginTransaction();
try
{
TbPacoteDao daoP = new TbPacoteDao(session);
TbItemPacoteDao daoItemP = new TbItemPacoteDao(session);
TbMovimentoDao daoCreditos = new TbMovimentoDao(session);
TbClientePacoteDao daoClientePacote = new TbClientePacoteDao(session);
View gist:750165
[RequiresTransaction]
public void ExcluirPacote(Int32 idPacote)
{
TbClientePacote.Delete(x => x.Pacote.Id == idPacote);
TbItemPacote.Delete(x => x.Pacote.Id == idPacote);
TbMovimento.Delete(x => x.Pacote.Id == idPacote);
TbPacote.Delete(idPacote);
}
View gist:750186
public Configuracao CarregarConfiguracao()
{
Configuracao configuracao = new Configuracao();
IList<TbParametro> parametros = RulesFactory.Create<ITbParametroRules>()
.ListAll(OrderBy.None());
foreach (TbParametro parametro in parametros)
{
if (parametro.Name == Configuracao.BalancaAtivaProperty)
configuracao.BalancaAtiva = bool.Parse(parametro.Value);
You can’t perform that action at this time.