Skip to content

Instantly share code, notes, and snippets.

View smnuman's full-sized avatar
🏠
Working from home

Numan Syed smnuman

🏠
Working from home
View GitHub Profile

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@smnuman
smnuman / FileFetchError
Created June 27, 2014 16:57
Single File Fetching error
I tried this :
git archive --remote=git@github.com:git/git.git HEAD:/contrib/completion/ git-completion.bash | tar xvf -
And got this error:
Invalid command: 'git-upload-archive 'git/git.git''
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
fatal: The remote end hung up unexpectedly
tar: This does not look like a tar archive
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
smtpuser = pavan.sss1991@gmail.com
@smnuman
smnuman / EOD-Data.afl
Last active January 11, 2023 01:42
The following formula is an AFL collection in AmiBroker library. The Formula is created by `*Barry Scarborough - razzbarry [at] imageview.us*` and detailed as "An indicator that allows dumping large files to C:AmiBackup. It can export EOD or intraday data up to 375,000 Excel lines. Large files, over 65500 lines will be broken into multiple files…
// From: http://www.amibroker.com/library/detail.php?id=1129
// By Barry Scarborough 7/14/2008, updated to handle large files 8/30/08
// #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST ####
// Export intraday and EOD data to .csv files
// One file for each stock but the symbol name must be a valid Microsoft file name or you will have to modify it, see code below to change name
// if the data exceeds 65500 lines it will be broken into separate files up to 327,500 lines or about 227 days of 24 hour, one minute data
// This will create a directory C:\AmiBackup
// Select your symbols to export with the "Apply to" filter in AA window, to save data base use all symbols and all quotes
// Make sure the chart is on the period you want to save
@smnuman
smnuman / EOD-Data.md
Last active August 22, 2022 13:59
Data Export to a .csv file from AmiBroker database.

#EOD-Data export script Tomasz Janeczko described -- in AmiBroker kb -- a simple way to export AB data to a .csv file.

The easiest way to export quotes to CSV file is to use the below formula from Automatic Analysis window: (Analysis -> Automatic Analysis)

Filter=1; 
AddColumn(O,"Open"); 
AddColumn(H,"High"); 
AddColumn(L,"Low"); 
@smnuman
smnuman / NMN-AB-StrengthFinding.md
Last active August 29, 2015 14:04
An indicator to find the strength of an issue for Buy-ing and Sell-ing. Just drag-and-drop on a chart to analyse.

NMN-Strength Finding

A simple yet very usefull indicator-help that shows the strength of an issue of a market.

_SECTION_BEGIN("NMN-Strength Finding");
    //============== A/D ==============
    TRH = IIf( Ref( C, -1 ) > H, Ref( C, -1 ), H );
    TRL = IIf( Ref( C, -1 ) < L, Ref( C, -1 ), L );
    ad = IIf( C > Ref( C, -1 ), C - TRL, IIf( C < Ref( C, -1 ), C - TRH, 0 ) );
    WAD = Cum( ad );
    wu = wad > Ref( wad, -1 );
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
_SECTION_BEGIN("GIP-3");
/// This whole thing is found and copied here for reference and experiment by Numan on 2014-08-13
/// Original from : http://www.stockmaniacs.net/downloads/afl/gap-finder-plus-gip.afl
/// Details : http://www.stockmaniacs.net/blog/scott-andrews-12-reasons-to-trade-gaps-gap-trading-amibroker-afl/
SetChartOptions(0,chartShowArrows|chartShowDates);
SetChartBkColor(colorGrey50);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Cr = IIf(RSI(9) <= LLV(RSI(9),9) , colorRed , IIf(RSI(9) >=HHV(RSI(9),9) , colorGreen ,IIf(C > O , colorWhite , colorBlack)));
SetBarFillColor( Cr );
Plot( C, "Close", Cr, styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
@smnuman
smnuman / README
Created August 25, 2014 18:14 — forked from Burnfaker/README
THIS IS THE MODIFIED SCRIPT IF YOU LIKE THE ORIGINAL GOTO https://github.com/ilikenwf/apt-fast
====================
About:
====================
apt-fast is a shellscript wrapper for apt-get that can drastically improve apt download
times by downloading packages in parallel, with multiple connections per package.
_SECTION_BEGIN( "Name" );
SetFormulaName("NMN Chart Stamp");
GfxFont = ParamList("Chosen font", "Tahoma,Monaco,Arial,Times New Roman,Trebuchet MS,",3);
GfxSetOverlayMode( 0 );
GfxSelectFont( GfxFont, Status( "pxheight" ) / 8 );
GfxSetTextAlign( 6 ); // center alignment
GfxSetTextColor( ParamColor("Font color",ColorRGB( 200, 200, 200 )) );
GfxSetBkMode( 0 ); // transparent
GfxTextOut( Name(), Status( "pxwidth" ) / 2, Status( "pxheight" ) / 12 );
GfxSelectFont( GfxFont, Status( "pxheight" ) / 28 );