Skip to content

Instantly share code, notes, and snippets.

View refactormyself's full-sized avatar

Saheed O. Bolarinwa refactormyself

View GitHub Profile
@refactormyself
refactormyself / introrx.md
Created April 28, 2016 04:00 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
<div class="message status">
Sass 3.3 envoie du poney !
</div>
<div class="message warning">
Une fois tombé dans Sass,
il est difficile de revenir en arrière !
</div>
<div class="message error">
LESS c'est senSass :]
</div>
#include <stdio.h>
void doSonething1(){
printf("Pramod's wedding ticket \n");
}
void doSonething2(){
printf("Send ticket to Saheed \n");
}
@refactormyself
refactormyself / main.sh
Created February 20, 2019 10:15
install_mpi.sh created by refactormyself - https://repl.it/@refactormyself/installmpish
#!/usr/bin/env bash
echo Installing Open MPI packages
sudo apt-get install openmpi-common
sudo apt-get install openmpi-bin
sudo apt-get install libopenmpi-dev
sudo apt-get install openmpi-doc
echo Installing C compiler and ssh

History Data Structures

For stateful applications, there are 5 different ways of managing the history of state:

  • No History - Living in the moment. - Examples: Any stateful application that doesn't discards all previous states upon mutation.
  • Ad Hoc Snapshotting - Allows restoration to manually saved snapshots. - Examples: Memento Pattern.
  • Singleton - Only remembers the previous snapshot, where undoing the undo is just another undo. - Examples: Xerox PARC Bravo.
  • 1 Stack - Allows linear undo. - Examples: AtariWriter.
  • 2 Stack - Allows linear undo and redo. - Examples: Browser History, Microsoft Word, Adobe Photoshop.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
@refactormyself
refactormyself / GSoC2019report.md
Last active August 26, 2019 17:01
A report of my activities in GSoC 2019 Program

Google Summer of Code 2019 Report

BY BOLARINWA OLAYEMI SAHEED

PROJECT: Integrate more SMT solvers into JavaSMT

ORGANISATION: Software and Computational Systems Lab at LMU Munich

MENTOR: Karlheinz Friedberger

ABSTRACT:

This goal of this project is integrate more SMT Solver into the JavaSMT library. I have chosen to integrate STP and OpenSMT solver libraries. Both are written in C++ and provide a C language interface which what I creating Java bindings to. I will also be written code to glue the integrated solvers to the JavaSMT library.

@refactormyself
refactormyself / install_golang.sh
Created August 27, 2019 17:33
Download and Install Go
#!/usr/bin/env bash
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
echo "export GOPATH=~/go" >> ~/.bashrc
source ~/.bashrc
# mkdir -p $GOPATH/src/myapp
# cd $GOPATH/src/myapp
@refactormyself
refactormyself / lk_log_dmesgs.sh
Created March 3, 2020 09:42
Configure logs after installing a fresh linux Kernel BEFORE rebooting
dmesg -t > dmesg_current
dmesg -t -k > dmesg_kernel
dmesg -t -l emerg > dmesg_current_emerg
dmesg -t -l alert > dmesg_current_alert
dmesg -t -l crit > dmesg_current_alert
dmesg -t -l err > dmesg_current_err
dmesg -t -l warn > dmesg_current_warn
@refactormyself
refactormyself / Vagrantfile
Last active April 1, 2020 15:40
Vagrant File for Kernel Dev on minimal/xenial64 box (It will sync repo to "./lk_dev_files" on host)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "minimal/xenial64"