Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
UbuntuEvangelist / How To Install CMake 3.22 Ubuntu 22.04
Last active July 8, 2025 09:34
Install CMake 3.22 Ubuntu 22.04
sudo apt update
sudo apt install build-essential
sudo apt install libssl-dev
export OPENSSL_ROOT_DIR=/usr/include/openssl
wget https://cmake.org/files/v3.29/cmake-3.29.2.tar.gz
tar -xzvf cmake-3.29.2.tar.gz
cd cmake-3.29.2
./bootstrap
make -j$(nproc)
sudo make install
@primaryobjects
primaryobjects / react-confirm.js
Created November 1, 2017 19:03
A simple example of a confirm alert dialog in ReactJs / React.
<div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } />
@ejucovy
ejucovy / hallo-edit-html.js
Last active March 15, 2020 16:31
wagtail - hallo.js "edit html" button
(function() {
(function($) {
return $.widget('IKS.editHtmlButton', {
options: {
uuid: '',
editable: null
},
populateToolbar: function(toolbar) {
var button, widget;