Skip to content

Instantly share code, notes, and snippets.

View samithaf's full-sized avatar

Samitha Fernando samithaf

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="jQuery UI Date picker" />
<link href="//code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="//code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="//code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Date Picker" />
<link href="//code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="//code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="//code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
@samithaf
samithaf / ProgressIndicator.h
Created June 7, 2019 00:08
MBProgressHUD for ReactNative
#import "React/RCTBridgeModule.h"
@interface RCT_EXTERN_MODULE(ProgressIndicator, NSObject)
RCT_EXTERN_METHOD(show:(NSString *)text)
RCT_EXTERN_METHOD(hide)
@end
@samithaf
samithaf / AppDelegate.h
Created April 28, 2020 06:11
React Native 62.2 and Expo updates
#import <UIKit/UIKit.h>
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
#import <UMCore/UMAppDelegateWrapper.h>
#import <React/RCTBridgeDelegate.h>
#import <EXUpdates/EXUpdatesAppController.h>
@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate, EXUpdatesAppControllerDelegate>
@property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter;
@samithaf
samithaf / Dockerfile
Last active April 21, 2024 22:29
ubi-minimal based Next.js dockerfile - demonstrate usage of buildx
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9-1137 as base
# base on https://github.com/sclorg/s2i-nodejs-container/tree/master/18-minimal
# Add $HOME/node_modules/.bin to the $PATH, allowing user to make npm scripts
# available on the CLI without using npm's --global installation mode
# This image will be initialized with "npm run $NPM_RUN"
# See https://docs.npmjs.com/misc/scripts, and your repo's package.json
# file for possible values of NPM_RUN
# Description