Skip to content

Instantly share code, notes, and snippets.

View subhanahmed047's full-sized avatar
🎯
Focusing

Subhan Ahmed subhanahmed047

🎯
Focusing
View GitHub Profile
@subhanahmed047
subhanahmed047 / gist:21d07e0e5776a1dea17b6ef27ca3b55b
Created July 30, 2023 13:57
Average Interpercentile Range AIR Supertrend
//@version=5
strategy('Average Interpercentile Range AIR Supertrend','AIR Supertrend', overlay=true, format=format.price)
// Moving Averages Types
var string SMA = 'Simple Moving Average'
var string EMA = 'Exponential Moving Average'
var string WMA = 'Weighted Moving Average'
var string VWMA = 'Volume Weighted Moving average'
var string ALMA = 'Arnaud Legoux Moving Average'
var string JURIK = 'Jurik Moving Average'
@subhanahmed047
subhanahmed047 / renko-trs.ps
Last active July 22, 2023 13:20
[tradinghook] - Renko Trend Reversal Strategy
//@version=5
strategy(title='[tradinghook] - Renko Trend Reversal Strategy', shorttitle='[tradinghook] - Renko TRS', overlay=true)
// INPUTS
renkoATRLength = input.int(10, minval=1, title='ATR Length')
stopLossPct = input.float(1.0, title='Stop Loss Percentage', step=0.1)
takeProfitPct = input.float(2.0, title='Take Profit Percentage', step=0.1)
startDate = input.time(timestamp("01 Jan 2022 00:00"), title="Start Date")
endDate = input.time(timestamp("31 Dec 2022 23:59"), title="End Date")
WEBVTT #Elemental Media Engine(TM) 2.1.3.0
X-TIMESTAMP-MAP=LOCAL:79:32:11.151,MPEGTS:180000
99:09:36.525 --> 99:09:36.566
career under the coaching of Des
Hasler at the
99:09:36.566 --> 99:09:36.786
career under the coaching of Des
Hasler at the Sea
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml">
<head>
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
<ttm:title>Sample</ttm:title>
</metadata>
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling">
<style xml:id="s1"
tts:color="white"
tts:fontFamily="proportionalSansSerif"
@subhanahmed047
subhanahmed047 / ttml
Created March 8, 2021 01:53
ttml-captions
<tt xml:lang="en"
xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling">
<head>
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
<ttm:title>TTML Example</ttm:title>
<ttm:copyright>Thierry Michel 2015</ttm:copyright>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml">
<head>
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
<ttm:title>Sample</ttm:title>
</metadata>
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling">
<style xml:id="s1"
tts:color="white"
tts:fontFamily="proportionalSansSerif"
Subhans-MacBook-Pro:TVMLCatalog.xcodeproj subhanahmed$ xcodebuild -sdk appletvos -configuration Release -workspace project.xcworkspace -scheme TVMLCatalog build CODE_SIGN_STYLE=Manual
Build settings from command line:
CODE_SIGN_STYLE = Manual
SDKROOT = appletvos12.4
note: Using new build system
note: Planning build
note: Using build description from disk
Build system information
warning: Provisioning profile "7plus tvOS TopShelf Distribution" for "TopShelf" contains entitlements that aren't in the entitlements file: com.apple.smoot.subscriptionservice. To use these entitlements, add them to your entitlements file. Otherwise, remove unused entitlements from your provisioning profile. (in target 'TopShelf')
@subhanahmed047
subhanahmed047 / cloud-build-config.js
Created October 4, 2018 05:00
Cloud Build Config
import * as Constants from './build-constants';
const environments = {
production: Constants.PRODUCTION,
staging: Constants.STAGING,
dev: Constants.DEV,
dev2: Constants.DEV2,
};
const currentEnvironment = environments.staging;
isCodeExist(code: string): Observable<Job[]> {
return <Observable<Job[]>>this.afs
.collection(this.jobsCollection, ref => ref
.where('code', '==', code)
.limit(1)
)
.valueChanges()
.pipe(
flatMap(jobs => jobs),
catchError(err => throwError(err)
<?php
use Cake\Datasource\ConnectionManager;
$datasource_json = ROOT . DS . "plugins" . DS . "Settings" . DS . "config" . DS . "datasource.json";
$content = json_decode(file_get_contents($datasource_json), true);
debug($content);
if(empty($content['password'])){
$dsn = "mysql://".$content['username']."@".$content['host']."/".$content['database'];
} else{
$dsn = "mysql://".$content['username'].":".$content['password']."@".$content['host']."/".$content['database'];