Skip to content

Instantly share code, notes, and snippets.

pitch-gist / gist:2999707
Created Jun 26, 2012
HTML: Simple Maintenance Page
View gist:2999707
<!doctype html>
<title>Site Maintenance</title>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
omariosouto / ButtonLink.js
Last active Aug 4, 2020
Aula 01 - Códigos Extras
View ButtonLink.js
apt-get update # update list of available software
apt-get -y install git cmake libusb-1.0-0-dev python python-pip python-dev
apt-get -y install python-scipy python-numpy python-matplotlib
# Remove other RTL-SDR driver, if it is loaded
modprobe -r dvb_usb_rtl28xxu
rdougan / CollectionViewListLayout.swift
Created Sep 29, 2015
A basic NSCollectionViewLayout subclass which displays NSCollectionView items in a list layout.
View CollectionViewListLayout.swift
// CollectionViewListLayout.swift
// money
// Created by Robert Dougan on 29/09/15.
// Copyright © 2015 Phyn3t. All rights reserved.
import Cocoa

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](

jfstenuit /
Last active Aug 4, 2020
Installing Linux on a Baytrail tablet

Hardware specs

Chinese Brand "ITworks" , Model TW891, distributed in France and Belgium by Darty

  • CPU: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz
  • Video: Intel® HD Graphics for Intel Atom® Processor Z3700 Series
  • Screen: 1280x800
  • WiFi + BT: Realtek RTL8723BS_BT
  • Disks: mmcblk1: mmc1:0001 DF4032 29.1 GiB
  • RAM: 2GB DDR3 @ 1333 MHz
flcdrg / basic-dev.ps1
Last active Aug 4, 2020
My BoxStarter Scripts
View basic-dev.ps1
# SQL Server - do this early to avoid issues with newer versions of VC++ 2015 redist
choco install sql-server-2017
choco install sql-server-2017-cumulative-update
choco install sql-server-management-studio
# tools
choco install git
choco install nodejs
choco install tortoisegit
choco install vscode
staltz /
Last active Aug 4, 2020
The introduction to Reactive Programming you've been missing


With a single import _ "net/http/pprof" you can add profiling endpoints to a HTTP server.

package main

import (
View bash-async-await-example
#!/usr/bin/env bash
function check_status_code {
local name=$1
local status=$2
if [ $status -ne 0 ]; then
echo $name failed with status code $status
exit $status
echo Success: $name with code $status
You can’t perform that action at this time.