Skip to content

Instantly share code, notes, and snippets.

using System;
using Newtonsoft.Json;
public class Program
{
public static void Main()
{
var info = new Info { Some = "a", Field = 1 };
info.GetCommandJson<AddOrUpdateChat>();
}
@reslea
reslea / input.txt
Last active November 23, 2021 22:03
input.txt
This file has been truncated, but you can view the full file.
p,w,hwj,jt,l,ikk,m,t,bwei,qkj,q,pxz,ukqn,s,tmxm,cmsm,i,rweu,wu,ht,r,p,r,ikfo,xad,lnd,un,kpq,ol,lxlf,nb,qndl,m,zy,py,s,jc,i,std,d,l,glu,hq,rg,bdkj,lcp,iof,lisz,cyif,xj,qg,yamk,z,gw,lmm,vp,zido,z,yv,ut,c,zp,g,i,dnn,tbu,bznu,cas,gmv,l,i,idv,li,a,k,jdd,t,ci,acj,bat,mmz,fm,zgac,k,shs,q,wnu,t,zu,lab,ab,ybj,fui,zk,zbv,ffle,t,eno,npgi,ht,vqz,yow,h,hyz,skn,wmt,qj,vqn,eai,zghx,hwx,n,mw,n,oc,ne,qk,gzh,g,s,il,jeys,ecew,w,gv,yrvr,tgxg,mw,ekcm,r,j,esas,ggp,dtm,sehb,xt,f,gse,yhjm,fj,xti,pkb,y,f,ptah,e,czhk,zbo,l,rnrq,mye,af,cz,u,fvvf,lz,xot,th,ocf,skzq,ax,gcg,tuis,q,x,tyr,inbm,l,wr,dkix,lh,s,q,s,dmu,dp,qj,h,ma,xva,s,ofg,cnf,x,zu,owup,cv,ej,vow,km,vldr,yyuf,vhmk,kdjf,mb,vd,ot,z,svd,u,whca,eed,g,j,rh,ln,xzb,ndx,ifv,wcr,rbu,qsra,wpx,ls,ikg,yr,u,wm,k,p,smji,jr,i,ast,cb,qsz,hlfr,kq,qpbu,q,p,zfj,ejmq,a,k,t,vcm,snn,v,qolc,ax,cp,u,z,va,yhj,eaf,pxsz,kr,bqea,t,eoe,ju,tg,jju,s,onep,irn,rqzx,m,pqc,az,ly,v,z,xyi,vv,zd,byp,ehal,dcd,r,quye,b,hgl,dtqh,uujd,rt,zu,opw,w,t,ov,hrsr,uw,o,aou,xvy,l,qs,unsf,ghb,p,d,rh,i,zifu,j,pr,wa,t,e,dap,nofd,
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "AndorrA", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},
@reslea
reslea / gist:59fd39485ebeac764d1faf7341b0a8fa
Created April 15, 2016 09:22
XPath select element if other not exist
//element[@class="some" and not //element2[@class="some other"]])
@reslea
reslea / systemFieldsTitles.cs
Created March 1, 2016 20:31
Collection of internal names of system fields in sharepoint, except ID and Title
List<string> systemFieldsTitles = new List<string>()
{
"ContentTypeId",
"_ModerationComments",
"File_x0020_Type",
"ContentType",
"Modified",
"Created",
"Author",
"Editor",
@reslea
reslea / MethodBuilder.cs
Created October 7, 2015 12:37
MethodBuilder
using System;
public class Program
{
public static void Main()
{
Method<int>().To<string>();
}
public static MethodBuilder<TFirst> Method<TFirst>()