Skip to content

Instantly share code, notes, and snippets.

View JavierJF's full-sized avatar

Javier Jaramago Fernández JavierJF

  • ProxySQL
  • Sevilla, España
View GitHub Profile
$setwallpapersrc = @"
using System.Runtime.InteropServices;
public class wallpaper
{
public const int SetDesktopWallpaper = 20;
public const int UpdateIniFile = 0x01;
public const int SendWinIniChange = 0x02;
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
private static extern int SystemParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni);
public static void SetWallpaper ( string path )
@JavierJF
JavierJF / constexpr_string.cpp
Last active December 12, 2016 11:41 — forked from ericniebler/constexpr_string.cpp
An almost perfect design for a hybrid constexpr/runtime string
// Copyright Eric Niebler 2016
#include <cstddef>
#include <cstdio>
#include <cstdint>
#include <cstring>
#include <utility>
#include <type_traits>
#define REQUIRES(X) \