Skip to content

Instantly share code, notes, and snippets.

View JohnnyJosep's full-sized avatar
🏠
Working from home

Joan Josep Escandell Riera JohnnyJosep

🏠
Working from home
View GitHub Profile
@JohnnyJosep
JohnnyJosep / Compiler.cs
Created January 9, 2019 12:42
To create auto-generated code
/*
* Microsoft.CodeAnalysis.CSharp v.:2.10.0
* System.Runtime.Loader v.:4.3.0 />
*/
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Emit;
using System;
using System.Collections.Generic;
@JohnnyJosep
JohnnyJosep / sign-verify.java
Last active October 8, 2022 09:53
Sample usage XAdES4j
package com.zertifika.test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.security.KeyStore;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Windows.Input;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using System;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http.Filters;
using System.Threading;
using System.Web.Http;
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{light-gray}{gray}{0.25}
\lstdefinestyle{java}{
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Net;
using System.Security;
using System.Threading.Tasks;
using UsersLogin.ViewModel;
using Windows.Web.Http;