Skip to content

Instantly share code, notes, and snippets.

@gallais
gallais / EquationalReasoning.v
Last active January 13, 2021 14:18
Equational Reasoning in Coq, using tactics inside terms!
Require Import Coq.Setoids.Setoid.
Require Import Arith.
Notation "`Begin p" := p (at level 20, right associativity).
Notation "a =] p ] pr" := (@eq_trans _ a _ _ p pr) (at level 30, right associativity).
Notation "a =[ p [ pr" := (@eq_trans _ a _ _ (eq_sym p) pr) (at level 30, right associativity).
Notation "a `End" := (@eq_refl _ a) (at level 10).
Definition times2 : forall n, n + n = 2 * n := fun n =>
`Begin
import QtQuick 2.4
import QtQuick.Window 2.2
import Material 0.1
ApplicationWindow {
function fixDensity() {
var galaxyS3mini =
(Screen.width == 480) &&
(Screen.height == 800) &&
(Screen.pixelDensity.toFixed(2) == 6.31) &&
@tsabat
tsabat / zsh.md
Last active October 16, 2024 14:43
Getting oh-my-zsh to work in Ubuntu
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//