Skip to content

Instantly share code, notes, and snippets.

diff -bur kdelibs-4.11.4/kdeui/dialogs/kaboutapplicationdialog.cpp kdelibs-4.11.4-new/kdeui/dialogs/kaboutapplicationdialog.cpp
--- kdelibs-4.11.4/kdeui/dialogs/kaboutapplicationdialog.cpp 2013-06-28 13:03:41.000000000 -0400
+++ kdelibs-4.11.4-new/kdeui/dialogs/kaboutapplicationdialog.cpp 2014-03-01 16:32:44.000000000 -0500
@@ -90,8 +90,12 @@
}
q->setPlainCaption(i18n("About %1", aboutData->programName()));
+#ifdef Q_OS_MAC
+ q->setButtons(KDialog::None);
+#else
diff -bur a/src/kaboutapplicationdialog.cpp b/src/kaboutapplicationdialog.cpp
--- a/src/kaboutapplicationdialog.cpp 2013-06-28 13:03:41.000000000 -0400
+++ b/src/kaboutapplicationdialog.cpp 2014-03-01 16:32:44.000000000 -0500
@@ -90,8 +90,12 @@
}
q->setPlainCaption(i18n("About %1", aboutData->programName()));
+#ifdef Q_OS_MAC
+ q->setButtons(KDialog::None);
+#else
From 9127260dea5092a7fb845cf24758a7cd07156207 Mon Sep 17 00:00:00 2001
From: Lars Viklund <zao@zao.se>
Date: Tue, 2 Jul 2013 01:11:29 +0200
Subject: [PATCH 5/6] Boost.S11n include missing algorithm
---
boost/archive/iterators/transform_width.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/boost/archive/iterators/transform_width.hpp b/boost/archive/iterators/transform_width.hpp
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7e64fb..8b76a5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -309,9 +309,9 @@ include(ConfigureChecks.cmake)
# Actually nepomuk is not optional, without it other KDE modules don't build,
# so this must be fixed. Alex
if(Soprano_FOUND AND SHAREDDESKTOPONTOLOGIES_FOUND)
- set(HAVE_NEPOMUK true)
- include(SopranoAddOntology)
diff --git a/attic/kf5-frameworkintegration.rb b/attic/kf5-frameworkintegration.rb
deleted file mode 100644
index 4e2ef04..0000000
--- a/attic/kf5-frameworkintegration.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-require "formula"
-
-class Kf5Frameworkintegration < Formula
- url "http://download.kde.org/unstable/frameworks/4.97.0/frameworkintegration-4.97.0.tar.xz"
@mxj4
mxj4 / 0_reuse_code.js
Created April 24, 2017 05:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
@mxj4
mxj4 / Immutable Data Types with Jackson and Lombok.md
Created August 20, 2018 06:45 — forked from eeichinger/ Immutable Data Types with Jackson and Lombok.md
Example tests and notes for making Jackson work with Lombok

Examples for getting Jackson and Lombok to work together to create immutable data types.

Demonstrates use of:

  • Nullable Types
  • Optional
  • immutable java.util.List
  • immutable array
  • validating custom types on instantiate/unmarshalling
  • use & customize Lombok-@Builder with Jackson

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@mxj4
mxj4 / hide-quantum-tab-bar.sh
Created October 24, 2020 17:53 — forked from automaticit/hide-quantum-tab-bar.sh
Hide Firefox Quantum tab bar
#!/bin/bash
#
# Based upon [[https://superuser.com/questions/1268732/how-to-hide-tab-bar-tabstrip-in-firefox-57-quantum/1268734#1268734][How to hide tab bar (tabstrip) in Firefox 57+ Quantum]] by [[https://superuser.com/users/162466/vasyanovikov][VasyaNovikov]]
# This causes the [[https://support.mozilla.org/en-US/questions/1187186][The Back Button is top right under the Red close button on my Mac]] issue.
# Resolve that by right-clicking the toolbar, then inserting three Flexible Space into the toolbar on the far-left-hand side.
case $( uname ) in
"Linux")
profile_dir=~/.mozilla/firefox/$( ls -tr ~/.mozilla/firefox/ | grep -v profiles.ini | tail -1 )
;;
"Darwin")