Skip to content

Instantly share code, notes, and snippets.

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

Otávio Larrosa otaviolarrosa

🏠
Working from home
View GitHub Profile
@brainded
brainded / JsonExtensions.cs
Last active September 16, 2018 17:18
Code snippet to make a ToJson extension method for objects in C#. Relies on NewtonSoft.Json Nuget.
public static class ObjectExtensions
{
/// <summary>
/// The string representation of null.
/// </summary>
private static readonly string Null = "null";
/// <summary>
/// The string representation of exception.
/// </summary>
@manasthakur
manasthakur / plugins.md
Last active June 2, 2024 07:29
Managing plugins in Vim

Managing plugins in Vim: The basics

Let's say the plugin is at a GitHub URL https://github.com/manasthakur/foo. First get the plugin by either cloning it (git clone https://github.com/manasthakur.foo.git) or simply downloading it as a zip (from its GitHub page).

Adding a plugin in Vim is equivalent to adding the plugin's code properly into its runtimepath (includes the $HOME/.vim directory by default). For example, if the layout of a plugin foo is as follows:

foo/autoload/foo.vim
foo/plugin/foo.vim