Skip to content

Instantly share code, notes, and snippets.

View iamOgunyinka's full-sized avatar

Joshua iamOgunyinka

View GitHub Profile
@iamOgunyinka
iamOgunyinka / psd_debug.hpp
Last active November 3, 2021 11:49
Add JSON print for desciptors
// Aseprite PSD Library
// Copyright (C) 2021 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef PSD_DEBUG_H_INCLUDED
#define PSD_DEBUG_H_INCLUDED
#pragma once
@iamOgunyinka
iamOgunyinka / task_prod.py
Created August 15, 2019 04:51
Cooperative sequenced-before tasks
#!/usr/bin/env python
import subprocess
from threading import Event, Thread, Lock, get_ident
from concurrent.futures import ThreadPoolExecutor
from queue import Empty
lock = Lock()
my_list = []
def add_data(data):
with lock:
//customer.cpp
#include "customer.h"
//Constructor
customerType::customerType( std::string firstName, std::string lastName, int an)
{
#include <fstream>
#include <iostream>
template <typename Type> struct NodeType {
Type data;
NodeType<Type> *next;
};
template <typename Type> class LinkedList {
public:
@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)
@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;
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" )
I Emi
am ni
run sare
and ati
but sugbon
is ni
helter-skelter sihin-sohun
name oruko
#ifndef BST_CPP
#define BST_CPP
#include "BST.hpp"
template <class T>
void BST<T>::addElement(const T& value)
{
addElement(value, root);
}
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() ) );
...
}