Skip to content

Instantly share code, notes, and snippets.

View olaysco's full-sized avatar
🏠
Working from home

Olayiwola Odunsi olaysco

🏠
Working from home
View GitHub Profile
@olaysco
olaysco / keybase.md
Created June 7, 2021 14:23
Keybase verification

Keybase proof

I hereby claim:

  • I am olaysco on github.
  • I am olaysco (https://keybase.io/olaysco) on keybase.
  • I have a public key ASCFK4SA14sI4rEKV-nX07QURkMFDJZQq14dN0ed2Tuy3go

To claim this, I am signing this object:

@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<form method="POST" action="{{url('password/email')}}">
@csrf
<div class="form-group">
<label for="email" class="col-md-12 col-form-label text-center">{{ __('E-Mail Address') }}</label>
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
@olaysco
olaysco / camel2snake.js
Last active May 30, 2020 16:22
camelCase to snake_case
const snake_case = "topLeftRightH".replace(/([A-Z])/g, " $1").toLowerCase().replace(/( )/g,'_');
// "top_left_right_h"
@olaysco
olaysco / array_subtract.js
Last active June 24, 2019 11:14
Javascript function to substract Arrays of Object A from Arrays of Object B (A-B) i.e. getting the differences between two Arrays of Object
/**
* this function assumes array A and array B have an id key in
* each of their object
**/
function subtractArray(arrayA, arrayB){
return arrayA.filter((aElem)=>{
return !arrayB.find(bElem=>bElem.id === aElem.id)
});
}
POST /v1/flight/create-affiliate-booking HTTP/1.1
Host: 139.162.210.123:8086
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI3NjkyODc4IiwiaXNzIjoiMTA1LjExMi4yMy4yMCIsImV4cCI6MTU1NjE1NjQzMSwiaWF0IjoxNTU2MTM0ODMxfQ.BxnECT7923KRSHczlq8PbkDNEf_JOeTARS4p0URWedc
accept: application/json
Content-Type: application/json
User-Agent: PostmanRuntime/7.11.0
Cache-Control: no-cache
Postman-Token: 834025c7-2234-4102-ae0f-d2c525e4dc59,6af60a6c-d268-4f65-b3b0-ca025abc7ff9
Host: 139.162.210.123:8086
cookie: NINJA_SESSION=ee4d224607697d4a3be05e505e12fcab85c10e91-___TS=1557500346677&___ID=decccc38-7136-4977-b370-10156a53448b
@olaysco
olaysco / timbuhhtps.html
Created April 2, 2019 13:19
timbu.com mixed content
<!--
On changing the protocol to https the images are now displayed
and the mixed error cleared
-->
<img class="" src="undefined"
data-srcset="https://media.api.timbu.com/img/big/hotel-ibis-lagos-ikeja-lagos-47880.jpg?w=670&amp;h=380&amp;c=1"
alt="Hotel Ibis Lagos Ikeja-0"
@olaysco
olaysco / keras_bottleneck_multiclass.py
Created April 9, 2018 14:24 — forked from Thimira/keras_bottleneck_multiclass.py
Learn how to build a multi-class image classification system using bottleneck features from a pre-trained model in Keras to achieve transfer learning.
'''
Using Bottleneck Features for Multi-Class Classification in Keras
We use this technique to build powerful (high accuracy without overfitting) Image Classification systems with small
amount of training data.
The full tutorial to get this code working can be found at the "Codes of Interest" Blog at the following link,
http://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html
Please go through the tutorial before attempting to run this code, as it explains how to setup your training data.