sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
// Be careful, use this only for debugging. | |
// The function is inline and contains a lot of strings so might increase drastically the weight of your binary. | |
/* | |
// Usage exemple: | |
string desc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> | |
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html"> | |
<link rel="import" href="../../bower_components/iron-collapse/iron-collapse.html"> | |
<dom-module id="your-element"> | |
<template> | |
<style> | |
.heading { | |
padding: 10px 15px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <exception> | |
#include <system_error> | |
#include <thread> | |
#include <condition_variable> | |
#include <mutex> | |
#include <functional> | |
#include <chrono> | |
#include <memory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OhUtils = function(superClass) { | |
return class extends superClass { | |
constructor() { | |
super(); | |
} | |
static get properties() { | |
return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = (event, context, callback) => { | |
// Checking properties case insensitively, might be a better solution but this one works | |
// => https://stackoverflow.com/a/5833423/519376 | |
Object.prototype.hasOwnPropertyCI = function(prop) { | |
return Object.keys(this) | |
.filter(function (v) { | |
return v.toLowerCase() === prop.toLowerCase(); | |
}).length > 0; | |
}; | |
Object.prototype.getPropertyCI = function(prop) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on | |
set number " Show line numbers | |
set tabstop=4 " show existing tab with 4 spaces width | |
set expandtab " On pressing tab, insert 4 spaces | |
set ignorecase " Case insentivie searches | |
set autoindent " Always set autoindentation | |
set copyindent " Use the previous indentation when autoindenting | |
set shiftwidth=4 " when indenting with '>', use 4 spaces width | |
set shiftround " Use multiple shift width when using '>' |