Skip to content

Instantly share code, notes, and snippets.

@pariv
pariv / Example - GET response.json
Last active May 9, 2022 10:59 — forked from Zooip/Example - GET response.json
Graphiti ActiveStorage attachment
{
"data": {
"id": "2235",
"type": "places",
"attributes": {
"name": "Test name",
"coordinates": {
"lon": 5.11135,
"lat": 45.41
},
@pariv
pariv / README.md
Created October 29, 2020 07:33 — forked from matusnovak/README.md
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
@pariv
pariv / sassc-ruby windows installation.md
Created September 26, 2018 12:58 — forked from Coridyn/sassc-ruby windows installation.md
How to compile and install the sassc-ruby gem on Windows

Windows installation

This will install SassC Ruby gem on Windows.

  1. Download and install Ruby 2 (http://rubyinstaller.org/downloads/)
  2. Download and install the ruby development kit (http://rubyinstaller.org/downloads/) (for the rest of the document, assuming it's installed into c:\devkit\)
  3. Download the libdl library for Windows (https://github.com/dlfcn-win32/dlfcn-win32) Go to releases and download the most recent precompiled version.
  4. Extract the libdl package into your development kit mingw directory:
@pariv
pariv / Example1.cs
Created September 19, 2016 12:24 — forked from davidfowl/Example1.cs
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)