Skip to content

Instantly share code, notes, and snippets.

@Ashraf-Ali-aa
Ashraf-Ali-aa / date.swift
Created April 16, 2018 16:28
date picker
// MARK: Date format - day-month-year i.e 13-March-2015
private func changePickerDate(_ date: String) {
let newDateFormat = date.components(separatedBy: "-")
let date = newDateFormat[0]
let month = newDateFormat[1]
let year = newDateFormat[2]
dateField.tap()
@Ashraf-Ali-aa
Ashraf-Ali-aa / .hive.yml
Last active August 16, 2017 08:07
xcuitest runner
UITest:
Workspace: 'Test.xcworkspace'
Scheme: 'TestUITests'
Bundle: 'TestUITests'
SearchPaths:
- 'TestUITests/UITests/*/*UITests.swift'
Device: 'platform=iOS Simulator,name=iPad Air,OS=10.2'
PatternMatching:
testSuite: 'class\W+(?<class_name>\w*)'
testCase: '(?<scenario>(s|S)cenario.*)?\s+\S+\s(?<tags>(((?!@))|@.*))\s+\S+\s(?<test_case>test\w*)'
@Ashraf-Ali-aa
Ashraf-Ali-aa / index.html
Created April 2, 2017 06:59
RemindMe App Concept (CSS animations & mobile)
<div id="stage" class="stage" :class="{'menu-open': menuOpen, 'voices-open': voicesOpen}" :style="{ color: activeReminder.waveFrontColor, backgroundColor: stageBg }" v-cloak>
<div class="menu__button" @click="toggleMenu">
<div class="menu__dot"></div>
</div>
<div class="microphone" v-if="supportSpeechRecognition" :class="{'is-listening': isListening }" @click="startListenVoiceCommands">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M12 16c2.206 0 4-1.795 4-4v-6c0-2.206-1.794-4-4-4s-4 1.794-4 4v6c0 2.205 1.794 4 4 4z"></path>
<path d="M19 12v-2c0-0.552-0.447-1-1-1s-1 0.448-1 1v2c0 2.757-2.243 5-5 5s-5-2.243-5-5v-2c0-0.552-0.447-1-1-1s-1 0.448-1 1v2c0 3.52 2.613 6.432 6 6.92v1.080h-3c-0.553 0-1 0.447-1 1s0.447 1 1 1h8c0.553 0 1-0.447 1-1s-0.447-1-1-1h-3v-1.080c3.387-0.488 6-3.4 6-6.92z"></path>
</svg>
<div class="voice-tooltip" v-show="isListening">
@Ashraf-Ali-aa
Ashraf-Ali-aa / install-stf.sh
Last active February 20, 2017 20:00 — forked from shoaibali/install-stf.sh
STF install shell script for ubuntu trusty
sudo apt-get install android-tools-adb android-tools-fastboot
wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
sudo mv adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
adb devices
sudo apt-get install libtool pkg-config build-essential autoconf automake
sudo apt-get install graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat
wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
tar -zxvf zeromq-4.2.1.tar.gz
cd zeromq-4.2.1/
@Ashraf-Ali-aa
Ashraf-Ali-aa / imageTraceToSVG.jsx
Last active April 21, 2019 17:38
trace image to SVG in Illustrator
/**********************************************************
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2012 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it.
@Ashraf-Ali-aa
Ashraf-Ali-aa / IllustratorSaveAsSVGs.jsx
Last active February 5, 2016 22:26 — forked from seltzered/IllustratorSaveAsSVGs.jsx
Quick little script to batch-convert Illustrator .ai's to .svg's, based on Adobe's sample 'save to pdf's' script. Save it to a jsx, and load it under illustrator. Intended for Illustrator CS6.
/**********************************************************
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2010 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it.
If you have received this file from a source
@Ashraf-Ali-aa
Ashraf-Ali-aa / gist:1c4c71edbefc99ec9669
Created August 26, 2014 10:31
changed bullet point from 'BLACK CIRCLE' (U+25CF) to 'BULLET' (U+2022) = product.php line 58
$features[] = "• " . Functions::decode($feature[$this->wp_keys->product_feature]);