Skip to content

Instantly share code, notes, and snippets.

Avatar

IsmailS ismusidhu

View GitHub Profile
@ismusidhu
ismusidhu / DatePickerField.js
Created Feb 6, 2020
Work around for react-native-datepicker TouchableComponent not working
View DatePickerField.js
import React, { Fragment, useRef } from 'react'
import DatePicker from 'react-native-datepicker';
import { TextField, FilledTextField, OutlinedTextField, } from 'react-native-material-textfield';
export default function DatePickerField({ label, onBlur, error, onChange, value, style, textFieldProps, datePickerProps, ...props }) {
let dateTextFieldRef = useRef(null);
let datePickerRef = useRef(null);
const triggerDatePickerClick = () => {
datePickerRef.onPressDate();
}
@ismusidhu
ismusidhu / DeleteLongListOfBitBucketBranches.js
Created Jul 6, 2016
Delete long list of remote branches in bitbucket GIT repository. (Run in chrome console after logging in)
View DeleteLongListOfBitBucketBranches.js
var userAccount = '<userNameOrCompanyAccountName>';
var repoName = '<repoName>';
var branches = ['<list of branches to delete>'];
for (var i = 0; i < branches.length; i++) {
$.ajax({
method: 'DELETE',
url: 'https://bitbucket.org/!api/1.0/repositories/' + userAccount + '/' + repoName + '/_branch/' + branches[i]
});
@ismusidhu
ismusidhu / SQLServer2014InstallationConfiguration.ini
Created Mar 21, 2016
SQL Server 2014 installation configuration file
View SQLServer2014InstallationConfiguration.ini
;SQL Server 2014 Configuration File
[OPTIONS]
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.
ACTION="Install"
; Use the /ENU parameter to install the English version of SQL Server on your localized Windows operating system.
ENU="True"
@ismusidhu
ismusidhu / Boxstarter script
Last active Mar 21, 2016 — forked from sturlath/BoxtarterGist
Script for setting up KashFlow Developer machine. (to be use with Boxstarter and Chocolatey)
View Boxstarter script
# Install BoxStarter first from it's website http://boxstarter.org/
# then execute this batch script or paste commands in a power shell window with elevated permissions(run as administrator)
set-executionpolicy remotesigned
Import-Module Boxstarter.WinConfig
# Explorer options
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
#Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
View ErrorDetailPage.cshtml
@* Generator: Template TypeVisibility: Internal *@
@using System.Globalization
@using System.IO
@using System.Web
@using Elmah
@inherits WebTemplateBase
@{
var basePageName = Request.ServerVariables["URL"];
//
You can’t perform that action at this time.