Skip to content

Instantly share code, notes, and snippets.

View ismusidhu's full-sized avatar

IsmailS ismusidhu

View GitHub Profile
@* Generator: Template TypeVisibility: Internal *@
@using System.Globalization
@using System.IO
@using System.Web
@using Elmah
@inherits WebTemplateBase
@{
var basePageName = Request.ServerVariables["URL"];
//
@ismusidhu
ismusidhu / Boxstarter script
Last active March 21, 2016 12:49 — forked from sturlath/BoxtarterGist
Script for setting up KashFlow Developer machine. (to be use with Boxstarter and Chocolatey)
# 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
@ismusidhu
ismusidhu / SQLServer2014InstallationConfiguration.ini
Created March 21, 2016 12:46
SQL Server 2014 installation configuration file
;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 / DeleteLongListOfBitBucketBranches.js
Created July 6, 2016 09:53
Delete long list of remote branches in bitbucket GIT repository. (Run in chrome console after logging in)
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 / DatePickerField.js
Created February 6, 2020 12:39
Work around for react-native-datepicker TouchableComponent not working
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();
}