Skip to content

Instantly share code, notes, and snippets.

View MattSturgeon's full-sized avatar

Matt Sturgeon MattSturgeon

  • United Kingdom
  • 23:21 (UTC +01:00)
View GitHub Profile
@MattSturgeon
MattSturgeon / .gitignore
Created April 20, 2017 23:14 — forked from andykais/.gitignore
.gitignore file for my home directory
#blacklist top level folder
/*
#whitelist files & folders
!.gitignore
!README.md
!.i3/
!.i3status.conf
#include "utf.hpp"
#include <iostream>
#include <string>
int main()
{
// A UTF-8 literal
std::string utf8 = u8"z\u00df\u6c34\U0001d10b"; // or u8"zß水𝄋"
// or "\x7a\xc3\x9f\xe6\xb0\xb4\xf0\x9d\x84\x8b";
@MattSturgeon
MattSturgeon / platform_dirs.cpp
Last active September 30, 2016 23:31
A function to get the correct user config directory.
#include <cstdlib>
#include <string>
#include <iostream>
#define PROJECT_NAME "OpenBoardView"
//using namespace std;;
// on linux use $XDG_CONFIG_HOME || $HOME/.config
// on windows use %APPDATA%
$exePath = "$env:USERPROFILE\wix310.exe"
(New-Object Net.WebClient).DownloadFile('http://wixtoolset.org/downloads/v3.10.0.1823/wix310.exe', $exePath)
cmd /c start "$exePath" /q
@MattSturgeon
MattSturgeon / .gitignore
Last active July 8, 2016 19:55
Extract filetype filters
demo
*.o
@MattSturgeon
MattSturgeon / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {