Skip to content

Instantly share code, notes, and snippets.

View somefunAgba's full-sized avatar
💡
working on new tools

Oluwasegun Somefun somefunAgba

💡
working on new tools
View GitHub Profile
@somefunAgba
somefunAgba / vgg16.py
Created August 3, 2022 14:55 — forked from rasbt/vgg16.py
Speed comparison DataLoader vs in-memory
import time
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import datasets
from torchvision import transforms
from torch.utils.data import DataLoader
if torch.cuda.is_available():
@somefunAgba
somefunAgba / 1.Instructions.md
Created May 17, 2021 18:50 — forked from WesThorburn/1.Instructions.md
Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Download and Install Emscripten

  • My preferred installation location is /home/user
  • Get the latest sdk: git clone https://github.com/emscripten-core/emsdk.git
  • Enter the cloned directory: cd emsdk
  • Install the lastest sdk tools: ./emsdk install latest
  • Activate the latest sdk tools: ./emsdk activate latest
  • Activate path variables: source ./emsdk_env.sh
  • Configure emsdk in your bash profile by running: echo 'source "/home/user/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile
@somefunAgba
somefunAgba / emxapi_webcoder_fix.m
Created May 6, 2021 18:41
matlab: missing emxAPI header file during webcoder's build compilation (Generate Javascript Using Matlab Toolbox)
%% BUG:
% Struggled with this for quite sometime, while trying out the MouseEvent, Event et al. Callback example
% in the 'CreateAppWithCallbacks' demo example. The bug was a missing emxAPI header file during build compilation
SOLUTION:
%% 1.1 Fix dynamically allocated arrays to use EMXARRAY
% - Use this to prevent webcoder compile errors
% WebCoder Bug:
@somefunAgba
somefunAgba / index.html
Created June 2, 2018 08:27
Password Meter
<html lang="en-us">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="index.css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<title>Password Validator</title>
</head>
<body>
<script src="passwordValidator.js"></script>
@somefunAgba
somefunAgba / gist:2ef9e66326269c9ae9581ab9a6e99bc1
Last active March 27, 2018 06:19
Javascript Themes for WordPress
It's time to start creating Javascript Themes for WordPress.
Please, check out EASY-JS-WPAPI Client HANDLE for the WordPress REST-API
https://github.com/somefunAgba/easyjs-wpapi-rest-client-handle
or
https://wordpress.org/plugins/node-wpapi-auth/