Skip to content

Instantly share code, notes, and snippets.

View iamOgunyinka's full-sized avatar

Joshua iamOgunyinka

View GitHub Profile
#include <array>
#include <functional>
template <typename... T>
using common_type_t = typename std::common_type<T...>::type;
template <typename T>
using remove_cv_t = typename std::remove_cv<T>::type;
template <bool, typename T, typename... U>
@iamOgunyinka
iamOgunyinka / expressions.hpp
Created December 7, 2014 02:22
A simple expression library for building and parsing simple mathematical expressions
#ifndef EXPRESSIONS_H_INCLUDED
#define EXPRESSIONS_H_INCLUDED
#include <memory>
#include <cassert>
#include <cmath>
namespace Expression
{
void MainWindow::connectActions()
{
...
QObject::connect( m_directDownloadAction, SIGNAL( triggered() ), this, SLOT( findDownloadLink() ) );
QObject::connect( m_basicSearchAction, SIGNAL( triggered() ), this, SLOT( basicSearch() ) );
QObject::connect( m_advancedSearchAction, SIGNAL( triggered() ), this, SLOT( advancedSearch() ) );
...
}
#ifndef BST_CPP
#define BST_CPP
#include "BST.hpp"
template <class T>
void BST<T>::addElement(const T& value)
{
addElement(value, root);
}
I Emi
am ni
run sare
and ati
but sugbon
is ni
helter-skelter sihin-sohun
name oruko
from direct.showbase.ShowBase import ShowBase
from direct.showbase.DirectObject import DirectObject
import direct.directbase.DirectStart
from math import pi as PI, sin, cos
from direct.actor.Actor import Actor
class World( DirectObject ):
def __init__( self ):
DirectObject.__init__( self )
self.environment = loader.loadModel( "models/environment" )
@iamOgunyinka
iamOgunyinka / CrimeFragment.java
Created September 2, 2016 19:08
Menu not showing up in Fragment
package com.froist_inc.josh.criminalintent;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
@iamOgunyinka
iamOgunyinka / main.py
Last active December 29, 2017 13:27
A temporary fix
from views import init_blueprints
app = init_blueprints()
if __name__ == '__main__':
app.run(debug=True, port=80)
#include <fstream>
#include <iostream>
template <typename Type> struct NodeType {
Type data;
NodeType<Type> *next;
};
template <typename Type> class LinkedList {
public:
//customer.cpp
#include "customer.h"
//Constructor
customerType::customerType( std::string firstName, std::string lastName, int an)
{