Skip to content

Instantly share code, notes, and snippets.

@tadiou
tadiou / org.el
Last active September 1, 2020 14:29
; http://doc.norang.ca/org-mode.html
; Register
(set-register ?o (cons 'file (concat user-emacs-directory "/org/personal.org")))
(setq personal-org (concat user-emacs-directory "org/personal.org"))
(setq work-org (concat user-emacs-directory "org/work.org"))
(setq agenda-org (concat user-emacs-directory "org/agenda.org"))
(setq refile-org (concat user-emacs-directory "org/refile.org"))
@tadiou
tadiou / mac_and_cheese.org
Created November 24, 2019 21:53
Mac and Cheeses

Pastas

Bundt Pan Mac & Cheese

Needs

  • Bundt Pan
  • Cooking Spray/Canola Oil

Keybase proof

I hereby claim:

  • I am tadiou on github.
  • I am tadiou (https://keybase.io/tadiou) on keybase.
  • I have a public key ASC2l9CAIdFVXEEIZEZk0ZcaRMFEkE7MVAAunicnKO_Qcwo

To claim this, I am signing this object:

@tadiou
tadiou / SampleUnitTestFile.rb
Created May 3, 2016 15:49
SampleUnitTestFile.rb
require 'rails_helper'
RSpec.describe PracticeSessionQuestionFiller, type: :service do
context 'creating' do
let(:section) { create(:act_section) }
let(:passages) do
passage_types = create_list(:act_passage_type, 20, section: section)
create_list(:act_passage, 100, passage_type: passage_types.sample, section: section)
Act::Passage.where(section_id: section.id)
end
# == Schema Information
#
# Table name: act_passages
#
# id :integer not null, primary key
# title :string not null
# content :text not null
# passage_type_id :integer
# science_section :integer
# section_id :integer
@tadiou
tadiou / cockatrice_install_ubuntu15.txt
Created September 10, 2015 16:23
Installing Cockatrice on Ubuntu 15
Dependencies
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update
build-essential g++ qtmobility-dev libprotobuf-dev protobuf-compiler libqt4-dev
qt5-default
libqt5-dev
qt5-qtbase qt5-qtsvg qt5-qttranslations
qttools5-dev*
qtmultimedia5-dev
libqt5svg5*
@tadiou
tadiou / INSTALL LIB_MYSQLUDF_PREG.md
Last active August 22, 2019 13:52
Installation instructions for lib_mysqludf_preg (by Rich Waters) for Windows 7... from scratch with mingw & msys for xampp (but tailorable to most windows mysql needs).

Installing lib_mysqludf_preg from source on Windows

Tested on: Win 7 Pro SP1 - 64 bit, Intel CPU with 8gb ram.

lib_mysqludf_preg is a perl regex library for mysql, by Rich Waters and jasny (Arnold Daniels).

Step 0 - Prerequisites

  1. Knowledge
  • Level of difficulty? Medium. You don't need serious gcc/msys/mingw experience to execute this, but you do need to know how to use some linux command line commands effectively & how to make files from source from instructions.