Skip to content

Instantly share code, notes, and snippets.

View jvalentik's full-sized avatar
:octocat:
coding

Johny jvalentik

:octocat:
coding
View GitHub Profile
@timroster
timroster / okta-appid.md
Last active November 16, 2024 00:14
Use Okta and AppID to provide access to an IBM Cloud Account

Self-service identity federation to an IBM Cloud Account with Okta

Although there is generic SAML identity integration examples provided in the AppID documentation, how to specifically configure a particular identity provider in a step-by-step manner can be non-trivial, especially for SAML. In general the approach is to configure SAML identity providers to work with App ID by providing metadata from App ID to your identity provider, and metadata from your identity provider to App ID.

This quick guide will provide tips on configuring access to Okta managed identities to an IBM Cloud Account by performing the following steps:

  1. Adding an IBM Cloud Access Group with a policy for the users
  2. Add an IBM AppID service instance (lite plan used in the case)
  3. [Configure a SAML application in Okta](#configure-a-saml-a
@jvalentik
jvalentik / CategoryRecycleAdapter.kt
Created February 25, 2018 12:58
Android RecyclerView pattern
package jvk.org.coderswag.adapters
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import jvk.org.coderswag.R
@btroncone
btroncone / ngrxintro.md
Last active July 5, 2025 14:15
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@bugventure
bugventure / uuid.js
Last active August 1, 2024 22:54
UUID regex matching in node.js
function createUUID() {
return uuid.v4();
}
// version 4
// createUUID.regex = '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$';
createUUID.regex = '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$';
createUUID.is = function (str) {
return new RegExp(createUUID.regex).test(str);
(function(){
var i = 0;
var j = 0;
var k = 0;
var m = 0;
function forloop1(){
if(i<5){
j = 0;
forloop2();
}else{