Skip to content

Instantly share code, notes, and snippets.

@elmot
elmot / CMakeLists.txt
Last active April 26, 2024 08:59
CMakeLists.txt template for ARM GCC projects
cmake_minimum_required(VERSION 3.17)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_VERSION 1)
# specify cross compilers and tools
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(CMAKE_ASM_COMPILER arm-none-eabi-gcc)
set(CMAKE_AR arm-none-eabi-ar)
set(CMAKE_OBJCOPY arm-none-eabi-objcopy)
set(CMAKE_OBJDUMP arm-none-eabi-objdump)
@genomewalker
genomewalker / get-constituent-genomes.jpg
Last active April 26, 2024 08:59
Get constituent genomes from metagenomes
get-constituent-genomes.jpg
@eylenburg
eylenburg / msoffice_in_linux.md
Last active April 26, 2024 08:58
Installing Microsoft Office 2016 (Excel, Powerpoint, Word) in Linux

Step by step guide: How to install Microsoft Office 2016 in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows VM as native-looking in Linux

  1. Winapps, based on KVM, QEMU, Virt-Manager, and FreeRDP. Still actively maintained (getting Github commits).
  2. Cassowary, based on KVM, QEMU, Virt-Manager, and FreeRDP. Has a helpful GUI and apparently can auto-suspend the VM when no Windows app is in use. Last release in Feb 2022 and seems to be abandoned.

The VM-based options means can run Office 2021 or Office 365 including all apps, but for me it was quite buggy and when I encounterd some (FreeRDP-related?) bug in both Winapps and Cassowary that meant I could only start Excel with an external screen plugged in, I gave up. bug

@frodoslaw
frodoslaw / confluence_page_post.py
Created April 25, 2019 19:08 — forked from akiko-pusu/confluence_page_post.py
Confluenceのページをコピーして新しくページを作るサンプル
import requests
import json
import os
import textwrap
from datetime import datetime
from datetime import timedelta
import re
class ConfluencePagePost:
'''Class to post page/blog content to Confluence via REST API.'''
@joshed-io
joshed-io / chrome_catch.js
Created August 26, 2011 06:09
Interesting Chrome behavior in catch block
(function(){ with(this) {
function pow() {
var foo = "cow", bar;
try {
foo = bar;
throw "meh";
} catch (e2) {
foo = bar; //breaks in chrome with ender + jaaulde (line 2518)
//foo = eval("bar"); //amazingly this works though, and debugger ok too
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.
@rjack
rjack / style.css
Created May 6, 2011 23:19
Chrome Extensions Packaged App
body {
font-family: Helvetica, "sans-serif"
}
//Define the global Chart Variable as a class.
window.Chart = function(context){
var chart = this;
//Easing functions adapted from Robert Penner's easing equations
//http://www.robertpenner.com/easing/
var animationOptions = {
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.
@uBaze
uBaze / gist:6962655
Created October 13, 2013 13:57
Chart.js
//Define the global Chart Variable as a class.
var Chart = function(context, tooltipOptions){
var chart = this;
//Easing functions adapted from Robert Penner's easing equations
//http://www.robertpenner.com/easing/
var animationOptions = {