Skip to content

Instantly share code, notes, and snippets.

View mebinum's full-sized avatar

Oyem E mebinum

View GitHub Profile
@mebinum
mebinum / GDPR.md
Last active June 24, 2021 04:06
Understanding GDPR

#GDPR

GDPR - General Data Protection Regulation

EU's legislation to strengthen data protection regulations.

What is covered

  • Describe the scope of GDPR
  • Key GDPR personal data protection terms
  • Principles governing personal data protection
@mebinum
mebinum / introrx.md
Created February 17, 2021 05:40 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).immutabilityHelper=e()}}(function(){return function(){return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){return o(t[a][1][e]||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}}()({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,
@mebinum
mebinum / keybase.md
Created January 5, 2018 03:51
Keybase id

Keybase proof

I hereby claim:

  • I am mebinum on github.
  • I am oyemike (https://keybase.io/oyemike) on keybase.
  • I have a public key ASBuNXemBpZnI9jUHg6S6aY6p61g8KtA4jFX1DP0AIiX-Qo

To claim this, I am signing this object:

@mebinum
mebinum / gist:96e5893487653a4b34f016c6d365a413
Last active January 4, 2018 04:26
Custom styles for embedded gist in webflow
<style type="text/css">
/**Styles for github gists*/
@media (max-width: 479px) {
blockquote {
max-width: 394px;
overflow: auto;
}
.gist-p {max-width:394px; overflow:auto}
.gist .file-data {max-height: 500px;max-width: 394px;}
}
@mebinum
mebinum / embedgist.js
Last active July 5, 2022 04:21
Code to show to to embed a gist url into Webflow
<script>
// define the load gist function
var loadGist = function(elem) {
var gistUrl = $(elem).text().match(/\bhttps?:\/\/\S+(.js)/gi);
if (typeof gistUrl === 'undefined' || gistUrl === null || gistUrl.length == 0)
return;
//load gist
$(elem).show();
$(elem).empty();
postscribe(elem, '<script src=' + gistUrl+ '><\/script>');
//import the component into your project
import {AzureInstance, AzureLoginView} from 'react-native-azure-ad-2'
//create an AzureInstance object with your Microsoft Azure credentials
var credentials = {
client_id: 'xxxxxxxx',
client_secret: 'xxxxxx',
scope: 'User.ReadBasic.All Mail.Read offline_access' //access scope for login - see http://bit.ly/2gtQe9W for more info
};

Building Wearables Session at CampJS

Programming ESP8266 with EspruinoJS

Getting set up

The boards are flashed with Espruino. Install the CP2102 driver and Espruino IDE from the Chrome extensions store. See Anna's blog for more details.

Use the GPIO pin numbers in the code e.g. pin 4 not D2.

/**
* @providesModule IncrementalListView
*/
'use strict';
var InteractionManager = require('InteractionManager');
var LayoutAnimation = require('LayoutAnimation');
var ListViewDataSource = require('ListViewDataSource');
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
var React = require('React');
@mebinum
mebinum / Dockerfile
Created July 14, 2014 04:19
Dockerfile for Cent OS 6 image configured with PHP, NGINX, Hip Hop VM (HHVM)
# DOCKER-VERSION 1.0.0
FROM centos:centos6
MAINTAINER Mike Ebinum, hello@seedtech.io
# Install dependencies for HHVM
# yum update -y >/dev/null &&
RUN yum install -y http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm && curl -L -o /etc/yum.repos.d/hop5.repo "http://www.hop5.in/yum/el6/hop5.repo"